Package com.mapr.cli

Class ClusterGroupCommands

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

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

      • CLUSTERGROUP_COMMAND_SETPRIMARY

        public static final java.lang.String CLUSTERGROUP_COMMAND_SETPRIMARY
        See Also:
        Constant Field Values
      • CLUSTERGROUP_COMMAND_UPDATEPRIMARY

        public static final java.lang.String CLUSTERGROUP_COMMAND_UPDATEPRIMARY
        See Also:
        Constant Field Values
      • CLUSTERGROUP_COMMAND_LIST

        public static final java.lang.String CLUSTERGROUP_COMMAND_LIST
        See Also:
        Constant Field Values
      • CLUSTERGROUP_COMMAND_GET_CG_TABLE

        public static final java.lang.String CLUSTERGROUP_COMMAND_GET_CG_TABLE
        See Also:
        Constant Field Values
      • CLUSTERGROUP_COMMAND_REMOVE

        public static final java.lang.String CLUSTERGROUP_COMMAND_REMOVE
        See Also:
        Constant Field Values
      • CLUSTERGROUP_COMMAND_ADD_EXTERNAL

        public static final java.lang.String CLUSTERGROUP_COMMAND_ADD_EXTERNAL
        See Also:
        Constant Field Values
      • CLUSTERGROUP_COMMAND_SETUPGRADE

        public static final java.lang.String CLUSTERGROUP_COMMAND_SETUPGRADE
        See Also:
        Constant Field Values
      • CLUSTERGROUP_COMMAND_SHOW_CLUSTER_CERT

        public static final java.lang.String CLUSTERGROUP_COMMAND_SHOW_CLUSTER_CERT
        See Also:
        Constant Field Values
      • CLUSTERGROUP_COMMAND_GET_NFS_EXPORTS

        public static final java.lang.String CLUSTERGROUP_COMMAND_GET_NFS_EXPORTS
        See Also:
        Constant Field Values
      • CLUSTERGROUP_COMMAND_GENERATE_CLUSTER_CONF

        public static final java.lang.String CLUSTERGROUP_COMMAND_GENERATE_CLUSTER_CONF
        See Also:
        Constant Field Values
      • CLUSTERNAME_PARAM

        public static final java.lang.String CLUSTERNAME_PARAM
        See Also:
        Constant Field Values
      • SHOW_PRIMARY_PARAM

        public static final java.lang.String SHOW_PRIMARY_PARAM
        See Also:
        Constant Field Values
      • COLUMNS_PARAM_NAME

        public static final java.lang.String COLUMNS_PARAM_NAME
        See Also:
        Constant Field Values
      • CROSSCLUSTER_TICKET_PARAM

        public static final java.lang.String CROSSCLUSTER_TICKET_PARAM
        See Also:
        Constant Field Values
      • EXTERNAL_SERVER_TYPE_PARAM

        public static final java.lang.String EXTERNAL_SERVER_TYPE_PARAM
        See Also:
        Constant Field Values
      • EXTERNAL_SERVER_NAME_PARAM

        public static final java.lang.String EXTERNAL_SERVER_NAME_PARAM
        See Also:
        Constant Field Values
      • EXTERNAL_SERVER_IPS_PARAM

        public static final java.lang.String EXTERNAL_SERVER_IPS_PARAM
        See Also:
        Constant Field Values
      • EXTERNAL_SERVER_IPS_SKIP_CHECK

        public static final java.lang.String EXTERNAL_SERVER_IPS_SKIP_CHECK
        See Also:
        Constant Field Values
      • EXTERNAL_SERVER_ACCESSKEY_PARAM

        public static final java.lang.String EXTERNAL_SERVER_ACCESSKEY_PARAM
        See Also:
        Constant Field Values
      • EXTERNAL_SERVER_SECRETEKEY_PARAM

        public static final java.lang.String EXTERNAL_SERVER_SECRETEKEY_PARAM
        See Also:
        Constant Field Values
      • EXTERNAL_SERVER_S3VENDOR

        public static final java.lang.String EXTERNAL_SERVER_S3VENDOR
        See Also:
        Constant Field Values
      • EXTERNAL_SERVER_AWSREGION

        public static final java.lang.String EXTERNAL_SERVER_AWSREGION
        See Also:
        Constant Field Values
      • FILTER_PARAM_NAME

        public static final java.lang.String FILTER_PARAM_NAME
        See Also:
        Constant Field Values
      • SORTBY_PARAM_NAME

        public static final java.lang.String SORTBY_PARAM_NAME
        See Also:
        Constant Field Values
      • SORTING_ORDER_PARAM_NAME

        public static final java.lang.String SORTING_ORDER_PARAM_NAME
        See Also:
        Constant Field Values
      • ASCENDING_SORTING_ORDER_PARAM_NAME

        public static final java.lang.String ASCENDING_SORTING_ORDER_PARAM_NAME
        See Also:
        Constant Field Values
      • DESCENDING_SORTING_ORDER_PARAM_NAME

        public static final java.lang.String DESCENDING_SORTING_ORDER_PARAM_NAME
        See Also:
        Constant Field Values
      • SORT_DIRECTION_PARAM_NAME

        public static final java.lang.String SORT_DIRECTION_PARAM_NAME
        See Also:
        Constant Field Values
      • OUTPUT_PARAM_NAME

        public static final java.lang.String OUTPUT_PARAM_NAME
        See Also:
        Constant Field Values
      • START_PARAM_NAME

        public static final java.lang.String START_PARAM_NAME
        See Also:
        Constant Field Values
      • LIMIT_PARAM_NAME

        public static final java.lang.String LIMIT_PARAM_NAME
        See Also:
        Constant Field Values
      • LICENSE_INFO_PARAM_NAME

        public static final java.lang.String LICENSE_INFO_PARAM_NAME
        See Also:
        Constant Field Values
      • clusterGroupCommandsUsage

        public static final java.lang.String clusterGroupCommandsUsage
        See Also:
        Constant Field Values
      • ClusterGroupSetPrimaryUsage

        public static final java.lang.String ClusterGroupSetPrimaryUsage
        See Also:
        Constant Field Values
      • ClusterGroupUpdatePrimaryUsage

        public static final java.lang.String ClusterGroupUpdatePrimaryUsage
        See Also:
        Constant Field Values
      • ClusterGroupRemoveUsage

        public static final java.lang.String ClusterGroupRemoveUsage
        See Also:
        Constant Field Values
      • ClusterGroupListUsage

        public static final java.lang.String ClusterGroupListUsage
        See Also:
        Constant Field Values
      • ClusterGroupGetCgTableUsage

        public static final java.lang.String ClusterGroupGetCgTableUsage
        See Also:
        Constant Field Values
      • ClusterGroupGenerateClusterConfUsage

        public static final java.lang.String ClusterGroupGenerateClusterConfUsage
        See Also:
        Constant Field Values
      • ClusterGroupSetUpgradeUsage

        public static final java.lang.String ClusterGroupSetUpgradeUsage
        See Also:
        Constant Field Values
      • ClusterGroupAddExternalUsage

        public static final java.lang.String ClusterGroupAddExternalUsage
        See Also:
        Constant Field Values
      • ClusterGroupGetNfsExportsUsage

        public static final java.lang.String ClusterGroupGetNfsExportsUsage
        See Also:
        Constant Field Values
      • baseParams

        public static java.util.Map<java.lang.String,​com.mapr.cliframework.base.inputparams.BaseInputParameter> baseParams
      • fieldTable

        public static java.util.Map<com.mapr.fs.cldb.proto.CLDBProto.ClusterGroupConfInfoFields,​com.mapr.cliframework.util.FieldInfo> fieldTable
      • ClusterGroupSetPrimaryCommand

        public static final com.mapr.cliframework.base.CLICommand ClusterGroupSetPrimaryCommand
      • ClusterGroupUpdatePrimaryCommand

        public static final com.mapr.cliframework.base.CLICommand ClusterGroupUpdatePrimaryCommand
      • ClusterGroupRemoveCommand

        public static final com.mapr.cliframework.base.CLICommand ClusterGroupRemoveCommand
      • ClusterGroupAddExternalCommand

        public static final com.mapr.cliframework.base.CLICommand ClusterGroupAddExternalCommand
      • ClusterGroupGetCgTableCommand

        public static final com.mapr.cliframework.base.CLICommand ClusterGroupGetCgTableCommand
      • ClusterGroupSetUpgradeCommand

        public static final com.mapr.cliframework.base.CLICommand ClusterGroupSetUpgradeCommand
      • ClusterGroupShowClusterCertCommand

        public static final com.mapr.cliframework.base.CLICommand ClusterGroupShowClusterCertCommand
      • ClusterGroupGenerateClusterConfCommand

        public static final com.mapr.cliframework.base.CLICommand ClusterGroupGenerateClusterConfCommand
      • ClusterGroupListCommand

        public static final com.mapr.cliframework.base.CLICommand ClusterGroupListCommand
      • ClusterGroupGetNfsExportsCommand

        public static final com.mapr.cliframework.base.CLICommand ClusterGroupGetNfsExportsCommand
      • clusterGroupCommands

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

      • ClusterGroupCommands

        public ClusterGroupCommands​(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 request)
                                                    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:
        request - - 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