|
|
@ -20,6 +20,7 @@ import org.eclipse.californium.core.CoapClient; |
|
|
import org.eclipse.californium.core.CoapResponse; |
|
|
import org.eclipse.californium.core.CoapResponse; |
|
|
import org.eclipse.californium.core.coap.CoAP; |
|
|
import org.eclipse.californium.core.coap.CoAP; |
|
|
import org.eclipse.californium.core.coap.MediaTypeRegistry; |
|
|
import org.eclipse.californium.core.coap.MediaTypeRegistry; |
|
|
|
|
|
import org.eclipse.californium.elements.config.SystemConfig; |
|
|
import org.springframework.beans.factory.config.ConfigurableBeanFactory; |
|
|
import org.springframework.beans.factory.config.ConfigurableBeanFactory; |
|
|
import org.springframework.context.annotation.Scope; |
|
|
import org.springframework.context.annotation.Scope; |
|
|
import org.springframework.stereotype.Component; |
|
|
import org.springframework.stereotype.Component; |
|
|
@ -35,6 +36,10 @@ import java.io.IOException; |
|
|
@Slf4j |
|
|
@Slf4j |
|
|
public class CoapTransportHealthChecker extends TransportHealthChecker<CoapTransportMonitoringConfig> { |
|
|
public class CoapTransportHealthChecker extends TransportHealthChecker<CoapTransportMonitoringConfig> { |
|
|
|
|
|
|
|
|
|
|
|
static { |
|
|
|
|
|
SystemConfig.register(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private CoapClient coapClient; |
|
|
private CoapClient coapClient; |
|
|
|
|
|
|
|
|
protected CoapTransportHealthChecker(CoapTransportMonitoringConfig config, TransportMonitoringTarget target) { |
|
|
protected CoapTransportHealthChecker(CoapTransportMonitoringConfig config, TransportMonitoringTarget target) { |
|
|
|