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.StringALLCLUSTERS_PARAMstatic java.lang.StringALLTABLES_PARAMstatic 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.StringCCTK_FILEPATH_PARAMstatic java.lang.StringCLDBIPS_PARAMstatic java.lang.StringCLUSTERGROUP_COMMAND_ADD_EXTERNALstatic java.lang.StringCLUSTERGROUP_COMMAND_FETCH_CHAIN_CAstatic java.lang.StringCLUSTERGROUP_COMMAND_GENERATE_CLUSTER_CONFstatic java.lang.StringCLUSTERGROUP_COMMAND_GET_CG_TABLEstatic java.lang.StringCLUSTERGROUP_COMMAND_GET_NFS_EXPORTSstatic java.lang.StringCLUSTERGROUP_COMMAND_LISTstatic java.lang.StringCLUSTERGROUP_COMMAND_REMOVEstatic java.lang.StringCLUSTERGROUP_COMMAND_RESTORE_TABLEstatic java.lang.StringCLUSTERGROUP_COMMAND_S3GNSstatic 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.CLICommandClusterGroupFetchChainCaCommandstatic com.mapr.cliframework.base.CLICommandClusterGroupGenerateClusterConfCommandstatic java.lang.StringClusterGroupGenerateClusterConfUsagestatic com.mapr.cliframework.base.CLICommandClusterGroupGetCgTableCommandstatic java.lang.StringClusterGroupGetCgTableUsagestatic com.mapr.cliframework.base.CLICommandClusterGroupGetNfsExportsCommandstatic java.lang.StringClusterGroupGetNfsExportsUsagestatic com.mapr.cliframework.base.CLICommandClusterGroupListCommandstatic java.lang.StringClusterGroupListUsagestatic com.mapr.cliframework.base.CLICommandClusterGroupRemoveCommandstatic java.lang.StringClusterGroupRemoveUsagestatic com.mapr.cliframework.base.CLICommandClusterGroupRestoreTableCommandstatic java.lang.StringClusterGroupRestoreTableUsagestatic com.mapr.cliframework.base.CLICommandClusterGroupS3Commandstatic java.lang.StringClusterGroupS3GNSUsagestatic 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_ACCESSKEY_PARAMstatic java.lang.StringEXTERNAL_SERVER_AWS_WEBIDROLE_ARNstatic java.lang.StringEXTERNAL_SERVER_AWSREGIONstatic java.lang.StringEXTERNAL_SERVER_GCPREGIONstatic java.lang.StringEXTERNAL_SERVER_IPS_PARAMstatic java.lang.StringEXTERNAL_SERVER_IPS_SKIP_CHECKstatic java.lang.StringEXTERNAL_SERVER_NAME_PARAMstatic java.lang.StringEXTERNAL_SERVER_S3CERTstatic java.lang.StringEXTERNAL_SERVER_S3CERTPATHstatic java.lang.StringEXTERNAL_SERVER_S3PORTstatic java.lang.StringEXTERNAL_SERVER_S3PROTOstatic java.lang.StringEXTERNAL_SERVER_S3TLSstatic java.lang.StringEXTERNAL_SERVER_S3VENDORstatic java.lang.StringEXTERNAL_SERVER_SECRETEKEY_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.StringLICENSE_INFO_PARAM_NAMEstatic java.lang.StringLIMIT_PARAM_NAMEstatic java.lang.StringNFS_EXPORT_FILEstatic java.lang.StringOUTPUT_PARAM_NAMEstatic java.lang.StringRESTORE_FORCE_PARAMstatic 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.StringTABLEPATH_PARAMstatic 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, getBooleanParam, 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
-
CLUSTERGROUP_COMMAND_FETCH_CHAIN_CA
public static final java.lang.String CLUSTERGROUP_COMMAND_FETCH_CHAIN_CA
- See Also:
- Constant Field Values
-
CLUSTERGROUP_COMMAND_GET_NFS_EXPORTS
public static final java.lang.String CLUSTERGROUP_COMMAND_GET_NFS_EXPORTS
- See Also:
- Constant Field Values
-
CLUSTERGROUP_COMMAND_GENERATE_CLUSTER_CONF
public static final java.lang.String CLUSTERGROUP_COMMAND_GENERATE_CLUSTER_CONF
- See Also:
- Constant Field Values
-
CLUSTERGROUP_COMMAND_S3GNS
public static final java.lang.String CLUSTERGROUP_COMMAND_S3GNS
- See Also:
- Constant Field Values
-
CLUSTERGROUP_COMMAND_RESTORE_TABLE
public static final java.lang.String CLUSTERGROUP_COMMAND_RESTORE_TABLE
- See Also:
- Constant Field Values
-
TABLEPATH_PARAM
public static final java.lang.String TABLEPATH_PARAM
- See Also:
- Constant Field Values
-
ALLTABLES_PARAM
public static final java.lang.String ALLTABLES_PARAM
- See Also:
- Constant Field Values
-
RESTORE_FORCE_PARAM
public static final java.lang.String RESTORE_FORCE_PARAM
- See Also:
- Constant Field Values
-
CLUSTERNAME_PARAM
public static final java.lang.String CLUSTERNAME_PARAM
- See Also:
- Constant Field Values
-
ALLCLUSTERS_PARAM
public static final java.lang.String ALLCLUSTERS_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
-
CCTK_FILEPATH_PARAM
public static final java.lang.String CCTK_FILEPATH_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
-
EXTERNAL_SERVER_ACCESSKEY_PARAM
public static final java.lang.String EXTERNAL_SERVER_ACCESSKEY_PARAM
- See Also:
- Constant Field Values
-
EXTERNAL_SERVER_SECRETEKEY_PARAM
public static final java.lang.String EXTERNAL_SERVER_SECRETEKEY_PARAM
- See Also:
- Constant Field Values
-
EXTERNAL_SERVER_S3VENDOR
public static final java.lang.String EXTERNAL_SERVER_S3VENDOR
- See Also:
- Constant Field Values
-
EXTERNAL_SERVER_AWSREGION
public static final java.lang.String EXTERNAL_SERVER_AWSREGION
- See Also:
- Constant Field Values
-
EXTERNAL_SERVER_GCPREGION
public static final java.lang.String EXTERNAL_SERVER_GCPREGION
- See Also:
- Constant Field Values
-
EXTERNAL_SERVER_AWS_WEBIDROLE_ARN
public static final java.lang.String EXTERNAL_SERVER_AWS_WEBIDROLE_ARN
- See Also:
- Constant Field Values
-
EXTERNAL_SERVER_S3TLS
public static final java.lang.String EXTERNAL_SERVER_S3TLS
- See Also:
- Constant Field Values
-
EXTERNAL_SERVER_S3CERT
public static final java.lang.String EXTERNAL_SERVER_S3CERT
- See Also:
- Constant Field Values
-
EXTERNAL_SERVER_S3CERTPATH
public static final java.lang.String EXTERNAL_SERVER_S3CERTPATH
- See Also:
- Constant Field Values
-
EXTERNAL_SERVER_S3PORT
public static final java.lang.String EXTERNAL_SERVER_S3PORT
- See Also:
- Constant Field Values
-
EXTERNAL_SERVER_S3PROTO
public static final java.lang.String EXTERNAL_SERVER_S3PROTO
- 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
-
LICENSE_INFO_PARAM_NAME
public static final java.lang.String LICENSE_INFO_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
-
ClusterGroupGenerateClusterConfUsage
public static final java.lang.String ClusterGroupGenerateClusterConfUsage
- 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
-
ClusterGroupGetNfsExportsUsage
public static final java.lang.String ClusterGroupGetNfsExportsUsage
- See Also:
- Constant Field Values
-
ClusterGroupS3GNSUsage
public static final java.lang.String ClusterGroupS3GNSUsage
- 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
-
ClusterGroupS3Command
public static final com.mapr.cliframework.base.CLICommand ClusterGroupS3Command
-
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
-
ClusterGroupFetchChainCaCommand
public static final com.mapr.cliframework.base.CLICommand ClusterGroupFetchChainCaCommand
-
ClusterGroupGenerateClusterConfCommand
public static final com.mapr.cliframework.base.CLICommand ClusterGroupGenerateClusterConfCommand
-
ClusterGroupListCommand
public static final com.mapr.cliframework.base.CLICommand ClusterGroupListCommand
-
ClusterGroupGetNfsExportsCommand
public static final com.mapr.cliframework.base.CLICommand ClusterGroupGetNfsExportsCommand
-
ClusterGroupRestoreTableUsage
public static final java.lang.String ClusterGroupRestoreTableUsage
- See Also:
- Constant Field Values
-
ClusterGroupRestoreTableCommand
public static final com.mapr.cliframework.base.CLICommand ClusterGroupRestoreTableCommand
-
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
-
-