Class ConfigHandler
- java.lang.Object
-
- de.gematik.ti.epa.vzd.gem.invoker.ConfigHandler
-
public final class ConfigHandler extends java.lang.Object
This 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 void
adjustConnectionCount(java.util.List<CommandType> commands)
java.lang.String
getBasePath()
long
getChunkFrom()
int
getChunkSize()
long
getChunkTill()
java.lang.String
getClientVersion()
java.lang.String
getCommandsPath()
java.lang.String
getConfigPath()
int
getConnectionCount()
java.lang.String
getCredentialPath()
static ConfigHandler
getInstance()
This function returns the instance of the ConfigHandler as long as it is initializedjava.lang.String
getListType()
java.lang.String
getLogSummaryDirectory()
static int
getMaxExecutionsPerExecutor()
int
getMaxParaExecutionsPerExecutor()
int
getMaxParallelExecutor()
java.lang.String
getProxyHost()
int
getProxyPort()
java.lang.String
getRetryingOAuthPath()
long
getTimeout()
static ConfigHandler
init(java.lang.String[] args)
Create an instance of a ConfigHandler while reading the commandlineboolean
isChunked()
boolean
isGetVersion()
boolean
isLogCommands()
boolean
isProxySet()
static void
setConfigHandler(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()
-
-