Package com.mapr.cli

Class S3BucketCommands

java.lang.Object
com.mapr.cliframework.base.CLIBaseClass
com.mapr.cli.common.ListCommand
com.mapr.cli.S3BucketCommands
All Implemented Interfaces:
com.mapr.baseutils.utils.AceHelper.DBPermission, ListIterator, com.mapr.cliframework.base.CLIInterface

public class S3BucketCommands extends ListCommand implements com.mapr.cliframework.base.CLIInterface, com.mapr.baseutils.utils.AceHelper.DBPermission
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
    static final com.mapr.cliframework.base.CLICommand[]
     
    static final com.mapr.cliframework.base.CLICommand
     
    static final String
     
    static final com.mapr.cliframework.base.CLICommand
     
    static final String
     
    static final com.mapr.cliframework.base.CLICommand
     
    static final String
     
    static final com.mapr.cliframework.base.CLICommand
     
    static final String
     

    Fields inherited from class com.mapr.cliframework.base.CLIBaseClass

    cliCommand, CLUSTER_NAME_PARAM, clusterParams, HELP_PARAM, input, isServerCall, NOT_REQUIRED, output, REQUIRED, userInfo, version

    Fields inherited from interface com.mapr.cliframework.base.CLIInterface

    KEY_PREFIX, PASSWORD_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    S3BucketCommands(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand cliCommand)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.protobuf.MessageLite
    buildNextRequest(com.google.protobuf.MessageLite prevReq, com.google.protobuf.MessageLite prevResp)
    Builds the next request object by inspecting the previous request and previous response.
    com.mapr.cliframework.base.CommandOutput
     
     
    boolean
    hasMore(com.google.protobuf.MessageLite prevReq, com.google.protobuf.MessageLite prevResp)
    Inspect the last request and last response to see if there are more records to be fetched.
    void
    processResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, com.google.protobuf.MessageLite resp)
    Parse the response and populate the output hierarchy.
    com.google.protobuf.MessageLite
    sendRequest(com.google.protobuf.MessageLite req)
    Send the request using RPC and fetch the response.

    Methods inherited from class com.mapr.cli.common.ListCommand

    getFilters, getNextLimiter, hasMore, list

    Methods inherited from class com.mapr.cliframework.base.CLIBaseClass

    executeCommand, executeSimpleSHHCommand, executeSimpleSHHCommand, getBooleanParam, getCLICommand, getCommandUsage, getGIds, getInput, getKeyType, getParamBooleanValue, getParamDateValue, getParamIntValue, getParamLongValue, getParamObjectValue, getParamTextValue, getUserClusterOps, getUserCredentials, getUserId, getUserLoginId, getVersion, isParamPresent, isParamValueEmpty, setServerCall, setUserClusterOps, setUserCredentials, setUserCredentialsByJwt, setVersion, skipValidation, validateInput

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.mapr.cliframework.base.CLIInterface

    executeCommand, getCLICommand, getGIds, getUserId, getUserLoginId, setServerCall, setUserCredentials, setUserCredentialsByJwt, setVersion, validateInput
  • Field Details

    • BUCKET_NAME_PARAM

      public static final String BUCKET_NAME_PARAM
      See Also:
    • BUCKET_CREATE_PARAM_PATH

      public static final String BUCKET_CREATE_PARAM_PATH
      See Also:
    • BUCKET_IS_WORM

      public static final String BUCKET_IS_WORM
      See Also:
    • s3BucketCreateUsage

      public static final String s3BucketCreateUsage
      See Also:
    • s3BucketListUsage

      public static final String s3BucketListUsage
      See Also:
    • s3BucketRemoveUsage

      public static final String s3BucketRemoveUsage
      See Also:
    • s3BucketStatsUsage

      public static final String s3BucketStatsUsage
      See Also:
    • s3BucketCreateCommand

      public static final com.mapr.cliframework.base.CLICommand s3BucketCreateCommand
    • s3BucketListCommand

      public static final com.mapr.cliframework.base.CLICommand s3BucketListCommand
    • s3BucketRemoveCommand

      public static final com.mapr.cliframework.base.CLICommand s3BucketRemoveCommand
    • s3BucketStatsCommand

      public static final com.mapr.cliframework.base.CLICommand s3BucketStatsCommand
    • s3BucketCommands

      public static final com.mapr.cliframework.base.CLICommand[] s3BucketCommands
  • Constructor Details

    • S3BucketCommands

      public S3BucketCommands(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
    • getCliParam

      public String getCliParam(String key) throws IOException
      Specified by:
      getCliParam in interface com.mapr.baseutils.utils.AceHelper.DBPermission
      Throws:
      IOException
    • 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
    • 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
    • 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
    • processResponse

      public void processResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, com.google.protobuf.MessageLite resp) 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
      resp - - response object
      Throws:
      com.mapr.cliframework.base.CLIProcessingException