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 java.lang.StringBUCKET_CREATE_PARAM_PATHstatic java.lang.StringBUCKET_IS_WORMstatic java.lang.StringBUCKET_NAME_PARAMstatic com.mapr.cliframework.base.CLICommand[]s3BucketCommandsstatic com.mapr.cliframework.base.CLICommands3BucketCreateCommandstatic java.lang.Strings3BucketCreateUsagestatic com.mapr.cliframework.base.CLICommands3BucketListCommandstatic java.lang.Strings3BucketListUsagestatic com.mapr.cliframework.base.CLICommands3BucketRemoveCommandstatic java.lang.Strings3BucketRemoveUsagestatic com.mapr.cliframework.base.CLICommands3BucketStatsCommandstatic java.lang.Strings3BucketStatsUsage
-
Constructor Summary
Constructors Constructor Description S3BucketCommands(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand cliCommand)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.protobuf.MessageLitebuildNextRequest(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.CommandOutputexecuteRealCommand()java.lang.StringgetCliParam(java.lang.String key)booleanhasMore(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.voidprocessResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, com.google.protobuf.MessageLite resp)Parse the response and populate the output hierarchy.com.google.protobuf.MessageLitesendRequest(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, getCLICommand, getCommandUsage, getGIds, getInput, getKeyType, getParamBooleanValue, getParamDateValue, getParamIntValue, getParamLongValue, getParamObjectValue, getParamTextValue, getUserCredentials, getUserId, getUserLoginId, getVersion, isParamPresent, isParamValueEmpty, setServerCall, setUserCredentials, setVersion, validateInput
-
-
-
-
Field Detail
-
BUCKET_NAME_PARAM
public static final java.lang.String BUCKET_NAME_PARAM
- See Also:
- Constant Field Values
-
BUCKET_CREATE_PARAM_PATH
public static final java.lang.String BUCKET_CREATE_PARAM_PATH
- See Also:
- Constant Field Values
-
BUCKET_IS_WORM
public static final java.lang.String BUCKET_IS_WORM
- See Also:
- Constant Field Values
-
s3BucketCreateUsage
public static final java.lang.String s3BucketCreateUsage
- See Also:
- Constant Field Values
-
s3BucketListUsage
public static final java.lang.String s3BucketListUsage
- See Also:
- Constant Field Values
-
s3BucketRemoveUsage
public static final java.lang.String s3BucketRemoveUsage
- See Also:
- Constant Field Values
-
s3BucketStatsUsage
public static final java.lang.String s3BucketStatsUsage
- See Also:
- Constant Field Values
-
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
-
-
Method Detail
-
executeRealCommand
public com.mapr.cliframework.base.CommandOutput executeRealCommand() throws com.mapr.cliframework.base.CLIProcessingException- Specified by:
executeRealCommandin classcom.mapr.cliframework.base.CLIBaseClass- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
getCliParam
public java.lang.String getCliParam(java.lang.String key) throws java.io.IOException- Specified by:
getCliParamin interfacecom.mapr.baseutils.utils.AceHelper.DBPermission- Throws:
java.io.IOException
-
hasMore
public boolean hasMore(com.google.protobuf.MessageLite prevReq, com.google.protobuf.MessageLite prevResp) throws com.mapr.cliframework.base.CLIProcessingExceptionDescription copied from interface:ListIteratorInspect the last request and last response to see if there are more records to be fetched.- Specified by:
hasMorein interfaceListIterator- Specified by:
hasMorein classListCommand- 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.CLIProcessingExceptionDescription copied from interface:ListIteratorBuilds the next request object by inspecting the previous request and previous response.- Specified by:
buildNextRequestin interfaceListIterator- Specified by:
buildNextRequestin classListCommand- 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.CLIProcessingExceptionDescription copied from interface:ListIteratorSend the request using RPC and fetch the response.- Specified by:
sendRequestin interfaceListIterator- Specified by:
sendRequestin classListCommand- 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.CLIProcessingExceptionDescription copied from interface:ListIteratorParse the response and populate the output hierarchy.- Specified by:
processResponsein interfaceListIterator- Specified by:
processResponsein classListCommand- Parameters:
out- -CommandOutput.OutputHierarchyresp- - response object- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
-