Class JobContextParamsSetupConfiguration
- java.lang.Object
-
- org.ikasan.job.orchestration.configuration.JobContextParamsSetupConfiguration
-
public class JobContextParamsSetupConfiguration extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCIPHER_TAG
-
Constructor Summary
Constructors Constructor Description JobContextParamsSetupConfiguration(org.ikasan.spec.scheduled.job.service.SpringCloudConfigRefreshService springCloudConfigRefreshService, java.util.List<java.lang.String> jobContextConfigRepoEnvironment, java.lang.String configServerUrl)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.stream.Stream<java.lang.String>getLines(java.lang.String mappingFilePath)Helper method to read lines from the configuration filejava.util.Map<java.lang.String,java.lang.String>getLocation()java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>getParamsToReplace()Gets the parameters that is required forvoidsetLocation(java.util.Map<java.lang.String,java.lang.String> location)Setter to create the bean from JobContextParamsSetupFactory Key will be the name of the context Value will be the location of the file that contains the parameters for the given key.voidsetParamsToReplace(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> paramsToReplace)
-
-
-
Field Detail
-
CIPHER_TAG
public static final java.lang.String CIPHER_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
getParamsToReplace
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getParamsToReplace()
Gets the parameters that is required for- Returns:
- a Map of Map parameters, the below is an example of two entries in the map { ContextName1 : { param1=value2, param2=value2 } }, { ContextName2 : { param1=value2, param2=value2, param3=value3 } }
-
setParamsToReplace
public void setParamsToReplace(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> paramsToReplace)
-
getLocation
public java.util.Map<java.lang.String,java.lang.String> getLocation()
-
setLocation
public void setLocation(java.util.Map<java.lang.String,java.lang.String> location)
Setter to create the bean from JobContextParamsSetupFactory Key will be the name of the context Value will be the location of the file that contains the parameters for the given key.- Parameters:
location- key = context name, value = location of the file.
-
getLines
public static java.util.stream.Stream<java.lang.String> getLines(java.lang.String mappingFilePath) throws java.io.IOExceptionHelper method to read lines from the configuration file- Parameters:
mappingFilePath- path of the configuration file- Returns:
- Stream of String that represent the lines of the configuration file.
- Throws:
java.io.IOException- file issues
-
-