|
|
@ -66,11 +66,9 @@ public class DeviceDetailsRetrieverTask implements Task {
|
|
|
|
if(executeForTenants){
|
|
|
|
if(executeForTenants){
|
|
|
|
this.executeForAllTenants();
|
|
|
|
this.executeForAllTenants();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
log.debug("Device details retrieving task started to run.");
|
|
|
|
log.debug("Device details retrieving task started to run.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
DeviceTaskManager deviceTaskManager = new DeviceTaskManagerImpl(deviceType,
|
|
|
|
DeviceTaskManager deviceTaskManager = new DeviceTaskManagerImpl(deviceType,
|
|
|
|
operationMonitoringTaskConfig);
|
|
|
|
operationMonitoringTaskConfig);
|
|
|
|
//pass the configurations also from here, monitoring tasks
|
|
|
|
//pass the configurations also from here, monitoring tasks
|
|
|
@ -78,13 +76,11 @@ public class DeviceDetailsRetrieverTask implements Task {
|
|
|
|
deviceTaskManager.addOperations();
|
|
|
|
deviceTaskManager.addOperations();
|
|
|
|
} catch (DeviceMgtTaskException e) {
|
|
|
|
} catch (DeviceMgtTaskException e) {
|
|
|
|
log.error(
|
|
|
|
log.error(
|
|
|
|
"Error occurred while trying to add the operations to device to retrieve device details.",
|
|
|
|
"Error occurred while trying to add the operations to device to retrieve device details.", e);
|
|
|
|
e);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void executeForAllTenants() {
|
|
|
|
private void executeForAllTenants() {
|
|
|
|
|
|
|
|
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
@ -119,7 +115,6 @@ public class DeviceDetailsRetrieverTask implements Task {
|
|
|
|
log.error("Error occurred while trying to get the available tenants " +
|
|
|
|
log.error("Error occurred while trying to get the available tenants " +
|
|
|
|
"from device manager provider service.", e);
|
|
|
|
"from device manager provider service.", e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|