Normalized thread names (#9581)
Related to #8216 Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
This commit is contained in:
committed by
GitHub
parent
79dfb43e42
commit
ac3f907b36
@@ -19,6 +19,7 @@ import java.util.Queue;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
import org.openhab.binding.insteon.internal.InsteonBindingConstants;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@@ -52,7 +53,7 @@ public class RequestQueueManager {
|
||||
|
||||
private void setParamsAndStart(@Nullable Thread thread) {
|
||||
if (thread != null) {
|
||||
thread.setName("Insteon Request Queue Reader");
|
||||
thread.setName("OH-binding-" + InsteonBindingConstants.BINDING_ID + "-requestQueueReader");
|
||||
thread.setDaemon(true);
|
||||
thread.start();
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ import java.util.TreeSet;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
import org.openhab.binding.insteon.internal.InsteonBindingConstants;
|
||||
import org.openhab.binding.insteon.internal.device.InsteonDevice;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@@ -112,7 +113,7 @@ public class Poller {
|
||||
|
||||
private void setParamsAndStart(@Nullable Thread thread) {
|
||||
if (thread != null) {
|
||||
thread.setName("Insteon Poll Queue Reader");
|
||||
thread.setName("OH-binding-" + InsteonBindingConstants.BINDING_ID + "-pollQueueReader");
|
||||
thread.setDaemon(true);
|
||||
thread.start();
|
||||
}
|
||||
|
||||
@@ -192,7 +192,7 @@ public class Port {
|
||||
|
||||
private void setParamsAndStart(@Nullable Thread thread, String type) {
|
||||
if (thread != null) {
|
||||
thread.setName("Insteon " + logName + " " + type);
|
||||
thread.setName("OH-binding-Insteon " + logName + " " + type);
|
||||
thread.setDaemon(true);
|
||||
thread.start();
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@ import java.util.Base64;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
import org.openhab.binding.insteon.internal.InsteonBindingConstants;
|
||||
import org.openhab.binding.insteon.internal.driver.IOStream;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@@ -102,7 +103,7 @@ public class HubIOStream extends IOStream implements Runnable {
|
||||
|
||||
private void setParamsAndStart(@Nullable Thread thread) {
|
||||
if (thread != null) {
|
||||
thread.setName("Insteon Hub Poller");
|
||||
thread.setName("OH-binding-" + InsteonBindingConstants.BINDING_ID + "-hubPoller");
|
||||
thread.setDaemon(true);
|
||||
thread.start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user