Package com.mapr.cli
Class ClusterGroupCommands
- java.lang.Object
-
- com.mapr.cliframework.base.CLIBaseClass
-
- com.mapr.cli.common.ListCommand
-
- com.mapr.cli.ClusterGroupCommands
-
- All Implemented Interfaces:
ListIterator,com.mapr.cliframework.base.CLIInterface
public class ClusterGroupCommands extends ListCommand implements com.mapr.cliframework.base.CLIInterface
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAPIIPS_PARAMstatic java.lang.StringASCENDING_SORTING_ORDER_PARAM_NAMEstatic java.util.Map<java.lang.String,com.mapr.cliframework.base.inputparams.BaseInputParameter>baseParamsstatic java.lang.StringCLDBIPS_PARAMstatic java.lang.StringCLUSTERGROUP_COMMAND_ADD_EXTERNALstatic java.lang.StringCLUSTERGROUP_COMMAND_GET_CG_TABLEstatic java.lang.StringCLUSTERGROUP_COMMAND_LISTstatic java.lang.StringCLUSTERGROUP_COMMAND_REMOVEstatic java.lang.StringCLUSTERGROUP_COMMAND_SETPRIMARYstatic java.lang.StringCLUSTERGROUP_COMMAND_SETUPGRADEstatic java.lang.StringCLUSTERGROUP_COMMAND_SHOW_CLUSTER_CERTstatic java.lang.StringCLUSTERGROUP_COMMAND_UPDATEPRIMARYstatic com.mapr.cliframework.base.CLICommandClusterGroupAddExternalCommandstatic java.lang.StringClusterGroupAddExternalUsagestatic com.mapr.cliframework.base.CLICommand[]clusterGroupCommandsstatic java.lang.StringclusterGroupCommandsUsagestatic com.mapr.cliframework.base.CLICommandClusterGroupGetCgTableCommandstatic java.lang.StringClusterGroupGetCgTableUsagestatic com.mapr.cliframework.base.CLICommandClusterGroupListCommandstatic java.lang.StringClusterGroupListUsagestatic com.mapr.cliframework.base.CLICommandClusterGroupRemoveCommandstatic java.lang.StringClusterGroupRemoveUsagestatic com.mapr.cliframework.base.CLICommandClusterGroupSetPrimaryCommandstatic java.lang.StringClusterGroupSetPrimaryUsagestatic com.mapr.cliframework.base.CLICommandClusterGroupSetUpgradeCommandstatic java.lang.StringClusterGroupSetUpgradeUsagestatic com.mapr.cliframework.base.CLICommandClusterGroupShowClusterCertCommandstatic com.mapr.cliframework.base.CLICommandClusterGroupUpdatePrimaryCommandstatic java.lang.StringClusterGroupUpdatePrimaryUsagestatic java.lang.StringCLUSTERNAME_PARAMstatic java.lang.StringCOLUMNS_PARAM_NAMEstatic java.lang.StringCONF_FILEstatic java.lang.StringCROSSCLUSTER_TICKET_PARAMstatic java.lang.StringDESCENDING_SORTING_ORDER_PARAM_NAMEstatic java.lang.StringEXTERNAL_SERVER_IPS_PARAMstatic java.lang.StringEXTERNAL_SERVER_IPS_SKIP_CHECKstatic java.lang.StringEXTERNAL_SERVER_NAME_PARAMstatic java.lang.StringEXTERNAL_SERVER_TYPE_PARAMstatic java.util.Map<com.mapr.fs.cldb.proto.CLDBProto.ClusterGroupConfInfoFields,com.mapr.cliframework.util.FieldInfo>fieldTablestatic java.lang.StringFILTER_PARAM_NAMEstatic java.lang.StringLIMIT_PARAM_NAMEstatic java.lang.StringNFS_EXPORT_FILEstatic java.lang.StringOUTPUT_PARAM_NAMEstatic java.lang.StringSHOW_PRIMARY_PARAMstatic java.lang.StringSORT_DIRECTION_PARAM_NAMEstatic java.lang.StringSORTBY_PARAM_NAMEstatic java.lang.StringSORTING_ORDER_PARAM_NAMEstatic java.lang.StringSTART_PARAM_NAMEstatic java.lang.StringTICKET_FILEstatic java.lang.StringTMP_CONF_FILEstatic java.lang.StringTMP_TICKET_FILE
-
Constructor Summary
Constructors Constructor Description ClusterGroupCommands(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand cliCommand)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.protobuf.MessageLitebuildNextRequest(com.google.protobuf.MessageLite prevReq, com.google.protobuf.MessageLite prevResp)Builds the next request object by inspecting the previous request and previous response.com.mapr.cliframework.base.CommandOutputexecuteRealCommand()booleanhasMore(com.google.protobuf.MessageLite prevReq, com.google.protobuf.MessageLite prevResp)Inspect the last request and last response to see if there are more records to be fetched.voidprocessResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, com.google.protobuf.MessageLite response)Parse the response and populate the output hierarchy.com.google.protobuf.MessageLitesendRequest(com.google.protobuf.MessageLite request)Send the request using RPC and fetch the response.-
Methods inherited from class com.mapr.cli.common.ListCommand
getFilters, getNextLimiter, hasMore, list
-
Methods inherited from class com.mapr.cliframework.base.CLIBaseClass
executeCommand, executeSimpleSHHCommand, executeSimpleSHHCommand, getCLICommand, getCommandUsage, getGIds, getInput, getKeyType, getParamBooleanValue, getParamDateValue, getParamIntValue, getParamLongValue, getParamObjectValue, getParamTextValue, getUserClusterOps, getUserCredentials, getUserId, getUserLoginId, getVersion, isParamPresent, isParamValueEmpty, setServerCall, setUserClusterOps, setUserCredentials, setUserCredentialsByJwt, setVersion, skipValidation, validateInput
-
-
-
-
Field Detail
-
CONF_FILE
public static final java.lang.String CONF_FILE
- See Also:
- Constant Field Values
-
TICKET_FILE
public static final java.lang.String TICKET_FILE
- See Also:
- Constant Field Values
-
TMP_CONF_FILE
public static final java.lang.String TMP_CONF_FILE
- See Also:
- Constant Field Values
-
TMP_TICKET_FILE
public static final java.lang.String TMP_TICKET_FILE
- See Also:
- Constant Field Values
-
NFS_EXPORT_FILE
public static final java.lang.String NFS_EXPORT_FILE
- See Also:
- Constant Field Values
-
CLUSTERGROUP_COMMAND_SETPRIMARY
public static final java.lang.String CLUSTERGROUP_COMMAND_SETPRIMARY
- See Also:
- Constant Field Values
-
CLUSTERGROUP_COMMAND_UPDATEPRIMARY
public static final java.lang.String CLUSTERGROUP_COMMAND_UPDATEPRIMARY
- See Also:
- Constant Field Values
-
CLUSTERGROUP_COMMAND_LIST
public static final java.lang.String CLUSTERGROUP_COMMAND_LIST
- See Also:
- Constant Field Values
-
CLUSTERGROUP_COMMAND_GET_CG_TABLE
public static final java.lang.String CLUSTERGROUP_COMMAND_GET_CG_TABLE
- See Also:
- Constant Field Values
-
CLUSTERGROUP_COMMAND_REMOVE
public static final java.lang.String CLUSTERGROUP_COMMAND_REMOVE
- See Also:
- Constant Field Values
-
CLUSTERGROUP_COMMAND_ADD_EXTERNAL
public static final java.lang.String CLUSTERGROUP_COMMAND_ADD_EXTERNAL
- See Also:
- Constant Field Values
-
CLUSTERGROUP_COMMAND_SETUPGRADE
public static final java.lang.String CLUSTERGROUP_COMMAND_SETUPGRADE
- See Also:
- Constant Field Values
-
CLUSTERGROUP_COMMAND_SHOW_CLUSTER_CERT
public static final java.lang.String CLUSTERGROUP_COMMAND_SHOW_CLUSTER_CERT
- See Also:
- Constant Field Values
-
CLUSTERNAME_PARAM
public static final java.lang.String CLUSTERNAME_PARAM
- See Also:
- Constant Field Values
-
SHOW_PRIMARY_PARAM
public static final java.lang.String SHOW_PRIMARY_PARAM
- See Also:
- Constant Field Values
-
CLDBIPS_PARAM
public static final java.lang.String CLDBIPS_PARAM
- See Also:
- Constant Field Values
-
APIIPS_PARAM
public static final java.lang.String APIIPS_PARAM
- See Also:
- Constant Field Values
-
COLUMNS_PARAM_NAME
public static final java.lang.String COLUMNS_PARAM_NAME
- See Also:
- Constant Field Values
-
CROSSCLUSTER_TICKET_PARAM
public static final java.lang.String CROSSCLUSTER_TICKET_PARAM
- See Also:
- Constant Field Values
-
EXTERNAL_SERVER_TYPE_PARAM
public static final java.lang.String EXTERNAL_SERVER_TYPE_PARAM
- See Also:
- Constant Field Values
-
EXTERNAL_SERVER_NAME_PARAM
public static final java.lang.String EXTERNAL_SERVER_NAME_PARAM
- See Also:
- Constant Field Values
-
EXTERNAL_SERVER_IPS_PARAM
public static final java.lang.String EXTERNAL_SERVER_IPS_PARAM
- See Also:
- Constant Field Values
-
EXTERNAL_SERVER_IPS_SKIP_CHECK
public static final java.lang.String EXTERNAL_SERVER_IPS_SKIP_CHECK
- See Also:
- Constant Field Values
-
FILTER_PARAM_NAME
public static final java.lang.String FILTER_PARAM_NAME
- See Also:
- Constant Field Values
-
SORTBY_PARAM_NAME
public static final java.lang.String SORTBY_PARAM_NAME
- See Also:
- Constant Field Values
-
SORTING_ORDER_PARAM_NAME
public static final java.lang.String SORTING_ORDER_PARAM_NAME
- See Also:
- Constant Field Values
-
ASCENDING_SORTING_ORDER_PARAM_NAME
public static final java.lang.String ASCENDING_SORTING_ORDER_PARAM_NAME
- See Also:
- Constant Field Values
-
DESCENDING_SORTING_ORDER_PARAM_NAME
public static final java.lang.String DESCENDING_SORTING_ORDER_PARAM_NAME
- See Also:
- Constant Field Values
-
SORT_DIRECTION_PARAM_NAME
public static final java.lang.String SORT_DIRECTION_PARAM_NAME
- See Also:
- Constant Field Values
-
OUTPUT_PARAM_NAME
public static final java.lang.String OUTPUT_PARAM_NAME
- See Also:
- Constant Field Values
-
START_PARAM_NAME
public static final java.lang.String START_PARAM_NAME
- See Also:
- Constant Field Values
-
LIMIT_PARAM_NAME
public static final java.lang.String LIMIT_PARAM_NAME
- See Also:
- Constant Field Values
-
clusterGroupCommandsUsage
public static final java.lang.String clusterGroupCommandsUsage
- See Also:
- Constant Field Values
-
ClusterGroupSetPrimaryUsage
public static final java.lang.String ClusterGroupSetPrimaryUsage
- See Also:
- Constant Field Values
-
ClusterGroupUpdatePrimaryUsage
public static final java.lang.String ClusterGroupUpdatePrimaryUsage
- See Also:
- Constant Field Values
-
ClusterGroupRemoveUsage
public static final java.lang.String ClusterGroupRemoveUsage
- See Also:
- Constant Field Values
-
ClusterGroupListUsage
public static final java.lang.String ClusterGroupListUsage
- See Also:
- Constant Field Values
-
ClusterGroupGetCgTableUsage
public static final java.lang.String ClusterGroupGetCgTableUsage
- See Also:
- Constant Field Values
-
ClusterGroupSetUpgradeUsage
public static final java.lang.String ClusterGroupSetUpgradeUsage
- See Also:
- Constant Field Values
-
ClusterGroupAddExternalUsage
public static final java.lang.String ClusterGroupAddExternalUsage
- See Also:
- Constant Field Values
-
baseParams
public static java.util.Map<java.lang.String,com.mapr.cliframework.base.inputparams.BaseInputParameter> baseParams
-
fieldTable
public static java.util.Map<com.mapr.fs.cldb.proto.CLDBProto.ClusterGroupConfInfoFields,com.mapr.cliframework.util.FieldInfo> fieldTable
-
ClusterGroupSetPrimaryCommand
public static final com.mapr.cliframework.base.CLICommand ClusterGroupSetPrimaryCommand
-
ClusterGroupUpdatePrimaryCommand
public static final com.mapr.cliframework.base.CLICommand ClusterGroupUpdatePrimaryCommand
-
ClusterGroupRemoveCommand
public static final com.mapr.cliframework.base.CLICommand ClusterGroupRemoveCommand
-
ClusterGroupAddExternalCommand
public static final com.mapr.cliframework.base.CLICommand ClusterGroupAddExternalCommand
-
ClusterGroupGetCgTableCommand
public static final com.mapr.cliframework.base.CLICommand ClusterGroupGetCgTableCommand
-
ClusterGroupSetUpgradeCommand
public static final com.mapr.cliframework.base.CLICommand ClusterGroupSetUpgradeCommand
-
ClusterGroupShowClusterCertCommand
public static final com.mapr.cliframework.base.CLICommand ClusterGroupShowClusterCertCommand
-
ClusterGroupListCommand
public static final com.mapr.cliframework.base.CLICommand ClusterGroupListCommand
-
clusterGroupCommands
public static final com.mapr.cliframework.base.CLICommand[] clusterGroupCommands
-
-
Method Detail
-
executeRealCommand
public com.mapr.cliframework.base.CommandOutput executeRealCommand() throws com.mapr.cliframework.base.CLIProcessingException- Specified by:
executeRealCommandin classcom.mapr.cliframework.base.CLIBaseClass- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
processResponse
public void processResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, com.google.protobuf.MessageLite response) throws com.mapr.cliframework.base.CLIProcessingExceptionDescription copied from interface:ListIteratorParse the response and populate the output hierarchy.- Specified by:
processResponsein interfaceListIterator- Specified by:
processResponsein classListCommand- Parameters:
out- -CommandOutput.OutputHierarchyresponse- - response object- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
sendRequest
public com.google.protobuf.MessageLite sendRequest(com.google.protobuf.MessageLite request) throws com.mapr.cliframework.base.CLIProcessingExceptionDescription copied from interface:ListIteratorSend the request using RPC and fetch the response.- Specified by:
sendRequestin interfaceListIterator- Specified by:
sendRequestin classListCommand- Parameters:
request- - request object.- Returns:
- - the response object.
- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
buildNextRequest
public com.google.protobuf.MessageLite buildNextRequest(com.google.protobuf.MessageLite prevReq, com.google.protobuf.MessageLite prevResp) throws com.mapr.cliframework.base.CLIProcessingExceptionDescription copied from interface:ListIteratorBuilds the next request object by inspecting the previous request and previous response.- Specified by:
buildNextRequestin interfaceListIterator- Specified by:
buildNextRequestin classListCommand- Returns:
- - new request object
- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
hasMore
public boolean hasMore(com.google.protobuf.MessageLite prevReq, com.google.protobuf.MessageLite prevResp) throws com.mapr.cliframework.base.CLIProcessingExceptionDescription copied from interface:ListIteratorInspect the last request and last response to see if there are more records to be fetched.- Specified by:
hasMorein interfaceListIterator- Specified by:
hasMorein classListCommand- Returns:
- - true, if there are more records. false, if no more.
- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
-