public class ServiceCommands
extends com.mapr.cliframework.base.CLIBaseClass
implements com.mapr.cliframework.base.CLIInterface
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<java.lang.String,com.mapr.cliframework.util.FieldInfo> |
fieldTable |
static com.mapr.cliframework.base.CLICommand |
serviceCommands |
static java.util.Map<java.lang.String,com.mapr.cliframework.base.inputparams.BaseInputParameter> |
serviceListParams |
| Constructor and Description |
|---|
ServiceCommands(com.mapr.cliframework.base.ProcessedInput input,
com.mapr.cliframework.base.CLICommand cliCommand) |
| Modifier and Type | Method and Description |
|---|---|
com.mapr.cliframework.base.CommandOutput |
executeRealCommand() |
static java.util.Set<java.lang.String> |
getConfiguredServices(java.util.List<java.lang.String> nodeHostNames,
java.util.List<java.lang.String> nodeIps,
java.lang.String zkConnectString)
Fetches from zk a map of services configured on all the nodes.
|
static java.util.Set<java.lang.String> |
getRunningServices(java.util.List<java.lang.String> nodeHostNames,
java.util.List<java.lang.String> nodeIps,
java.lang.String zkConnectString)
Fetches from zk a map of services running on all the nodes.
|
executeCommand, executeSimpleSHHCommand, executeSimpleSHHCommand, getCLICommand, getCommandUsage, getGIds, getInput, getKeyType, getParamBooleanValue, getParamDateValue, getParamIntValue, getParamLongValue, getParamObjectValue, getParamTextValue, getUserCredentials, getUserId, getUserLoginId, getVersion, isParamPresent, isParamValueEmpty, setServerCall, setUserCredentials, setVersion, validateInputpublic static java.util.Map<java.lang.String,com.mapr.cliframework.base.inputparams.BaseInputParameter> serviceListParams
public static final com.mapr.cliframework.base.CLICommand serviceCommands
public static java.util.Map<java.lang.String,com.mapr.cliframework.util.FieldInfo> fieldTable
public ServiceCommands(com.mapr.cliframework.base.ProcessedInput input,
com.mapr.cliframework.base.CLICommand cliCommand)
public com.mapr.cliframework.base.CommandOutput executeRealCommand()
throws com.mapr.cliframework.base.CLIProcessingException
executeRealCommand in class com.mapr.cliframework.base.CLIBaseClasscom.mapr.cliframework.base.CLIProcessingExceptionpublic static java.util.Set<java.lang.String> getConfiguredServices(java.util.List<java.lang.String> nodeHostNames,
java.util.List<java.lang.String> nodeIps,
java.lang.String zkConnectString)
throws com.mapr.cliframework.base.CLIProcessingException
nodeHostName - - hostname of the nodenodeIps - - all the IPs of the nodezkConnectString - - connection string to connect to zkcom.mapr.cliframework.base.CLIProcessingExceptionpublic static java.util.Set<java.lang.String> getRunningServices(java.util.List<java.lang.String> nodeHostNames,
java.util.List<java.lang.String> nodeIps,
java.lang.String zkConnectString)
throws com.mapr.cliframework.base.CLIProcessingException
nodeHostName - - hostname of the nodenodeIps - - all the IPs of the nodezkConnectString - - connection string to connect to zkcom.mapr.cliframework.base.CLIProcessingException