Commit 63a18cc9 authored by I Patini's avatar I Patini
Browse files

EMS: Control Service: Improved ControlServiceProperties by removing...

EMS: Control Service: Improved ControlServiceProperties by removing unnecessary @Value annotations. (@Value annotations remained for: ipSetting, executionware, staticResourceContext, and passwordEncoderClass)
parent 4777e901
...@@ -19,8 +19,6 @@ import org.springframework.context.annotation.PropertySource; ...@@ -19,8 +19,6 @@ import org.springframework.context.annotation.PropertySource;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import javax.validation.constraints.Min; import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.util.List;
@Slf4j @Slf4j
@Data @Data
...@@ -38,56 +36,39 @@ public class ControlServiceProperties { ...@@ -38,56 +36,39 @@ public class ControlServiceProperties {
CLOUDIATOR, PROACTIVE CLOUDIATOR, PROACTIVE
} }
@Value("${control.printBuildInfo:false}")
private boolean printBuildInfo; private boolean printBuildInfo;
@Value("${IP_SETTING:PUBLIC_IP}")
private IpSetting ipSetting;
@Value("${EXECUTIONWARE:PROACTIVE}")
private ExecutionWare executionware;
@Value("${control.upperware-grouping}") @Value("${IP_SETTING}")
private IpSetting ipSetting = IpSetting.PUBLIC_IP;
@Value("${EXECUTIONWARE}")
private ExecutionWare executionware = ExecutionWare.PROACTIVE;
private String upperwareGrouping; private String upperwareGrouping;
@Value("${control.metasolver-configuration-url:}")
private String metasolverConfigurationUrl; private String metasolverConfigurationUrl;
@Value("${control.esb-url:}")
private String esbUrl; private String esbUrl;
@Value("${control.preload.camel-model:}")
private String preloadCamelModel; private String preloadCamelModel;
@Value("${control.preload.cp-model:}")
private String preloadCpModel; private String preloadCpModel;
@Value("${control.skip-translation:false}")
private boolean skipTranslation; private boolean skipTranslation;
@Value("${control.skip-mvv-retrieve:false}")
private boolean skipMvvRetrieve; private boolean skipMvvRetrieve;
@Value("${control.skip-broker-cep:false}")
private boolean skipBrokerCep; private boolean skipBrokerCep;
@Value("${control.skip-baguette:false}")
private boolean skipBaguette; private boolean skipBaguette;
@Value("${control.skip-collectors:false}")
private boolean skipCollectors; private boolean skipCollectors;
@Value("${control.skip-metasolver:false}")
private boolean skipMetasolver; private boolean skipMetasolver;
@Value("${control.skip-esb-notification:false}")
private boolean skipEsbNotification; private boolean skipEsbNotification;
@Value("${control.tc-load-file:}")
private String tcLoadFile; private String tcLoadFile;
@Value("${control.tc-save-file:}")
private String tcSaveFile; private String tcSaveFile;
@Value("${control.event-debug-enabled:false}")
private boolean eventDebugEnabled; private boolean eventDebugEnabled;
@Value("${control.exit-allowed:false}")
private boolean exitAllowed; private boolean exitAllowed;
@Value("${control.exit-grace-period:10}") @Min(1) @Min(1)
private long exitGracePeriod; private long exitGracePeriod = 10;
@Value("${control.exit-code:0}") private int exitCode = 0;
private int exitCode;
@Value("${static.resource.context:/**}") @Value("${static.resource.context}")
private String staticResourceContext; private String staticResourceContext = "/**";
@Value("${password-encoder-class:}") @Value("${password-encoder-class:}")
private String passwordEncoderClass; private String passwordEncoderClass;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment