File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed
src/main/java/com/orange/lo/sample/mqtt2eventhub Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change 9
9
10
10
import com .orange .lo .sample .mqtt2eventhub .utils .ConnectorHealthActuatorEndpoint ;
11
11
import com .orange .lo .sdk .mqtt .DataManagementReconnectCallback ;
12
- import org .slf4j .Logger ;
13
- import org .slf4j .LoggerFactory ;
14
12
import org .springframework .stereotype .Component ;
15
13
16
- import java .lang .invoke .MethodHandles ;
17
-
18
14
@ Component
19
15
public class LoMqttReconnectHandler implements DataManagementReconnectCallback {
20
16
21
- private static final Logger LOG = LoggerFactory .getLogger (MethodHandles .lookup ().lookupClass ());
22
-
23
17
private final ConnectorHealthActuatorEndpoint connectorHealthActuatorEndpoint ;
24
18
25
19
public LoMqttReconnectHandler (ConnectorHealthActuatorEndpoint connectorHealthActuatorEndpoint ) {
@@ -28,9 +22,7 @@ public LoMqttReconnectHandler(ConnectorHealthActuatorEndpoint connectorHealthAct
28
22
29
23
@ Override
30
24
public void connectComplete (boolean b , String s ) {
31
- LOG .info ("Hahahaah moj handler #1 {}" , connectorHealthActuatorEndpoint .isLoConnectionStatus ());
32
25
connectorHealthActuatorEndpoint .setLoConnectionStatus (true );
33
- LOG .info ("Hahahaah moj handler #2 {}" , connectorHealthActuatorEndpoint .isLoConnectionStatus ());
34
26
}
35
27
36
28
@ Override
Original file line number Diff line number Diff line change @@ -11,9 +11,6 @@ public class ConnectorHealthActuatorEndpoint implements HealthIndicator {
11
11
boolean cloudConnectionStatus = true ;
12
12
boolean loConnectionStatus = true ;
13
13
14
- public ConnectorHealthActuatorEndpoint () {
15
- }
16
-
17
14
@ Override
18
15
public Health getHealth (boolean includeDetails ) {
19
16
return HealthIndicator .super .getHealth (includeDetails );
You can’t perform that action at this time.
0 commit comments