Class JobContextParamsSetupConfiguration


  • public class JobContextParamsSetupConfiguration
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CIPHER_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 file
      java.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 for
      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.
      void setParamsToReplace​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> paramsToReplace)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JobContextParamsSetupConfiguration

        public JobContextParamsSetupConfiguration​(org.ikasan.spec.scheduled.job.service.SpringCloudConfigRefreshService springCloudConfigRefreshService,
                                                  java.util.List<java.lang.String> jobContextConfigRepoEnvironment,
                                                  java.lang.String configServerUrl)
    • 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.IOException
        Helper 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