|
|
@ -41,6 +41,7 @@ public class DeviceDetailsRetrieverTask implements Task {
|
|
|
|
private String oppConfig;
|
|
|
|
private String oppConfig;
|
|
|
|
private OperationMonitoringTaskConfig operationMonitoringTaskConfig;
|
|
|
|
private OperationMonitoringTaskConfig operationMonitoringTaskConfig;
|
|
|
|
private boolean executeForTenants = false;
|
|
|
|
private boolean executeForTenants = false;
|
|
|
|
|
|
|
|
private final String IS_CLOUD = "is.cloud";
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void setProperties(Map<String, String> map) {
|
|
|
|
public void setProperties(Map<String, String> map) {
|
|
|
@ -60,7 +61,7 @@ public class DeviceDetailsRetrieverTask implements Task {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void execute() {
|
|
|
|
public void execute() {
|
|
|
|
|
|
|
|
|
|
|
|
if(System.getProperty("is.cloud") != null && Boolean.parseBoolean(System.getProperty("is.cloud"))){
|
|
|
|
if(System.getProperty(IS_CLOUD) != null && Boolean.parseBoolean(System.getProperty(IS_CLOUD))){
|
|
|
|
executeForTenants = true;
|
|
|
|
executeForTenants = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(executeForTenants){
|
|
|
|
if(executeForTenants){
|
|
|
|