diff --git a/bundles/org.openhab.binding.broadlink/src/main/java/org/openhab/binding/broadlink/internal/discovery/DiscoveryProtocol.java b/bundles/org.openhab.binding.broadlink/src/main/java/org/openhab/binding/broadlink/internal/discovery/DiscoveryProtocol.java index d4841f47ab3..1f4fe26d8da 100644 --- a/bundles/org.openhab.binding.broadlink/src/main/java/org/openhab/binding/broadlink/internal/discovery/DiscoveryProtocol.java +++ b/bundles/org.openhab.binding.broadlink/src/main/java/org/openhab/binding/broadlink/internal/discovery/DiscoveryProtocol.java @@ -17,6 +17,7 @@ import java.net.UnknownHostException; import java.util.concurrent.TimeoutException; import org.eclipse.jdt.annotation.NonNullByDefault; +import org.openhab.binding.broadlink.internal.BroadlinkBindingConstants; import org.openhab.binding.broadlink.internal.BroadlinkProtocol; import org.openhab.binding.broadlink.internal.NetworkUtils; import org.openhab.binding.broadlink.internal.socket.BroadlinkSocket; @@ -37,6 +38,7 @@ public class DiscoveryProtocol { AsyncDiscoveryThread(BroadlinkSocketListener listener, long timeoutMillis, DiscoveryFinishedListener finishedListener, Logger logger) { + super(String.format("OH-binding-%s-%s", BroadlinkBindingConstants.BINDING_ID, "Discovery")); this.listener = listener; this.timeoutMillis = timeoutMillis; this.finishedListener = finishedListener; diff --git a/bundles/org.openhab.binding.broadlink/src/main/java/org/openhab/binding/broadlink/internal/socket/BroadlinkSocket.java b/bundles/org.openhab.binding.broadlink/src/main/java/org/openhab/binding/broadlink/internal/socket/BroadlinkSocket.java index c7c9169e924..4e4909c9b7c 100644 --- a/bundles/org.openhab.binding.broadlink/src/main/java/org/openhab/binding/broadlink/internal/socket/BroadlinkSocket.java +++ b/bundles/org.openhab.binding.broadlink/src/main/java/org/openhab/binding/broadlink/internal/socket/BroadlinkSocket.java @@ -23,6 +23,7 @@ import java.util.List; import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; +import org.openhab.binding.broadlink.internal.BroadlinkBindingConstants; import org.openhab.binding.broadlink.internal.ModelMapper; import org.slf4j.Logger; @@ -99,6 +100,7 @@ public class BroadlinkSocket { } private ReceiverThread(Logger logger) { + super(String.format("OH-binding-%s-%s", BroadlinkBindingConstants.BINDING_ID, "Receiver")); this.logger = logger; } } diff --git a/bundles/org.openhab.binding.cm11a/src/main/java/org/openhab/binding/cm11a/internal/X10Interface.java b/bundles/org.openhab.binding.cm11a/src/main/java/org/openhab/binding/cm11a/internal/X10Interface.java index 4acc3951b19..5329a660ffd 100644 --- a/bundles/org.openhab.binding.cm11a/src/main/java/org/openhab/binding/cm11a/internal/X10Interface.java +++ b/bundles/org.openhab.binding.cm11a/src/main/java/org/openhab/binding/cm11a/internal/X10Interface.java @@ -243,7 +243,7 @@ public class X10Interface extends Thread implements SerialPortEventListener { * */ public X10Interface(String serialPort, Cm11aBridgeHandler bridgeHandler) throws NoSuchPortException { - super(); + super("OH-binding-" + bridgeHandler.getThing().getUID()); logger.trace("**** Constructing X10Interface for serial port: {} *******", serialPort); portId = CommPortIdentifier.getPortIdentifier(serialPort); this.bridgeHandler = bridgeHandler; diff --git a/bundles/org.openhab.binding.denonmarantz/src/main/java/org/openhab/binding/denonmarantz/internal/connector/telnet/DenonMarantzTelnetClientThread.java b/bundles/org.openhab.binding.denonmarantz/src/main/java/org/openhab/binding/denonmarantz/internal/connector/telnet/DenonMarantzTelnetClientThread.java index 69ac85b926e..dae1c977315 100644 --- a/bundles/org.openhab.binding.denonmarantz/src/main/java/org/openhab/binding/denonmarantz/internal/connector/telnet/DenonMarantzTelnetClientThread.java +++ b/bundles/org.openhab.binding.denonmarantz/src/main/java/org/openhab/binding/denonmarantz/internal/connector/telnet/DenonMarantzTelnetClientThread.java @@ -22,6 +22,7 @@ import java.net.SocketTimeoutException; import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; +import org.openhab.binding.denonmarantz.internal.DenonMarantzBindingConstants; import org.openhab.binding.denonmarantz.internal.config.DenonMarantzConfiguration; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -54,6 +55,7 @@ public class DenonMarantzTelnetClientThread extends Thread { private @Nullable BufferedReader in; public DenonMarantzTelnetClientThread(DenonMarantzConfiguration config, DenonMarantzTelnetListener listener) { + super(String.format("OH-binding-%s-%s", DenonMarantzBindingConstants.BINDING_ID, "TelnetClient")); logger.debug("Denon listener created"); this.config = config; this.listener = listener; diff --git a/bundles/org.openhab.binding.digiplex/src/main/java/org/openhab/binding/digiplex/internal/DigiplexBindingConstants.java b/bundles/org.openhab.binding.digiplex/src/main/java/org/openhab/binding/digiplex/internal/DigiplexBindingConstants.java index 1e9522497c1..22d3e1ff6b0 100644 --- a/bundles/org.openhab.binding.digiplex/src/main/java/org/openhab/binding/digiplex/internal/DigiplexBindingConstants.java +++ b/bundles/org.openhab.binding.digiplex/src/main/java/org/openhab/binding/digiplex/internal/DigiplexBindingConstants.java @@ -31,7 +31,7 @@ import org.openhab.core.thing.ThingTypeUID; @NonNullByDefault public class DigiplexBindingConstants { - private static final String BINDING_ID = "digiplex"; + public static final String BINDING_ID = "digiplex"; // List of all Thing Type UIDs public static final ThingTypeUID THING_TYPE_BRIDGE = new ThingTypeUID(BINDING_ID, "bridge"); diff --git a/bundles/org.openhab.binding.digiplex/src/main/java/org/openhab/binding/digiplex/internal/handler/DigiplexBridgeHandler.java b/bundles/org.openhab.binding.digiplex/src/main/java/org/openhab/binding/digiplex/internal/handler/DigiplexBridgeHandler.java index f805eba944d..95a7771987b 100644 --- a/bundles/org.openhab.binding.digiplex/src/main/java/org/openhab/binding/digiplex/internal/handler/DigiplexBridgeHandler.java +++ b/bundles/org.openhab.binding.digiplex/src/main/java/org/openhab/binding/digiplex/internal/handler/DigiplexBridgeHandler.java @@ -31,6 +31,7 @@ import java.util.concurrent.atomic.AtomicLong; import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; +import org.openhab.binding.digiplex.internal.DigiplexBindingConstants; import org.openhab.binding.digiplex.internal.DigiplexBridgeConfiguration; import org.openhab.binding.digiplex.internal.communication.CommunicationStatus; import org.openhab.binding.digiplex.internal.communication.DigiplexMessageHandler; @@ -303,7 +304,7 @@ public class DigiplexBridgeHandler extends BaseBridgeHandler implements SerialPo private final InputStream stream; DigiplexReceiverThread(InputStream stream) { - super("DigiplexReceiveThread"); + super(String.format("OH-binding-%s-%s", DigiplexBindingConstants.BINDING_ID, "Receiver")); this.stream = stream; } diff --git a/bundles/org.openhab.binding.doorbird/src/main/java/org/openhab/binding/doorbird/internal/listener/DoorbirdUdpListener.java b/bundles/org.openhab.binding.doorbird/src/main/java/org/openhab/binding/doorbird/internal/listener/DoorbirdUdpListener.java index 5fb5a9266d6..c8b8bfd64fc 100644 --- a/bundles/org.openhab.binding.doorbird/src/main/java/org/openhab/binding/doorbird/internal/listener/DoorbirdUdpListener.java +++ b/bundles/org.openhab.binding.doorbird/src/main/java/org/openhab/binding/doorbird/internal/listener/DoorbirdUdpListener.java @@ -22,6 +22,7 @@ import java.util.Arrays; import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; +import org.openhab.binding.doorbird.internal.DoorbirdBindingConstants; import org.openhab.binding.doorbird.internal.api.DoorbirdSession; import org.openhab.binding.doorbird.internal.handler.DoorbellHandler; import org.slf4j.Logger; @@ -58,6 +59,7 @@ public class DoorbirdUdpListener extends Thread { private long lastDataTime; public DoorbirdUdpListener(DoorbellHandler thingHandler) { + super(String.format("OH-binding-%s-%s", DoorbirdBindingConstants.BINDING_ID, "UdpListener")); this.thingHandler = thingHandler; } diff --git a/bundles/org.openhab.binding.fineoffsetweatherstation/src/main/java/org/openhab/binding/fineoffsetweatherstation/internal/discovery/FineOffsetGatewayDiscoveryService.java b/bundles/org.openhab.binding.fineoffsetweatherstation/src/main/java/org/openhab/binding/fineoffsetweatherstation/internal/discovery/FineOffsetGatewayDiscoveryService.java index 8d3135f90eb..0f26b11bd1a 100644 --- a/bundles/org.openhab.binding.fineoffsetweatherstation/src/main/java/org/openhab/binding/fineoffsetweatherstation/internal/discovery/FineOffsetGatewayDiscoveryService.java +++ b/bundles/org.openhab.binding.fineoffsetweatherstation/src/main/java/org/openhab/binding/fineoffsetweatherstation/internal/discovery/FineOffsetGatewayDiscoveryService.java @@ -286,6 +286,11 @@ public class FineOffsetGatewayDiscoveryService extends AbstractDiscoveryService * The thread, which waits for data and submits the unique results addresses to the discovery results */ private class ReceiverThread extends Thread { + + public ReceiverThread() { + super(String.format("OH-binding-%s-%s", FineOffsetWeatherStationBindingConstants.BINDING_ID, "Receiver")); + } + @Override public void run() { DatagramSocket socket = getSocket(); diff --git a/bundles/org.openhab.binding.globalcache/src/main/java/org/openhab/binding/globalcache/internal/handler/GlobalCacheHandler.java b/bundles/org.openhab.binding.globalcache/src/main/java/org/openhab/binding/globalcache/internal/handler/GlobalCacheHandler.java index 2db12fafcf9..2a7a3d747fe 100644 --- a/bundles/org.openhab.binding.globalcache/src/main/java/org/openhab/binding/globalcache/internal/handler/GlobalCacheHandler.java +++ b/bundles/org.openhab.binding.globalcache/src/main/java/org/openhab/binding/globalcache/internal/handler/GlobalCacheHandler.java @@ -37,6 +37,7 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.regex.Pattern; import org.eclipse.jdt.annotation.NonNull; +import org.openhab.binding.globalcache.internal.GlobalCacheBindingConstants; import org.openhab.binding.globalcache.internal.GlobalCacheBindingConstants.CommandType; import org.openhab.binding.globalcache.internal.command.CommandGetstate; import org.openhab.binding.globalcache.internal.command.CommandGetversion; @@ -452,7 +453,7 @@ public class GlobalCacheHandler extends BaseThingHandler { private ConnectionManager connectionManager; public CommandProcessor() { - super("GlobalCache Command Processor"); + super(String.format("OH-binding-%s-%s", GlobalCacheBindingConstants.BINDING_ID, "CommandProcessor")); sendQueue = new LinkedBlockingQueue<>(SEND_QUEUE_MAX_DEPTH); logger.debug("Processor for thing {} created request queue, depth={}", thingID(), SEND_QUEUE_MAX_DEPTH); } diff --git a/bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/ws/IhcClient.java b/bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/ws/IhcClient.java index 989b3aaaf08..8441ca7b7e8 100644 --- a/bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/ws/IhcClient.java +++ b/bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/ws/IhcClient.java @@ -27,6 +27,7 @@ import java.util.Map; import java.util.Set; import java.util.zip.GZIPInputStream; +import org.openhab.binding.ihc.internal.IhcBindingConstants; import org.openhab.binding.ihc.internal.ws.datatypes.WSControllerState; import org.openhab.binding.ihc.internal.ws.datatypes.WSFile; import org.openhab.binding.ihc.internal.ws.datatypes.WSLoginResult; @@ -456,6 +457,10 @@ public class IhcClient { private class IhcResourceValueNotificationListener extends Thread { private volatile boolean interrupted = false; + public IhcResourceValueNotificationListener() { + super(String.format("OH-binding-%s-%s", IhcBindingConstants.BINDING_ID, "NotificationListener")); + } + public void setInterrupted(boolean interrupted) { this.interrupted = interrupted; this.interrupt(); diff --git a/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/Ffmpeg.java b/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/Ffmpeg.java index 11b84a92d09..639e23ae2fa 100644 --- a/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/Ffmpeg.java +++ b/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/Ffmpeg.java @@ -103,6 +103,7 @@ public class Ffmpeg { public int countOfMotions; IpCameraFfmpegThread() { + super(String.format("OH-binding-%s-%s", IpCameraBindingConstants.BINDING_ID, "Ffmpeg")); setDaemon(true); } diff --git a/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/IpCameraBindingConstants.java b/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/IpCameraBindingConstants.java index 6023bd76dd5..7c297d07cda 100644 --- a/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/IpCameraBindingConstants.java +++ b/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/IpCameraBindingConstants.java @@ -28,7 +28,7 @@ import org.openhab.core.thing.ThingTypeUID; */ @NonNullByDefault public class IpCameraBindingConstants { - private static final String BINDING_ID = "ipcamera"; + public static final String BINDING_ID = "ipcamera"; public static final String AUTH_HANDLER = "authorizationHandler"; public static final String AMCREST_HANDLER = "amcrestHandler"; public static final String COMMON_HANDLER = "commonHandler"; diff --git a/bundles/org.openhab.binding.lirc/src/main/java/org/openhab/binding/lirc/internal/connector/LIRCStreamReader.java b/bundles/org.openhab.binding.lirc/src/main/java/org/openhab/binding/lirc/internal/connector/LIRCStreamReader.java index 19c6ce02806..f8782ee7c96 100644 --- a/bundles/org.openhab.binding.lirc/src/main/java/org/openhab/binding/lirc/internal/connector/LIRCStreamReader.java +++ b/bundles/org.openhab.binding.lirc/src/main/java/org/openhab/binding/lirc/internal/connector/LIRCStreamReader.java @@ -22,6 +22,7 @@ import java.util.Arrays; import java.util.regex.Matcher; import java.util.regex.Pattern; +import org.openhab.binding.lirc.internal.LIRCBindingConstants; import org.openhab.binding.lirc.internal.LIRCResponseException; import org.openhab.binding.lirc.internal.messages.LIRCButtonEvent; import org.openhab.binding.lirc.internal.messages.LIRCResponse; @@ -45,6 +46,7 @@ public class LIRCStreamReader extends Thread { private LIRCConnector connector; public LIRCStreamReader(LIRCConnector connector, InputStream in) { + super(String.format("OH-binding-%s-%s", LIRCBindingConstants.BINDING_ID, "StreamReader")); this.connector = connector; this.in = in; } diff --git a/bundles/org.openhab.binding.loxone/src/main/java/org/openhab/binding/loxone/internal/LxServerHandler.java b/bundles/org.openhab.binding.loxone/src/main/java/org/openhab/binding/loxone/internal/LxServerHandler.java index 6f1baa38a20..0af2c7b0436 100644 --- a/bundles/org.openhab.binding.loxone/src/main/java/org/openhab/binding/loxone/internal/LxServerHandler.java +++ b/bundles/org.openhab.binding.loxone/src/main/java/org/openhab/binding/loxone/internal/LxServerHandler.java @@ -663,6 +663,7 @@ public class LxServerHandler extends BaseThingHandler implements LxServerHandler private Instant lastKeepAlive; LxServerThread(int id) { + super(String.format("OH-binding-%s-%s", LxBindingConstants.BINDING_ID, "Server")); debugId = id; } diff --git a/bundles/org.openhab.binding.magentatv/src/main/java/org/openhab/binding/magentatv/internal/network/MagentaTVPoweroffListener.java b/bundles/org.openhab.binding.magentatv/src/main/java/org/openhab/binding/magentatv/internal/network/MagentaTVPoweroffListener.java index e48a97e73c4..177d390d2c5 100644 --- a/bundles/org.openhab.binding.magentatv/src/main/java/org/openhab/binding/magentatv/internal/network/MagentaTVPoweroffListener.java +++ b/bundles/org.openhab.binding.magentatv/src/main/java/org/openhab/binding/magentatv/internal/network/MagentaTVPoweroffListener.java @@ -23,6 +23,7 @@ import java.net.NetworkInterface; import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; +import org.openhab.binding.magentatv.internal.MagentaTVBindingConstants; import org.openhab.binding.magentatv.internal.MagentaTVHandlerFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -50,7 +51,7 @@ public class MagentaTVPoweroffListener extends Thread { public MagentaTVPoweroffListener(MagentaTVHandlerFactory handlerFactory, @Nullable NetworkInterface networkInterface) throws IOException { - setName("OH-Binding-magentatv-upnp-listener"); + super(String.format("OH-binding-%s-%s", MagentaTVBindingConstants.BINDING_ID, "PoweroffListener")); setDaemon(true); this.handlerFactory = handlerFactory; diff --git a/bundles/org.openhab.binding.meteostick/src/main/java/org/openhab/binding/meteostick/internal/handler/MeteostickBridgeHandler.java b/bundles/org.openhab.binding.meteostick/src/main/java/org/openhab/binding/meteostick/internal/handler/MeteostickBridgeHandler.java index 51b90a0332e..8e66c8b0f33 100644 --- a/bundles/org.openhab.binding.meteostick/src/main/java/org/openhab/binding/meteostick/internal/handler/MeteostickBridgeHandler.java +++ b/bundles/org.openhab.binding.meteostick/src/main/java/org/openhab/binding/meteostick/internal/handler/MeteostickBridgeHandler.java @@ -27,6 +27,7 @@ import java.util.concurrent.ConcurrentMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; +import org.openhab.binding.meteostick.internal.MeteostickBindingConstants; import org.openhab.core.config.core.Configuration; import org.openhab.core.io.transport.serial.PortInUseException; import org.openhab.core.io.transport.serial.SerialPort; @@ -222,6 +223,10 @@ public class MeteostickBridgeHandler extends BaseBridgeHandler { private class ReceiveThread extends Thread implements SerialPortEventListener { private final Logger logger = LoggerFactory.getLogger(ReceiveThread.class); + public ReceiveThread() { + super(String.format("OH-binding-%s-%s", MeteostickBindingConstants.BINDING_ID, "Receiver")); + } + @Override public void serialEvent(SerialPortEvent arg0) { try { diff --git a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/discovery/MiIoDiscovery.java b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/discovery/MiIoDiscovery.java index a62af789566..a74c2d73de8 100644 --- a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/discovery/MiIoDiscovery.java +++ b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/discovery/MiIoDiscovery.java @@ -32,6 +32,7 @@ import java.util.concurrent.TimeUnit; import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; import org.openhab.binding.miio.internal.Message; +import org.openhab.binding.miio.internal.MiIoBindingConstants; import org.openhab.binding.miio.internal.MiIoDevices; import org.openhab.binding.miio.internal.Utils; import org.openhab.binding.miio.internal.cloud.CloudConnector; @@ -352,6 +353,11 @@ public class MiIoDiscovery extends AbstractDiscoveryService { * */ private class ReceiverThread extends Thread { + + public ReceiverThread() { + super(String.format("OH-binding-%s-%s", MiIoBindingConstants.BINDING_ID, "Receiver")); + } + @Override public void run() { DatagramSocket socket = getSocket(); diff --git a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/transport/MiIoAsyncCommunication.java b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/transport/MiIoAsyncCommunication.java index 4c0baa0baa6..09b4d7e858b 100644 --- a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/transport/MiIoAsyncCommunication.java +++ b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/transport/MiIoAsyncCommunication.java @@ -260,7 +260,7 @@ public class MiIoAsyncCommunication { private final String deviceId; public MessageSenderThread(String deviceId) { - super("OH-binding-miio-MessageSenderThread-" + deviceId); + super(String.format("OH-binding-%s-%s-%s", MiIoBindingConstants.BINDING_ID, "Sender", deviceId)); setDaemon(true); this.deviceId = deviceId; } diff --git a/bundles/org.openhab.binding.mpd/src/main/java/org/openhab/binding/mpd/internal/MPDBindingConstants.java b/bundles/org.openhab.binding.mpd/src/main/java/org/openhab/binding/mpd/internal/MPDBindingConstants.java index b6b2b8ed892..2259da9f55a 100644 --- a/bundles/org.openhab.binding.mpd/src/main/java/org/openhab/binding/mpd/internal/MPDBindingConstants.java +++ b/bundles/org.openhab.binding.mpd/src/main/java/org/openhab/binding/mpd/internal/MPDBindingConstants.java @@ -24,7 +24,7 @@ import org.openhab.core.thing.ThingTypeUID; @NonNullByDefault public class MPDBindingConstants { - private static final String BINDING_ID = "mpd"; + public static final String BINDING_ID = "mpd"; // List of all Thing Type UIDs public static final ThingTypeUID THING_TYPE_MPD = new ThingTypeUID(BINDING_ID, "mpd"); diff --git a/bundles/org.openhab.binding.mpd/src/main/java/org/openhab/binding/mpd/internal/protocol/MPDConnectionThread.java b/bundles/org.openhab.binding.mpd/src/main/java/org/openhab/binding/mpd/internal/protocol/MPDConnectionThread.java index ec57db49946..740dbca52f6 100644 --- a/bundles/org.openhab.binding.mpd/src/main/java/org/openhab/binding/mpd/internal/protocol/MPDConnectionThread.java +++ b/bundles/org.openhab.binding.mpd/src/main/java/org/openhab/binding/mpd/internal/protocol/MPDConnectionThread.java @@ -24,6 +24,7 @@ import java.util.concurrent.atomic.AtomicBoolean; import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; +import org.openhab.binding.mpd.internal.MPDBindingConstants; import org.openhab.binding.mpd.internal.MPDException; import org.openhab.core.thing.ThingStatus; import org.openhab.core.thing.ThingStatusDetail; @@ -58,6 +59,7 @@ public class MPDConnectionThread extends Thread { private AtomicBoolean disposed = new AtomicBoolean(false); public MPDConnectionThread(MPDResponseListener listener, String address, Integer port, String password) { + super(String.format("OH-binding-%s-%s", MPDBindingConstants.BINDING_ID, "Connection")); this.listener = listener; this.address = address; this.port = port; diff --git a/bundles/org.openhab.binding.mynice/src/main/java/org/openhab/binding/mynice/internal/MyNiceBindingConstants.java b/bundles/org.openhab.binding.mynice/src/main/java/org/openhab/binding/mynice/internal/MyNiceBindingConstants.java index 772319c0b65..f79558fce75 100644 --- a/bundles/org.openhab.binding.mynice/src/main/java/org/openhab/binding/mynice/internal/MyNiceBindingConstants.java +++ b/bundles/org.openhab.binding.mynice/src/main/java/org/openhab/binding/mynice/internal/MyNiceBindingConstants.java @@ -22,7 +22,7 @@ import org.openhab.core.thing.ThingTypeUID; */ @NonNullByDefault public class MyNiceBindingConstants { - private static final String BINDING_ID = "mynice"; + public static final String BINDING_ID = "mynice"; // List of all Channel ids public static final String CHANNEL_STATUS = "status"; diff --git a/bundles/org.openhab.binding.mynice/src/main/java/org/openhab/binding/mynice/internal/handler/It4WifiConnector.java b/bundles/org.openhab.binding.mynice/src/main/java/org/openhab/binding/mynice/internal/handler/It4WifiConnector.java index 1e460369e1a..ff3e76d7cb6 100644 --- a/bundles/org.openhab.binding.mynice/src/main/java/org/openhab/binding/mynice/internal/handler/It4WifiConnector.java +++ b/bundles/org.openhab.binding.mynice/src/main/java/org/openhab/binding/mynice/internal/handler/It4WifiConnector.java @@ -20,6 +20,7 @@ import java.io.OutputStreamWriter; import javax.net.ssl.SSLSocket; import org.eclipse.jdt.annotation.NonNullByDefault; +import org.openhab.binding.mynice.internal.MyNiceBindingConstants; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -39,7 +40,7 @@ public class It4WifiConnector extends Thread { private final OutputStreamWriter out; public It4WifiConnector(It4WifiHandler handler, SSLSocket sslSocket) throws IOException { - super(It4WifiConnector.class.getName()); + super(String.format("OH-binding-%s-%s", MyNiceBindingConstants.BINDING_ID, "WifiConnector")); this.handler = handler; this.in = new InputStreamReader(sslSocket.getInputStream()); this.out = new OutputStreamWriter(sslSocket.getOutputStream()); diff --git a/bundles/org.openhab.binding.network/src/main/java/org/openhab/binding/network/internal/NetworkBindingConstants.java b/bundles/org.openhab.binding.network/src/main/java/org/openhab/binding/network/internal/NetworkBindingConstants.java index 262236b577f..071aafba8de 100644 --- a/bundles/org.openhab.binding.network/src/main/java/org/openhab/binding/network/internal/NetworkBindingConstants.java +++ b/bundles/org.openhab.binding.network/src/main/java/org/openhab/binding/network/internal/NetworkBindingConstants.java @@ -27,7 +27,7 @@ import org.openhab.core.thing.ThingTypeUID; @NonNullByDefault public class NetworkBindingConstants { - private static final String BINDING_ID = "network"; + public static final String BINDING_ID = "network"; // List of all Thing Type UIDs public static final ThingTypeUID BACKWARDS_COMPATIBLE_DEVICE = new ThingTypeUID(BINDING_ID, "device"); diff --git a/bundles/org.openhab.binding.network/src/main/java/org/openhab/binding/network/internal/dhcp/DHCPPacketListenerServer.java b/bundles/org.openhab.binding.network/src/main/java/org/openhab/binding/network/internal/dhcp/DHCPPacketListenerServer.java index d541e1539ed..aaef72f2783 100644 --- a/bundles/org.openhab.binding.network/src/main/java/org/openhab/binding/network/internal/dhcp/DHCPPacketListenerServer.java +++ b/bundles/org.openhab.binding.network/src/main/java/org/openhab/binding/network/internal/dhcp/DHCPPacketListenerServer.java @@ -21,6 +21,7 @@ import java.net.SocketException; import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; +import org.openhab.binding.network.internal.NetworkBindingConstants; import org.openhab.binding.network.internal.dhcp.DHCPPacket.BadPacketException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -45,6 +46,7 @@ public class DHCPPacketListenerServer extends Thread { private int currentPort = PRIVILEGED_PORT; DHCPPacketListenerServer(IPRequestReceivedCallback listener) throws SocketException { + super(String.format("OH-binding-%s-%s", NetworkBindingConstants.BINDING_ID, "DHCPPacketListener")); this.listener = listener; try { bindSocketTo(currentPort); diff --git a/bundles/org.openhab.binding.nibeheatpump/src/main/java/org/openhab/binding/nibeheatpump/internal/NibeHeatPumpBindingConstants.java b/bundles/org.openhab.binding.nibeheatpump/src/main/java/org/openhab/binding/nibeheatpump/internal/NibeHeatPumpBindingConstants.java index 3ce45fbd456..9e90e5663ab 100644 --- a/bundles/org.openhab.binding.nibeheatpump/src/main/java/org/openhab/binding/nibeheatpump/internal/NibeHeatPumpBindingConstants.java +++ b/bundles/org.openhab.binding.nibeheatpump/src/main/java/org/openhab/binding/nibeheatpump/internal/NibeHeatPumpBindingConstants.java @@ -26,7 +26,7 @@ import org.openhab.core.thing.ThingTypeUID; */ public class NibeHeatPumpBindingConstants { - private static final String BINDING_ID = "nibeheatpump"; + public static final String BINDING_ID = "nibeheatpump"; // List of all Thing Type UIDs public static final ThingTypeUID THING_TYPE_F1X45_UDP = new ThingTypeUID(BINDING_ID, "f1x45-udp"); diff --git a/bundles/org.openhab.binding.nibeheatpump/src/main/java/org/openhab/binding/nibeheatpump/internal/connection/SerialConnector.java b/bundles/org.openhab.binding.nibeheatpump/src/main/java/org/openhab/binding/nibeheatpump/internal/connection/SerialConnector.java index e1049760dff..6578f00fd62 100644 --- a/bundles/org.openhab.binding.nibeheatpump/src/main/java/org/openhab/binding/nibeheatpump/internal/connection/SerialConnector.java +++ b/bundles/org.openhab.binding.nibeheatpump/src/main/java/org/openhab/binding/nibeheatpump/internal/connection/SerialConnector.java @@ -21,6 +21,7 @@ import java.util.ArrayList; import java.util.List; import java.util.TooManyListenersException; +import org.openhab.binding.nibeheatpump.internal.NibeHeatPumpBindingConstants; import org.openhab.binding.nibeheatpump.internal.NibeHeatPumpException; import org.openhab.binding.nibeheatpump.internal.config.NibeHeatPumpConfiguration; import org.openhab.binding.nibeheatpump.internal.message.MessageFactory; @@ -165,6 +166,7 @@ public class SerialConnector extends NibeHeatPumpBaseConnector { final InputStream in; SerialReader(InputStream in) { + super(String.format("OH-binding-%s-%s", NibeHeatPumpBindingConstants.BINDING_ID, "SerialReader")); this.in = in; } diff --git a/bundles/org.openhab.binding.nibeheatpump/src/main/java/org/openhab/binding/nibeheatpump/internal/connection/SimulatorConnector.java b/bundles/org.openhab.binding.nibeheatpump/src/main/java/org/openhab/binding/nibeheatpump/internal/connection/SimulatorConnector.java index d85ce2d1f03..26a9272e075 100644 --- a/bundles/org.openhab.binding.nibeheatpump/src/main/java/org/openhab/binding/nibeheatpump/internal/connection/SimulatorConnector.java +++ b/bundles/org.openhab.binding.nibeheatpump/src/main/java/org/openhab/binding/nibeheatpump/internal/connection/SimulatorConnector.java @@ -19,6 +19,7 @@ import java.util.List; import java.util.Map; import java.util.Random; +import org.openhab.binding.nibeheatpump.internal.NibeHeatPumpBindingConstants; import org.openhab.binding.nibeheatpump.internal.NibeHeatPumpException; import org.openhab.binding.nibeheatpump.internal.config.NibeHeatPumpConfiguration; import org.openhab.binding.nibeheatpump.internal.message.MessageFactory; @@ -125,6 +126,10 @@ public class SimulatorConnector extends NibeHeatPumpBaseConnector { private class Reader extends Thread { boolean interrupted = false; + public Reader() { + super(String.format("OH-binding-%s-%s", NibeHeatPumpBindingConstants.BINDING_ID, "SimulatorReader")); + } + @Override public void interrupt() { logger.debug("Data listener interupt request received"); diff --git a/bundles/org.openhab.binding.nibeheatpump/src/main/java/org/openhab/binding/nibeheatpump/internal/connection/UDPConnector.java b/bundles/org.openhab.binding.nibeheatpump/src/main/java/org/openhab/binding/nibeheatpump/internal/connection/UDPConnector.java index 5ff3e0761b8..3e2536ddc9b 100644 --- a/bundles/org.openhab.binding.nibeheatpump/src/main/java/org/openhab/binding/nibeheatpump/internal/connection/UDPConnector.java +++ b/bundles/org.openhab.binding.nibeheatpump/src/main/java/org/openhab/binding/nibeheatpump/internal/connection/UDPConnector.java @@ -20,6 +20,7 @@ import java.net.InetAddress; import java.net.SocketException; import java.util.Arrays; +import org.openhab.binding.nibeheatpump.internal.NibeHeatPumpBindingConstants; import org.openhab.binding.nibeheatpump.internal.NibeHeatPumpException; import org.openhab.binding.nibeheatpump.internal.config.NibeHeatPumpConfiguration; import org.openhab.binding.nibeheatpump.internal.message.ModbusReadRequestMessage; @@ -124,6 +125,10 @@ public class UDPConnector extends NibeHeatPumpBaseConnector { private class Reader extends Thread { boolean interrupted = false; + public Reader() { + super(String.format("OH-binding-%s-%s", NibeHeatPumpBindingConstants.BINDING_ID, "UDPReader")); + } + @Override public void interrupt() { interrupted = true; diff --git a/bundles/org.openhab.binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/connection/HubCommunicationThread.java b/bundles/org.openhab.binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/connection/HubCommunicationThread.java index 40a3d601d96..ac7e33de537 100644 --- a/bundles/org.openhab.binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/connection/HubCommunicationThread.java +++ b/bundles/org.openhab.binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/connection/HubCommunicationThread.java @@ -74,6 +74,7 @@ public class HubCommunicationThread extends Thread { private HubCommunicationThreadState currentState = HubCommunicationThreadState.STARTING; public HubCommunicationThread(HubConnection hubConnection, NoboHubBridgeHandler hubHandler, Duration timeout) { + super("OH-binding-" + hubHandler.getThing().getUID()); this.hubConnection = hubConnection; this.hubHandler = hubHandler; this.timeout = timeout; diff --git a/bundles/org.openhab.binding.oceanic/src/main/java/org/openhab/binding/oceanic/internal/handler/SerialOceanicThingHandler.java b/bundles/org.openhab.binding.oceanic/src/main/java/org/openhab/binding/oceanic/internal/handler/SerialOceanicThingHandler.java index d8aa2de5596..08d8e822f19 100644 --- a/bundles/org.openhab.binding.oceanic/src/main/java/org/openhab/binding/oceanic/internal/handler/SerialOceanicThingHandler.java +++ b/bundles/org.openhab.binding.oceanic/src/main/java/org/openhab/binding/oceanic/internal/handler/SerialOceanicThingHandler.java @@ -21,6 +21,7 @@ import java.util.Objects; import java.util.TooManyListenersException; import java.util.stream.Collectors; +import org.openhab.binding.oceanic.internal.OceanicBindingConstants; import org.openhab.binding.oceanic.internal.SerialOceanicBindingConfiguration; import org.openhab.binding.oceanic.internal.Throttler; import org.openhab.core.io.transport.serial.PortInUseException; @@ -208,6 +209,7 @@ public class SerialOceanicThingHandler extends OceanicThingHandler implements Se SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss,SSS"); public SerialPortReader(InputStream in) { + super(String.format("OH-binding-%s-%s", OceanicBindingConstants.BINDING_ID, "SerialPortReader")); this.inputStream = in; this.setName("SerialPortReader-" + getThing().getUID()); } diff --git a/bundles/org.openhab.binding.onkyo/src/main/java/org/openhab/binding/onkyo/internal/OnkyoConnection.java b/bundles/org.openhab.binding.onkyo/src/main/java/org/openhab/binding/onkyo/internal/OnkyoConnection.java index 7eb528db6cb..aea3cb00921 100644 --- a/bundles/org.openhab.binding.onkyo/src/main/java/org/openhab/binding/onkyo/internal/OnkyoConnection.java +++ b/bundles/org.openhab.binding.onkyo/src/main/java/org/openhab/binding/onkyo/internal/OnkyoConnection.java @@ -276,6 +276,7 @@ public class OnkyoConnection { private boolean interrupted = false; DataListener() { + super(String.format("OH-binding-%s-%s", OnkyoBindingConstants.BINDING_ID, "DataListener")); } public void setInterrupted(boolean interrupted) { diff --git a/bundles/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/internal/protocol/StreamAvrConnection.java b/bundles/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/internal/protocol/StreamAvrConnection.java index 98d4fe4d4f4..afb5b4b2ec5 100644 --- a/bundles/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/internal/protocol/StreamAvrConnection.java +++ b/bundles/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/internal/protocol/StreamAvrConnection.java @@ -24,6 +24,7 @@ import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; +import org.openhab.binding.pioneeravr.internal.PioneerAvrBindingConstants; import org.openhab.binding.pioneeravr.internal.protocol.ParameterizedCommand.ParameterizedCommandType; import org.openhab.binding.pioneeravr.internal.protocol.SimpleCommand.SimpleCommandType; import org.openhab.binding.pioneeravr.internal.protocol.avr.AvrCommand; @@ -351,11 +352,10 @@ public abstract class StreamAvrConnection implements AvrConnection { * @throws IOException */ public IpControlInputStreamReader(InputStream inputStream) { + super(String.format("OH-binding-%s-%s", PioneerAvrBindingConstants.BINDING_ID, getConnectionName())); this.bufferedReader = new BufferedReader(new InputStreamReader(inputStream)); this.stopLatch = new CountDownLatch(1); - this.setDaemon(true); - this.setName("IpControlInputStreamReader-" + getConnectionName()); } @Override diff --git a/bundles/org.openhab.binding.playstation/src/main/java/org/openhab/binding/playstation/internal/PS4Handler.java b/bundles/org.openhab.binding.playstation/src/main/java/org/openhab/binding/playstation/internal/PS4Handler.java index 97f3ba18019..ea70927a54a 100644 --- a/bundles/org.openhab.binding.playstation/src/main/java/org/openhab/binding/playstation/internal/PS4Handler.java +++ b/bundles/org.openhab.binding.playstation/src/main/java/org/openhab/binding/playstation/internal/PS4Handler.java @@ -390,6 +390,7 @@ public class PS4Handler extends BaseThingHandler { private SocketChannel socketChannel; public SocketChannelHandler() throws IOException { + super(String.format("OH-binding-%s-%s", PlayStationBindingConstants.BINDING_ID, "SocketChannelHandler")); socketChannel = setupChannel(); loggedIn = false; oskOpen = false; diff --git a/bundles/org.openhab.binding.playstation/src/main/java/org/openhab/binding/playstation/internal/PlayStationBindingConstants.java b/bundles/org.openhab.binding.playstation/src/main/java/org/openhab/binding/playstation/internal/PlayStationBindingConstants.java index 228d219c02a..b0b2d58af3c 100644 --- a/bundles/org.openhab.binding.playstation/src/main/java/org/openhab/binding/playstation/internal/PlayStationBindingConstants.java +++ b/bundles/org.openhab.binding.playstation/src/main/java/org/openhab/binding/playstation/internal/PlayStationBindingConstants.java @@ -29,7 +29,7 @@ import org.openhab.core.thing.ThingTypeUID; @NonNullByDefault public class PlayStationBindingConstants { - private static final String BINDING_ID = "playstation"; + public static final String BINDING_ID = "playstation"; // List of all Thing Type UIDs public static final ThingTypeUID THING_TYPE_PS3 = new ThingTypeUID(BINDING_ID, "PS3"); diff --git a/bundles/org.openhab.binding.rme/src/main/java/org/openhab/binding/rme/internal/handler/SerialThingHandler.java b/bundles/org.openhab.binding.rme/src/main/java/org/openhab/binding/rme/internal/handler/SerialThingHandler.java index e9bad02098a..78dfddca54b 100644 --- a/bundles/org.openhab.binding.rme/src/main/java/org/openhab/binding/rme/internal/handler/SerialThingHandler.java +++ b/bundles/org.openhab.binding.rme/src/main/java/org/openhab/binding/rme/internal/handler/SerialThingHandler.java @@ -244,8 +244,8 @@ public abstract class SerialThingHandler extends BaseThingHandler implements Ser SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss,SSS"); public SerialPortReader(InputStream in) { + super("OH-binding-" + getThing().getUID()); this.inputStream = in; - this.setName("SerialPortReader-" + getThing().getUID()); } @Override diff --git a/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/manager/ShellyManagerCache.java b/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/manager/ShellyManagerCache.java index a9681677610..68c2ac8398e 100644 --- a/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/manager/ShellyManagerCache.java +++ b/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/manager/ShellyManagerCache.java @@ -18,6 +18,7 @@ import java.util.concurrent.ConcurrentHashMap; import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; +import org.openhab.binding.shelly.internal.ShellyBindingConstants; /** * {@link ShellyManagerCache} implements a cache with expiring times of the entries @@ -76,6 +77,11 @@ public class ShellyManagerCache extends ConcurrentHashMap { } class CleanerThread extends Thread { + + public CleanerThread() { + super(String.format("OH-binding-%s-%s", ShellyBindingConstants.BINDING_ID, "Cleaner")); + } + @Override public void run() { while (true) { diff --git a/bundles/org.openhab.binding.smsmodem/src/3rdparty/java/org/smslib/MessageReader.java b/bundles/org.openhab.binding.smsmodem/src/3rdparty/java/org/smslib/MessageReader.java index 3c5e52e56c4..574e8bc0d3f 100644 --- a/bundles/org.openhab.binding.smsmodem/src/3rdparty/java/org/smslib/MessageReader.java +++ b/bundles/org.openhab.binding.smsmodem/src/3rdparty/java/org/smslib/MessageReader.java @@ -11,6 +11,7 @@ import java.util.List; import java.util.StringTokenizer; import org.eclipse.jdt.annotation.NonNullByDefault; +import org.openhab.binding.smsmodem.internal.SMSModemBindingConstants; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.smslib.DeviceInformation.Modes; @@ -41,6 +42,7 @@ public class MessageReader extends Thread { private static int HOURS_TO_RETAIN_ORPHANED_MESSAGE_PARTS = 72; public MessageReader(Modem modem) { + super(String.format("OH-binding-%s-%s", SMSModemBindingConstants.BINDING_ID, "MessageReader")); this.modem = modem; } diff --git a/bundles/org.openhab.binding.smsmodem/src/3rdparty/java/org/smslib/Modem.java b/bundles/org.openhab.binding.smsmodem/src/3rdparty/java/org/smslib/Modem.java index a654bac9905..5d4d7912ef0 100644 --- a/bundles/org.openhab.binding.smsmodem/src/3rdparty/java/org/smslib/Modem.java +++ b/bundles/org.openhab.binding.smsmodem/src/3rdparty/java/org/smslib/Modem.java @@ -18,6 +18,7 @@ import java.util.concurrent.locks.ReentrantLock; import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; +import org.openhab.binding.smsmodem.internal.SMSModemBindingConstants; import org.openhab.core.io.transport.serial.SerialPortManager; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -145,8 +146,9 @@ public class Modem { modemPollingInterval, TimeUnit.SECONDS); this.modemDriver.refreshRssi(); this.messageSender = new MessageSender( - String.format("Gateway Dispatcher 1 [%s]", this.gatewayId), messageQueue, this, - gatewayDispatcherYield); + String.format("OH-binding-%s-%s-%s", SMSModemBindingConstants.BINDING_ID, + "GatewayDispatcher", this.gatewayId), + messageQueue, this, gatewayDispatcherYield); startSendingQueue(); if (logger.isDebugEnabled()) { logger.debug("Gateway: {}: {}, SL:{}, SIG: {} / {}", toShortString(), diff --git a/bundles/org.openhab.binding.smsmodem/src/main/java/org/openhab/binding/smsmodem/internal/SMSModemBindingConstants.java b/bundles/org.openhab.binding.smsmodem/src/main/java/org/openhab/binding/smsmodem/internal/SMSModemBindingConstants.java index b0288479df2..c12dbbd75bd 100644 --- a/bundles/org.openhab.binding.smsmodem/src/main/java/org/openhab/binding/smsmodem/internal/SMSModemBindingConstants.java +++ b/bundles/org.openhab.binding.smsmodem/src/main/java/org/openhab/binding/smsmodem/internal/SMSModemBindingConstants.java @@ -25,7 +25,7 @@ import org.openhab.core.thing.ThingTypeUID; @NonNullByDefault public class SMSModemBindingConstants { - private static final String BINDING_ID = "smsmodem"; + public static final String BINDING_ID = "smsmodem"; // List of all Thing Type UIDs public static final ThingTypeUID SMSCONVERSATION_THING_TYPE = new ThingTypeUID(BINDING_ID, "smsconversation"); diff --git a/bundles/org.openhab.binding.squeezebox/src/main/java/org/openhab/binding/squeezebox/internal/handler/SqueezeBoxServerHandler.java b/bundles/org.openhab.binding.squeezebox/src/main/java/org/openhab/binding/squeezebox/internal/handler/SqueezeBoxServerHandler.java index 84594694904..ba482e57c24 100644 --- a/bundles/org.openhab.binding.squeezebox/src/main/java/org/openhab/binding/squeezebox/internal/handler/SqueezeBoxServerHandler.java +++ b/bundles/org.openhab.binding.squeezebox/src/main/java/org/openhab/binding/squeezebox/internal/handler/SqueezeBoxServerHandler.java @@ -39,6 +39,7 @@ import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; import org.eclipse.jdt.annotation.NonNullByDefault; +import org.openhab.binding.squeezebox.internal.SqueezeBoxBindingConstants; import org.openhab.binding.squeezebox.internal.config.SqueezeBoxServerConfig; import org.openhab.binding.squeezebox.internal.dto.ButtonDTO; import org.openhab.binding.squeezebox.internal.dto.ButtonDTODeserializer; @@ -440,7 +441,7 @@ public class SqueezeBoxServerHandler extends BaseBridgeHandler { private boolean terminate = false; public SqueezeServerListener() { - super("Squeeze Server Listener"); + super(String.format("OH-binding-%s-%s", SqueezeBoxBindingConstants.BINDING_ID, "ServerListener")); } public void terminate() { diff --git a/bundles/org.openhab.binding.teleinfo/src/main/java/org/openhab/binding/teleinfo/internal/serial/TeleinfoReceiveThread.java b/bundles/org.openhab.binding.teleinfo/src/main/java/org/openhab/binding/teleinfo/internal/serial/TeleinfoReceiveThread.java index 26801ecf194..4565b9dbbfa 100644 --- a/bundles/org.openhab.binding.teleinfo/src/main/java/org/openhab/binding/teleinfo/internal/serial/TeleinfoReceiveThread.java +++ b/bundles/org.openhab.binding.teleinfo/src/main/java/org/openhab/binding/teleinfo/internal/serial/TeleinfoReceiveThread.java @@ -41,7 +41,7 @@ public class TeleinfoReceiveThread extends Thread { public TeleinfoReceiveThread(SerialPort serialPort, final TeleinfoSerialControllerHandler listener, boolean autoRepairInvalidADPSgroupLine, TeleinfoTicMode ticMode, boolean verifyChecksum) { - super("OH-binding-TeleinfoReceiveThread-" + listener.getThing().getUID().getId()); + super("OH-binding-" + listener.getThing().getUID()); setDaemon(true); this.serialPort = serialPort; this.listener = listener; diff --git a/bundles/org.openhab.binding.touchwand/src/main/java/org/openhab/binding/touchwand/internal/discovery/TouchWandControllerDiscoveryService.java b/bundles/org.openhab.binding.touchwand/src/main/java/org/openhab/binding/touchwand/internal/discovery/TouchWandControllerDiscoveryService.java index ffd4adfde3d..6e7cc9d2c39 100644 --- a/bundles/org.openhab.binding.touchwand/src/main/java/org/openhab/binding/touchwand/internal/discovery/TouchWandControllerDiscoveryService.java +++ b/bundles/org.openhab.binding.touchwand/src/main/java/org/openhab/binding/touchwand/internal/discovery/TouchWandControllerDiscoveryService.java @@ -122,6 +122,7 @@ public class TouchWandControllerDiscoveryService extends AbstractDiscoveryServic private DatagramSocket mySocket; public ReceiverThread(DatagramSocket socket) { + super(String.format("OH-binding-%s-%s", TouchWandBindingConstants.BINDING_ID, "Receiver")); mySocket = socket; } diff --git a/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/upnp/HueEmulationConfigWithRuntime.java b/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/upnp/HueEmulationConfigWithRuntime.java index 8c98babd802..207c8a53952 100644 --- a/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/upnp/HueEmulationConfigWithRuntime.java +++ b/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/upnp/HueEmulationConfigWithRuntime.java @@ -53,7 +53,7 @@ class HueEmulationConfigWithRuntime extends Thread implements Runnable { HueEmulationConfigWithRuntime(Consumer r, HueEmulationConfig config, String addrString, InetAddress MULTI_ADDR_IPV4, InetAddress MULTI_ADDR_IPV6) throws UnknownHostException { - super("HueEmulation UPNP Server"); + super("OH-io-hueemulation-UPNPServer"); this.r = r; this.config = config; @@ -72,7 +72,7 @@ class HueEmulationConfigWithRuntime extends Thread implements Runnable { HueEmulationConfigWithRuntime(Consumer r, @Nullable HueEmulationConfig config, InetAddress MULTI_ADDR_IPV4, InetAddress MULTI_ADDR_IPV6) throws UnknownHostException { - super("HueEmulation UPNP Server"); + super("OH-io-hueemulation-UPNPServer"); this.r = r; this.config = config;