Class ConfigHandler
- java.lang.Object
-
- de.gematik.ti.epa.vzd.gem.invoker.ConfigHandler
-
public final class ConfigHandler extends java.lang.ObjectThis class reads the user input and store all the locations and configurations the user didImplemented as singelton
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadjustConnectionCount(java.util.List<CommandType> commands)java.lang.StringgetBasePath()longgetChunkFrom()intgetChunkSize()longgetChunkTill()java.lang.StringgetClientVersion()java.lang.StringgetCommandsPath()java.lang.StringgetConfigPath()intgetConnectionCount()java.lang.StringgetCredentialPath()static ConfigHandlergetInstance()This function returns the instance of the ConfigHandler as long as it is initializedjava.lang.StringgetListType()java.lang.StringgetLogSummaryDirectory()static intgetMaxExecutionsPerExecutor()intgetMaxParaExecutionsPerExecutor()intgetMaxParallelExecutor()java.lang.StringgetProxyHost()intgetProxyPort()java.lang.StringgetRetryingOAuthPath()longgetTimeout()static ConfigHandlerinit(java.lang.String[] args)Create an instance of a ConfigHandler while reading the commandlinebooleanisChunked()booleanisGetVersion()booleanisLogCommands()booleanisProxySet()static voidsetConfigHandler(ConfigHandler setConfigHandler)
-
-
-
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()
-
-