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;
import org.springframework.validation.annotation.Validated;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.util.List;
@Slf4j
@Data
......@@ -38,56 +36,39 @@ public class ControlServiceProperties {
CLOUDIATOR, PROACTIVE
}
@Value("${control.printBuildInfo:false}")
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;
@Value("${control.metasolver-configuration-url:}")
private String metasolverConfigurationUrl;
@Value("${control.esb-url:}")
private String esbUrl;
@Value("${control.preload.camel-model:}")
private String preloadCamelModel;
@Value("${control.preload.cp-model:}")
private String preloadCpModel;
@Value("${control.skip-translation:false}")
private boolean skipTranslation;
@Value("${control.skip-mvv-retrieve:false}")
private boolean skipMvvRetrieve;
@Value("${control.skip-broker-cep:false}")
private boolean skipBrokerCep;
@Value("${control.skip-baguette:false}")
private boolean skipBaguette;
@Value("${control.skip-collectors:false}")
private boolean skipCollectors;
@Value("${control.skip-metasolver:false}")
private boolean skipMetasolver;
@Value("${control.skip-esb-notification:false}")
private boolean skipEsbNotification;
@Value("${control.tc-load-file:}")
private String tcLoadFile;
@Value("${control.tc-save-file:}")
private String tcSaveFile;
@Value("${control.event-debug-enabled:false}")
private boolean eventDebugEnabled;
@Value("${control.exit-allowed:false}")
private boolean exitAllowed;
@Value("${control.exit-grace-period:10}") @Min(1)
private long exitGracePeriod;
@Value("${control.exit-code:0}")
private int exitCode;
@Min(1)
private long exitGracePeriod = 10;
private int exitCode = 0;
@Value("${static.resource.context:/**}")
private String staticResourceContext;
@Value("${static.resource.context}")
private String staticResourceContext = "/**";
@Value("${password-encoder-class:}")
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