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

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