return false;
}
- if (!this.shuttingDownStatisticsPolling) {
-
- LOG.info("Starting statistics context cluster services for node {}", deviceInfo.getLOGValue());
-
- this.statListForCollectingInitialization();
- Futures.addCallback(this.initialGatherDynamicData(), new FutureCallback<Boolean>() {
+ LOG.info("Starting statistics context cluster services for node {}", deviceInfo.getLOGValue());
- @Override
- public void onSuccess(@Nullable Boolean aBoolean) {
- initialSubmitHandler.initialSubmitTransaction();
- }
+ this.statListForCollectingInitialization();
+ Futures.addCallback(this.initialGatherDynamicData(), new FutureCallback<Boolean>() {
- @Override
- public void onFailure(Throwable throwable) {
- LOG.warn("Initial gathering statistics unsuccessful for node {}", deviceInfo.getLOGValue());
- lifecycleService.closeConnection();
- }
- });
+ @Override
+ public void onSuccess(@Nullable Boolean aBoolean) {
+ initialSubmitHandler.initialSubmitTransaction();
+ }
- myManager.startScheduling(deviceInfo);
+ @Override
+ public void onFailure(Throwable throwable) {
+ LOG.warn("Initial gathering statistics unsuccessful for node {}", deviceInfo.getLOGValue());
+ lifecycleService.closeConnection();
+ }
+ });
+ if (!this.shuttingDownStatisticsPolling) {
+ myManager.startScheduling(deviceInfo);
}
return this.clusterInitializationPhaseHandler.onContextInstantiateService(connectionContext);