mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing formating issues
This commit is contained in:
parent
5f71313af1
commit
1655b512b0
@ -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){
|
||||||
|
|||||||
@ -44,6 +44,7 @@ public class MonitoringTask implements Task {
|
|||||||
|
|
||||||
Map<String, String> properties;
|
Map<String, String> properties;
|
||||||
private boolean executeForTenants = false;
|
private boolean executeForTenants = false;
|
||||||
|
private final String IS_CLOUD = "is.cloud";
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -61,7 +62,7 @@ public class MonitoringTask implements Task {
|
|||||||
if (log.isDebugEnabled()) {
|
if (log.isDebugEnabled()) {
|
||||||
log.debug("Monitoring task started to run.");
|
log.debug("Monitoring task started to run.");
|
||||||
}
|
}
|
||||||
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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user