Package com.mapr.cli

Class ShareTemplateCommands

java.lang.Object
com.mapr.cliframework.base.CLIBaseClass
com.mapr.cli.common.ListCommand
com.mapr.cli.ShareTemplateCommands
All Implemented Interfaces:
ListIterator, com.mapr.cliframework.base.CLIInterface

public class ShareTemplateCommands extends ListCommand implements com.mapr.cliframework.base.CLIInterface
  • Field Details

    • SHARE_MOUNT_DIR

      public static final String SHARE_MOUNT_DIR
      See Also:
    • CLUSTER_NAME

      public static final String CLUSTER_NAME
    • MAPR_MANAGED_PATH_PREFIX

      public static final String MAPR_MANAGED_PATH_PREFIX
    • SHARE_TEMPLATE_PARAM_NAME

      public static final String SHARE_TEMPLATE_PARAM_NAME
      See Also:
    • SHARE_TEMPLATE_PARAM_TYPE

      public static final String SHARE_TEMPLATE_PARAM_TYPE
      See Also:
    • SHARE_TEMPLATE_PARAM_QUOTA

      public static final String SHARE_TEMPLATE_PARAM_QUOTA
      See Also:
    • SHARE_TEMPLATE_PARAM_ADVISORY_QUOTA

      public static final String SHARE_TEMPLATE_PARAM_ADVISORY_QUOTA
      See Also:
    • SHARE_TEMPLATE_PARAM_ACCESS_TYPE

      public static final String SHARE_TEMPLATE_PARAM_ACCESS_TYPE
      See Also:
    • SHARE_TEMPLATE_PARAM_SCHEDULING_POLICY

      public static final String SHARE_TEMPLATE_PARAM_SCHEDULING_POLICY
      See Also:
    • SHARE_TEMPLATE_PARAM_WIRE_SECURITY_ENABLED

      public static final String SHARE_TEMPLATE_PARAM_WIRE_SECURITY_ENABLED
      See Also:
    • SHARE_TEMPLATE_PARAM_VOLUME_ACES

      public static final String SHARE_TEMPLATE_PARAM_VOLUME_ACES
      See Also:
    • SHARE_TEMPLATE_PARAM_SECURITY_TYPE

      public static final String SHARE_TEMPLATE_PARAM_SECURITY_TYPE
      See Also:
    • SHARE_TEMPLATE_PARAM_SQUASH

      public static final String SHARE_TEMPLATE_PARAM_SQUASH
      See Also:
    • SHARE_TEMPLATE_CLIENT_SPECS

      public static final String SHARE_TEMPLATE_CLIENT_SPECS
      See Also:
    • SHARE_TEMPLATE_PARAM_PBS_SECURITY_POLICY

      public static final String SHARE_TEMPLATE_PARAM_PBS_SECURITY_POLICY
      See Also:
    • SHARE_TEMPLATE_READACE_PARAM

      public static final String SHARE_TEMPLATE_READACE_PARAM
      See Also:
    • SHARE_TEMPLATE_WRITEACE_PARAM

      public static final String SHARE_TEMPLATE_WRITEACE_PARAM
      See Also:
    • START_PARAM_NAME

      public static final String START_PARAM_NAME
      See Also:
    • LIMIT_PARAM_NAME

      public static final String LIMIT_PARAM_NAME
      See Also:
    • FILTER_PARAM_NAME

      public static final String FILTER_PARAM_NAME
      See Also:
    • OUTPUT_PARAM_NAME

      public static final String OUTPUT_PARAM_NAME
      See Also:
    • MULTI_ARG_SEP

      public static final String MULTI_ARG_SEP
      See Also:
    • COLUMNS_PARAM_NAME

      public static final String COLUMNS_PARAM_NAME
      See Also:
    • TYPE_SET_VALUES

      public static final String[] TYPE_SET_VALUES
    • SUPPORTED_SHARE_TYPES

      public static final Set<String> SUPPORTED_SHARE_TYPES
    • SEC_TYPE_SET_VALUES

      public static final String[] SEC_TYPE_SET_VALUES
    • SUPPORTED_SEC_TYPES

      public static final Set<String> SUPPORTED_SEC_TYPES
    • ACCESS_TYPE_SET_VALUES

      public static final String[] ACCESS_TYPE_SET_VALUES
    • SUPPORTED_ACCESS_TYPES

      public static final Set<String> SUPPORTED_ACCESS_TYPES
    • SQUASH_TYPE_SET_VALUES

      public static final String[] SQUASH_TYPE_SET_VALUES
    • SUPPORTED_SQUASH_TYPES

      public static final Set<String> SUPPORTED_SQUASH_TYPES
    • shareCreateUsage

      public static final String shareCreateUsage
      See Also:
    • shareListUsage

      public static final String shareListUsage
      See Also:
    • shareInfoUsage

      public static final String shareInfoUsage
      See Also:
    • shareRemoveUsage

      public static final String shareRemoveUsage
      See Also:
    • shareModifyUsage

      public static final String shareModifyUsage
      See Also:
    • shareTemplateFieldTable

      public static Map<ShareTemplateField,com.mapr.cliframework.util.FieldInfo> shareTemplateFieldTable
    • shareTemplateFieldTableBuilder

      public static com.google.common.collect.ImmutableMap.Builder<ShareTemplateField,com.mapr.cliframework.util.FieldInfo> shareTemplateFieldTableBuilder
    • baseParams

      public static Map<String,com.mapr.cliframework.base.inputparams.BaseInputParameter> baseParams
    • shareTemplateSubCommands

      public static final com.mapr.cliframework.base.CLICommand[] shareTemplateSubCommands
    • shareTemplateCommands

      public static final com.mapr.cliframework.base.CLICommand shareTemplateCommands
  • Constructor Details

    • ShareTemplateCommands

      public ShareTemplateCommands(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand command)
  • 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
    • getColumns

      public BitSet getColumns() throws com.mapr.cliframework.base.CLIProcessingException
      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
    • 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
    • formatShareTemplate

      public com.mapr.cliframework.base.CommandOutput.OutputHierarchy.OutputNode formatShareTemplate(com.mapr.fs.cldb.proto.CLDBProto.ShareTemplate template, boolean terse, BitSet columns)
    • formatShareTemplateClients

      public com.mapr.cliframework.base.CommandOutput.OutputHierarchy.OutputNode formatShareTemplateClients(com.mapr.fs.cldb.proto.CLDBProto.ShareTemplate template)
    • parseClientSpec

      public com.mapr.fs.cldb.proto.CLDBProto.ClientSpec parseClientSpec(String entry, com.mapr.cliframework.base.CommandOutput.OutputHierarchy out)