class CmdHelper
extends java.lang.Object
Constructor and Description |
---|
CmdHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getHost(java.lang.String[] cmd)
Extracts host name from the command line
|
(package private) static java.lang.String |
getPresetName(java.lang.String[] cmd)
Extracts preset name from the command line is any
|
static java.lang.String |
getServiceName(java.lang.String[] cmd)
Extracts service name from the command line
|
(package private) static boolean |
keyFound(java.lang.String[] cmd,
java.lang.String key)
Checks whether the key is in the command line
|
(package private) static boolean |
listLimits(java.lang.String[] cmd)
Checks whether limitList parameter is in the command line
|
(package private) static boolean |
listParameters(java.lang.String[] cmd)
Searches the command line keys in the array of parameters
|
(package private) static boolean |
listPresets(java.lang.String[] cmd)
Check whether presetList is set in the command line
|
(package private) static boolean |
listServices(java.lang.String[] cmd)
list available services
|
(package private) static boolean |
testService(java.lang.String[] cmd)
tests service
|
static boolean listPresets(java.lang.String[] cmd)
cmd
- command line optionsstatic boolean listLimits(java.lang.String[] cmd)
cmd
- - command line optionsstatic boolean listServices(java.lang.String[] cmd)
cmd
- static boolean testService(java.lang.String[] cmd)
cmd
- static boolean keyFound(java.lang.String[] cmd, java.lang.String key)
cmd
- key
- static java.lang.String getPresetName(java.lang.String[] cmd)
cmd
- command line optionspublic static java.lang.String getServiceName(java.lang.String[] cmd)
cmd
- command line optionspublic static java.lang.String getHost(java.lang.String[] cmd)
cmd
- command line optionsstatic boolean listParameters(java.lang.String[] cmd)
cmd
- command line options