Package com.mapr.cli
Class InstallerCommands
- java.lang.Object
-
- com.mapr.cliframework.base.CLIBaseClass
-
- com.mapr.cli.common.ListCommand
-
- com.mapr.cli.InstallerCommands
-
- All Implemented Interfaces:
ListIterator,com.mapr.cliframework.base.CLIInterface
public class InstallerCommands extends ListCommand implements com.mapr.cliframework.base.CLIInterface
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCHECK_FOR_UPDATE_SCRIPTstatic java.lang.StringCHECK_UPGRADE_STATUS_SCRIPTstatic java.lang.StringCLUSTER_UPGRADE_SCRIPTstatic com.mapr.cliframework.base.CLICommandClusterKeyAddCmdstatic com.mapr.cliframework.base.CLICommandClusterKeyCommandsstatic com.mapr.cliframework.base.CLICommandClusterKeyGetCmdstatic com.mapr.cliframework.base.CLICommandClusterKeyRemoveCmdstatic java.lang.StringCREATE_SCRIPTstatic java.lang.StringDEFAULT_PATHstatic com.mapr.cliframework.base.CLICommandDeploymentInfoAddCmdstatic com.mapr.cliframework.base.CLICommandDeploymentInfoCommandsstatic com.mapr.cliframework.base.CLICommandDeploymentInfoGetCmdstatic com.mapr.cliframework.base.CLICommandDeploymentInfoRemoveCmdstatic com.mapr.cliframework.base.CLICommandFabricInfoAddCmdstatic com.mapr.cliframework.base.CLICommandFabricInfoCommandsstatic com.mapr.cliframework.base.CLICommandFabricInfoGetCmdstatic com.mapr.cliframework.base.CLICommandFabricInfoRemoveCmdstatic java.lang.StringGETCLUSTERKEY_SCRIPTstatic java.lang.StringINFO_SCRIPTstatic com.mapr.cliframework.base.CLICommandInfraStateAddCmdstatic com.mapr.cliframework.base.CLICommandInfraStateCmdsstatic com.mapr.cliframework.base.CLICommandInfraStateGetCmdstatic com.mapr.cliframework.base.CLICommandInfraStateRemoveCmdstatic com.mapr.cliframework.base.CLICommandInfraStateUpdateCmdstatic java.lang.StringINSTALLER_COMMAND_CLUSTER_CREATEstatic java.lang.StringINSTALLER_COMMAND_CLUSTER_INFOstatic java.lang.StringINSTALLER_COMMAND_CLUSTER_REMOVEstatic java.lang.StringINSTALLER_COMMAND_CLUSTER_STATUSstatic java.lang.StringINSTALLER_COMMAND_GET_CLUSTER_KEYstatic java.lang.StringINSTALLER_COMMAND_LIST_DEPLOYMENTSstatic java.lang.StringINSTALLER_COMMAND_STORAGE_CONFIGstatic com.mapr.cliframework.base.CLICommandInstallerCheckForUpdateCommandstatic com.mapr.cliframework.base.CLICommandInstallerClusterCreateCommandstatic com.mapr.cliframework.base.CLICommandInstallerClusterInfoCommandstatic com.mapr.cliframework.base.CLICommandInstallerClusterKeyCommandstatic com.mapr.cliframework.base.CLICommandInstallerClusterRemoveCommandstatic com.mapr.cliframework.base.CLICommandInstallerClusterStatusCommandstatic com.mapr.cliframework.base.CLICommandInstallerClusterUpgradeCommandstatic com.mapr.cliframework.base.CLICommandInstallerClusterUpgradeStatusCommandstatic com.mapr.cliframework.base.CLICommand[]installerCommandsstatic java.lang.StringinstallerCommandsUsagestatic com.mapr.cliframework.base.CLICommandInstallerListDeploymentsCommandstatic com.mapr.cliframework.base.CLICommandInstallerStateAddCmdstatic com.mapr.cliframework.base.CLICommandInstallerStateCmdsstatic com.mapr.cliframework.base.CLICommandInstallerStateGetCmdstatic com.mapr.cliframework.base.CLICommandInstallerStateRemoveCmdstatic com.mapr.cliframework.base.CLICommandInstallerStateUpdateCmdstatic com.mapr.cliframework.base.CLICommandInstallerStorageConfigCommandstatic com.mapr.cliframework.base.CLICommandInstallInfoAddCmdstatic com.mapr.cliframework.base.CLICommandInstallInfoCommandsstatic com.mapr.cliframework.base.CLICommandInstallInfoGetCmdstatic com.mapr.cliframework.base.CLICommandInstallInfoRemoveCmdstatic java.lang.StringLIST_SCRIPTstatic intMAX_FILE_SIZE_IN_KBstatic java.lang.StringP_PATHstatic java.lang.StringREMOVE_SCRIPTstatic intSTART_ARGSstatic java.lang.StringSTATUS_SCRIPTstatic java.lang.StringSTORAGECONFIG_SCRIPTstatic com.mapr.cliframework.base.CLICommandUpgradeInfoAddCmdstatic com.mapr.cliframework.base.CLICommandUpgradeInfoCommandsstatic com.mapr.cliframework.base.CLICommandUpgradeInfoGetCmdstatic com.mapr.cliframework.base.CLICommandUpgradeInfoRemoveCmdstatic java.lang.Stringusage
-
Constructor Summary
Constructors Constructor Description InstallerCommands(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 req)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
-
START_ARGS
public static final int START_ARGS
- See Also:
- Constant Field Values
-
CREATE_SCRIPT
public static final java.lang.String CREATE_SCRIPT
- See Also:
- Constant Field Values
-
STATUS_SCRIPT
public static final java.lang.String STATUS_SCRIPT
- See Also:
- Constant Field Values
-
REMOVE_SCRIPT
public static final java.lang.String REMOVE_SCRIPT
- See Also:
- Constant Field Values
-
INFO_SCRIPT
public static final java.lang.String INFO_SCRIPT
- See Also:
- Constant Field Values
-
LIST_SCRIPT
public static final java.lang.String LIST_SCRIPT
- See Also:
- Constant Field Values
-
CHECK_FOR_UPDATE_SCRIPT
public static final java.lang.String CHECK_FOR_UPDATE_SCRIPT
- See Also:
- Constant Field Values
-
CLUSTER_UPGRADE_SCRIPT
public static final java.lang.String CLUSTER_UPGRADE_SCRIPT
- See Also:
- Constant Field Values
-
CHECK_UPGRADE_STATUS_SCRIPT
public static final java.lang.String CHECK_UPGRADE_STATUS_SCRIPT
- See Also:
- Constant Field Values
-
GETCLUSTERKEY_SCRIPT
public static final java.lang.String GETCLUSTERKEY_SCRIPT
- See Also:
- Constant Field Values
-
STORAGECONFIG_SCRIPT
public static final java.lang.String STORAGECONFIG_SCRIPT
- See Also:
- Constant Field Values
-
installerCommandsUsage
public static final java.lang.String installerCommandsUsage
- See Also:
- Constant Field Values
-
MAX_FILE_SIZE_IN_KB
public static final int MAX_FILE_SIZE_IN_KB
- See Also:
- Constant Field Values
-
INSTALLER_COMMAND_CLUSTER_CREATE
public static final java.lang.String INSTALLER_COMMAND_CLUSTER_CREATE
- See Also:
- Constant Field Values
-
INSTALLER_COMMAND_CLUSTER_REMOVE
public static final java.lang.String INSTALLER_COMMAND_CLUSTER_REMOVE
- See Also:
- Constant Field Values
-
INSTALLER_COMMAND_CLUSTER_STATUS
public static final java.lang.String INSTALLER_COMMAND_CLUSTER_STATUS
- See Also:
- Constant Field Values
-
INSTALLER_COMMAND_CLUSTER_INFO
public static final java.lang.String INSTALLER_COMMAND_CLUSTER_INFO
- See Also:
- Constant Field Values
-
INSTALLER_COMMAND_LIST_DEPLOYMENTS
public static final java.lang.String INSTALLER_COMMAND_LIST_DEPLOYMENTS
- See Also:
- Constant Field Values
-
INSTALLER_COMMAND_GET_CLUSTER_KEY
public static final java.lang.String INSTALLER_COMMAND_GET_CLUSTER_KEY
- See Also:
- Constant Field Values
-
INSTALLER_COMMAND_STORAGE_CONFIG
public static final java.lang.String INSTALLER_COMMAND_STORAGE_CONFIG
- See Also:
- Constant Field Values
-
P_PATH
public static final java.lang.String P_PATH
- See Also:
- Constant Field Values
-
DEFAULT_PATH
public static final java.lang.String DEFAULT_PATH
- See Also:
- Constant Field Values
-
usage
public static final java.lang.String usage
- See Also:
- Constant Field Values
-
InstallerClusterCreateCommand
public static final com.mapr.cliframework.base.CLICommand InstallerClusterCreateCommand
-
InstallerClusterRemoveCommand
public static final com.mapr.cliframework.base.CLICommand InstallerClusterRemoveCommand
-
InstallerClusterStatusCommand
public static final com.mapr.cliframework.base.CLICommand InstallerClusterStatusCommand
-
InstallerClusterInfoCommand
public static final com.mapr.cliframework.base.CLICommand InstallerClusterInfoCommand
-
InstallerListDeploymentsCommand
public static final com.mapr.cliframework.base.CLICommand InstallerListDeploymentsCommand
-
InstallerCheckForUpdateCommand
public static final com.mapr.cliframework.base.CLICommand InstallerCheckForUpdateCommand
-
InstallerClusterUpgradeCommand
public static final com.mapr.cliframework.base.CLICommand InstallerClusterUpgradeCommand
-
InstallerClusterUpgradeStatusCommand
public static final com.mapr.cliframework.base.CLICommand InstallerClusterUpgradeStatusCommand
-
InstallerClusterKeyCommand
public static final com.mapr.cliframework.base.CLICommand InstallerClusterKeyCommand
-
InstallerStateAddCmd
public static final com.mapr.cliframework.base.CLICommand InstallerStateAddCmd
-
InstallerStateUpdateCmd
public static final com.mapr.cliframework.base.CLICommand InstallerStateUpdateCmd
-
InstallerStateRemoveCmd
public static final com.mapr.cliframework.base.CLICommand InstallerStateRemoveCmd
-
InstallerStateGetCmd
public static final com.mapr.cliframework.base.CLICommand InstallerStateGetCmd
-
InfraStateAddCmd
public static final com.mapr.cliframework.base.CLICommand InfraStateAddCmd
-
InfraStateUpdateCmd
public static final com.mapr.cliframework.base.CLICommand InfraStateUpdateCmd
-
InfraStateRemoveCmd
public static final com.mapr.cliframework.base.CLICommand InfraStateRemoveCmd
-
InfraStateGetCmd
public static final com.mapr.cliframework.base.CLICommand InfraStateGetCmd
-
InstallerStateCmds
public static final com.mapr.cliframework.base.CLICommand InstallerStateCmds
-
InfraStateCmds
public static final com.mapr.cliframework.base.CLICommand InfraStateCmds
-
InstallerStorageConfigCommand
public static final com.mapr.cliframework.base.CLICommand InstallerStorageConfigCommand
-
DeploymentInfoAddCmd
public static final com.mapr.cliframework.base.CLICommand DeploymentInfoAddCmd
-
DeploymentInfoGetCmd
public static final com.mapr.cliframework.base.CLICommand DeploymentInfoGetCmd
-
DeploymentInfoRemoveCmd
public static final com.mapr.cliframework.base.CLICommand DeploymentInfoRemoveCmd
-
DeploymentInfoCommands
public static final com.mapr.cliframework.base.CLICommand DeploymentInfoCommands
-
InstallInfoAddCmd
public static final com.mapr.cliframework.base.CLICommand InstallInfoAddCmd
-
InstallInfoGetCmd
public static final com.mapr.cliframework.base.CLICommand InstallInfoGetCmd
-
InstallInfoRemoveCmd
public static final com.mapr.cliframework.base.CLICommand InstallInfoRemoveCmd
-
InstallInfoCommands
public static final com.mapr.cliframework.base.CLICommand InstallInfoCommands
-
UpgradeInfoAddCmd
public static final com.mapr.cliframework.base.CLICommand UpgradeInfoAddCmd
-
UpgradeInfoGetCmd
public static final com.mapr.cliframework.base.CLICommand UpgradeInfoGetCmd
-
UpgradeInfoRemoveCmd
public static final com.mapr.cliframework.base.CLICommand UpgradeInfoRemoveCmd
-
UpgradeInfoCommands
public static final com.mapr.cliframework.base.CLICommand UpgradeInfoCommands
-
FabricInfoAddCmd
public static final com.mapr.cliframework.base.CLICommand FabricInfoAddCmd
-
FabricInfoGetCmd
public static final com.mapr.cliframework.base.CLICommand FabricInfoGetCmd
-
FabricInfoRemoveCmd
public static final com.mapr.cliframework.base.CLICommand FabricInfoRemoveCmd
-
FabricInfoCommands
public static final com.mapr.cliframework.base.CLICommand FabricInfoCommands
-
ClusterKeyAddCmd
public static final com.mapr.cliframework.base.CLICommand ClusterKeyAddCmd
-
ClusterKeyGetCmd
public static final com.mapr.cliframework.base.CLICommand ClusterKeyGetCmd
-
ClusterKeyRemoveCmd
public static final com.mapr.cliframework.base.CLICommand ClusterKeyRemoveCmd
-
ClusterKeyCommands
public static final com.mapr.cliframework.base.CLICommand ClusterKeyCommands
-
installerCommands
public static final com.mapr.cliframework.base.CLICommand[] installerCommands
-
-
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 req) 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:
req- - 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
-
-