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 Details

    • START_ARGS

      public static final int START_ARGS
      See Also:
    • CREATE_SCRIPT

      public static final String CREATE_SCRIPT
      See Also:
    • STATUS_SCRIPT

      public static final String STATUS_SCRIPT
      See Also:
    • REMOVE_SCRIPT

      public static final String REMOVE_SCRIPT
      See Also:
    • INFO_SCRIPT

      public static final String INFO_SCRIPT
      See Also:
    • LIST_SCRIPT

      public static final String LIST_SCRIPT
      See Also:
    • CHECK_FOR_UPDATE_SCRIPT

      public static final String CHECK_FOR_UPDATE_SCRIPT
      See Also:
    • CLUSTER_UPGRADE_SCRIPT

      public static final String CLUSTER_UPGRADE_SCRIPT
      See Also:
    • CHECK_UPGRADE_STATUS_SCRIPT

      public static final String CHECK_UPGRADE_STATUS_SCRIPT
      See Also:
    • GETCLUSTERKEY_SCRIPT

      public static final String GETCLUSTERKEY_SCRIPT
      See Also:
    • STORAGECONFIG_SCRIPT

      public static final String STORAGECONFIG_SCRIPT
      See Also:
    • CLUSTER_SCALE_SCRIPT

      public static final String CLUSTER_SCALE_SCRIPT
      See Also:
    • CLUSTER_SCALE_STATUS_SCRIPT

      public static final String CLUSTER_SCALE_STATUS_SCRIPT
      See Also:
    • CLUSTER_REMOVE_NODE_SCRIPT

      public static final String CLUSTER_REMOVE_NODE_SCRIPT
      See Also:
    • CLUSTER_REMOVE_STATUS_SCRIPT

      public static final String CLUSTER_REMOVE_STATUS_SCRIPT
      See Also:
    • CLUSTER_DOWNLOAD_LOG_SCRIPT

      public static final String CLUSTER_DOWNLOAD_LOG_SCRIPT
      See Also:
    • EEPCONFIG_SCRIPT

      public static final String EEPCONFIG_SCRIPT
      See Also:
    • installerCommandsUsage

      public static final String installerCommandsUsage
      See Also:
    • MAX_FILE_SIZE_IN_KB

      public static final int MAX_FILE_SIZE_IN_KB
      See Also:
    • INSTALLER_COMMAND_CLUSTER_CREATE

      public static final String INSTALLER_COMMAND_CLUSTER_CREATE
      See Also:
    • INSTALLER_COMMAND_CLUSTER_REMOVE

      public static final String INSTALLER_COMMAND_CLUSTER_REMOVE
      See Also:
    • INSTALLER_COMMAND_CLUSTER_STATUS

      public static final String INSTALLER_COMMAND_CLUSTER_STATUS
      See Also:
    • INSTALLER_COMMAND_CLUSTER_INFO

      public static final String INSTALLER_COMMAND_CLUSTER_INFO
      See Also:
    • INSTALLER_COMMAND_LIST_DEPLOYMENTS

      public static final String INSTALLER_COMMAND_LIST_DEPLOYMENTS
      See Also:
    • INSTALLER_COMMAND_GET_CLUSTER_KEY

      public static final String INSTALLER_COMMAND_GET_CLUSTER_KEY
      See Also:
    • INSTALLER_COMMAND_STORAGE_CONFIG

      public static final String INSTALLER_COMMAND_STORAGE_CONFIG
      See Also:
    • P_PATH

      public static final String P_PATH
      See Also:
    • DEFAULT_PATH

      public static final String DEFAULT_PATH
      See Also:
    • usage

      public static final String 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:
      executeRealCommand in class com.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: ListIterator
      Parse the response and populate the output hierarchy.
      Specified by:
      processResponse in interface ListIterator
      Specified by:
      processResponse in class ListCommand
      Parameters:
      out - - CommandOutput.OutputHierarchy
      response - - 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: ListIterator
      Send the request using RPC and fetch the response.
      Specified by:
      sendRequest in interface ListIterator
      Specified by:
      sendRequest in class ListCommand
      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: ListIterator
      Builds the next request object by inspecting the previous request and previous response.
      Specified by:
      buildNextRequest in interface ListIterator
      Specified by:
      buildNextRequest in class ListCommand
      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: ListIterator
      Inspect the last request and last response to see if there are more records to be fetched.
      Specified by:
      hasMore in interface ListIterator
      Specified by:
      hasMore in class ListCommand
      Returns:
      - true, if there are more records. false, if no more.
      Throws:
      com.mapr.cliframework.base.CLIProcessingException