Class ConfigHandler


  • public final class ConfigHandler
    extends java.lang.Object
    This class reads the user input and store all the locations and configurations the user did

    Implemented as singelton

    • Method Detail

      • getInstance

        public static ConfigHandler getInstance()
        This function returns the instance of the ConfigHandler as long as it is initialized
        Returns:
      • init

        public static ConfigHandler init​(java.lang.String[] args)
        Create an instance of a ConfigHandler while reading the commandline
        Parameters:
        args - input parameter from commandline
      • adjustConnectionCount

        public void adjustConnectionCount​(java.util.List<CommandType> commands)
      • setConfigHandler

        public static void setConfigHandler​(ConfigHandler setConfigHandler)
      • getRetryingOAuthPath

        public java.lang.String getRetryingOAuthPath()
      • getConfigPath

        public java.lang.String getConfigPath()
      • getCredentialPath

        public java.lang.String getCredentialPath()
      • getBasePath

        public java.lang.String getBasePath()
      • getCommandsPath

        public java.lang.String getCommandsPath()
      • getProxyHost

        public java.lang.String getProxyHost()
      • getProxyPort

        public int getProxyPort()
      • isProxySet

        public boolean isProxySet()
      • getMaxParallelExecutor

        public int getMaxParallelExecutor()
      • getMaxParaExecutionsPerExecutor

        public int getMaxParaExecutionsPerExecutor()
      • getConnectionCount

        public int getConnectionCount()
      • getClientVersion

        public java.lang.String getClientVersion()
      • isGetVersion

        public boolean isGetVersion()
      • getTimeout

        public long getTimeout()
      • isLogCommands

        public boolean isLogCommands()
      • isChunked

        public boolean isChunked()
      • getChunkSize

        public int getChunkSize()
      • getLogSummaryDirectory

        public java.lang.String getLogSummaryDirectory()
      • getMaxExecutionsPerExecutor

        public static int getMaxExecutionsPerExecutor()
      • getChunkFrom

        public long getChunkFrom()
      • getChunkTill

        public long getChunkTill()
      • getListType

        public java.lang.String getListType()