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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final Stringstatic final Stringstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final Stringstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final Stringstatic final Stringstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommand[]static final Stringstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final Stringstatic final intstatic final Stringstatic final Stringstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final intstatic final Stringstatic final Stringstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final com.mapr.cliframework.base.CLICommandstatic final StringFields inherited from class com.mapr.cliframework.base.CLIBaseClass
cliCommand, CLUSTER_NAME_PARAM, clusterParams, HELP_PARAM, input, isServerCall, NOT_REQUIRED, output, REQUIRED, userInfo, versionFields inherited from interface com.mapr.cliframework.base.CLIInterface
KEY_PREFIX, PASSWORD_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionInstallerCommands(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand cliCommand) -
Method Summary
Modifier and TypeMethodDescriptioncom.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.CommandOutputbooleanhasMore(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, listMethods 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, validateInputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mapr.cliframework.base.CLIInterface
executeCommand, getCLICommand, getGIds, getUserId, getUserLoginId, setServerCall, setUserCredentials, setUserCredentialsByJwt, setVersion, validateInput
-
Field Details
-
START_ARGS
public static final int START_ARGS- See Also:
-
CREATE_SCRIPT
- See Also:
-
STATUS_SCRIPT
- See Also:
-
REMOVE_SCRIPT
- See Also:
-
INFO_SCRIPT
- See Also:
-
LIST_SCRIPT
- See Also:
-
CHECK_FOR_UPDATE_SCRIPT
- See Also:
-
CLUSTER_UPGRADE_SCRIPT
- See Also:
-
CHECK_UPGRADE_STATUS_SCRIPT
- See Also:
-
GETCLUSTERKEY_SCRIPT
- See Also:
-
STORAGECONFIG_SCRIPT
- See Also:
-
CLUSTER_SCALE_SCRIPT
- See Also:
-
CLUSTER_SCALE_STATUS_SCRIPT
- See Also:
-
CLUSTER_REMOVE_NODE_SCRIPT
- See Also:
-
CLUSTER_REMOVE_STATUS_SCRIPT
- See Also:
-
CLUSTER_DOWNLOAD_LOG_SCRIPT
- See Also:
-
EEPCONFIG_SCRIPT
- See Also:
-
installerCommandsUsage
- See Also:
-
MAX_FILE_SIZE_IN_KB
public static final int MAX_FILE_SIZE_IN_KB- See Also:
-
INSTALLER_COMMAND_CLUSTER_CREATE
- See Also:
-
INSTALLER_COMMAND_CLUSTER_REMOVE
- See Also:
-
INSTALLER_COMMAND_CLUSTER_STATUS
- See Also:
-
INSTALLER_COMMAND_CLUSTER_INFO
- See Also:
-
INSTALLER_COMMAND_LIST_DEPLOYMENTS
- See Also:
-
INSTALLER_COMMAND_GET_CLUSTER_KEY
- See Also:
-
INSTALLER_COMMAND_STORAGE_CONFIG
- See Also:
-
P_PATH
- See Also:
-
DEFAULT_PATH
- See Also:
-
usage
- See Also:
-
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 -
InstallerClusterDownloadLogCommand
public static final com.mapr.cliframework.base.CLICommand InstallerClusterDownloadLogCommand -
InstallerClusterScaleCommand
public static final com.mapr.cliframework.base.CLICommand InstallerClusterScaleCommand -
InstallerClusterScaleStatusCommand
public static final com.mapr.cliframework.base.CLICommand InstallerClusterScaleStatusCommand -
InstallerClusterRemoveNodeCommand
public static final com.mapr.cliframework.base.CLICommand InstallerClusterRemoveNodeCommand -
InstallerClusterRemoveStatusCommand
public static final com.mapr.cliframework.base.CLICommand InstallerClusterRemoveStatusCommand -
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 -
InstallerEEPConfig
public static final com.mapr.cliframework.base.CLICommand InstallerEEPConfig -
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 -
ScaleInfoAddCmd
public static final com.mapr.cliframework.base.CLICommand ScaleInfoAddCmd -
ScaleInfoGetCmd
public static final com.mapr.cliframework.base.CLICommand ScaleInfoGetCmd -
ScaleInfoRemoveCmd
public static final com.mapr.cliframework.base.CLICommand ScaleInfoRemoveCmd -
ScaleInfoCommands
public static final com.mapr.cliframework.base.CLICommand ScaleInfoCommands -
UpdateInfoAddCmd
public static final com.mapr.cliframework.base.CLICommand UpdateInfoAddCmd -
UpdateInfoGetCmd
public static final com.mapr.cliframework.base.CLICommand UpdateInfoGetCmd -
UpdateInfoRemoveCmd
public static final com.mapr.cliframework.base.CLICommand UpdateInfoRemoveCmd -
UpdateInfoCommands
public static final com.mapr.cliframework.base.CLICommand UpdateInfoCommands -
installerCommands
public static final com.mapr.cliframework.base.CLICommand[] installerCommands
-
-
Constructor Details
-
InstallerCommands
public InstallerCommands(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand cliCommand)
-
-
Method Details
-
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.CLIProcessingException Description 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.CLIProcessingException Description 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.CLIProcessingException Description 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.CLIProcessingException Description 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
-