Package com.mapr.cli

Class InstallerCommands

  • All Implemented Interfaces:
    ListIterator, com.mapr.cliframework.base.CLIInterface

    public class InstallerCommands
    extends ListCommand
    implements com.mapr.cliframework.base.CLIInterface
    • Field Detail

      • 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
      • CLUSTER_SCALE_SCRIPT

        public static final java.lang.String CLUSTER_SCALE_SCRIPT
        See Also:
        Constant Field Values
      • CLUSTER_SCALE_STATUS_SCRIPT

        public static final java.lang.String CLUSTER_SCALE_STATUS_SCRIPT
        See Also:
        Constant Field Values
      • CLUSTER_REMOVE_NODE_SCRIPT

        public static final java.lang.String CLUSTER_REMOVE_NODE_SCRIPT
        See Also:
        Constant Field Values
      • CLUSTER_REMOVE_STATUS_SCRIPT

        public static final java.lang.String CLUSTER_REMOVE_STATUS_SCRIPT
        See Also:
        Constant Field Values
      • CLUSTER_DOWNLOAD_LOG_SCRIPT

        public static final java.lang.String CLUSTER_DOWNLOAD_LOG_SCRIPT
        See Also:
        Constant Field Values
      • installerCommandsUsage

        public static final java.lang.String installerCommandsUsage
        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
      • 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
      • 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
      • RemoveInfoAddCmd

        public static final com.mapr.cliframework.base.CLICommand RemoveInfoAddCmd
      • RemoveInfoGetCmd

        public static final com.mapr.cliframework.base.CLICommand RemoveInfoGetCmd
      • RemoveInfoRemoveCmd

        public static final com.mapr.cliframework.base.CLICommand RemoveInfoRemoveCmd
      • RemoveInfoCommands

        public static final com.mapr.cliframework.base.CLICommand RemoveInfoCommands
      • installerCommands

        public static final com.mapr.cliframework.base.CLICommand[] installerCommands
    • Constructor Detail

      • InstallerCommands

        public InstallerCommands​(com.mapr.cliframework.base.ProcessedInput input,
                                 com.mapr.cliframework.base.CLICommand cliCommand)
    • Method Detail

      • 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