Package com.mapr.cli
Class S3KeysCommands
- java.lang.Object
-
- com.mapr.cliframework.base.CLIBaseClass
-
- com.mapr.cli.common.ListCommand
-
- com.mapr.cli.S3KeysCommands
-
- All Implemented Interfaces:
ListIterator,com.mapr.cliframework.base.CLIInterface
public class S3KeysCommands extends ListCommand implements com.mapr.cliframework.base.CLIInterface
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringACCESS_KEY_PARAMstatic java.lang.StringACCOUNTNAME_PARAMstatic java.util.Map<java.lang.String,com.mapr.cliframework.base.inputparams.BaseInputParameter>baseParamsstatic java.lang.StringDOMAINNAME_PARAMstatic java.lang.StringDURATION_PARAMstatic java.util.Map<com.mapr.cli.S3KeysCommands.S3KeyEntryField,com.mapr.cliframework.util.FieldInfo>fieldTablestatic java.lang.StringOUTPUT_PARAM_NAMEstatic com.mapr.cliframework.base.CLICommandS3DeleteCommandstatic java.lang.Strings3DeleteUsagestatic com.mapr.cliframework.base.CLICommandS3GenerateCommandstatic com.mapr.cliframework.base.CLICommandS3GenerateTempKeyCommandstatic java.lang.Strings3GenerateTempKeyUsagestatic java.lang.Strings3GenerateUsagestatic java.lang.StringS3KEYS_COMMAND_DELETEstatic java.lang.StringS3KEYS_COMMAND_GENERATEstatic java.lang.StringS3KEYS_COMMAND_GENTEMPKEYstatic java.lang.StringS3KEYS_COMMAND_LISTstatic com.mapr.cliframework.base.CLICommand[]s3KeysCommandsstatic java.lang.Strings3KeysCommandsUsagestatic com.mapr.cliframework.base.CLICommandS3ListCommandstatic java.lang.Strings3ListUsagestatic java.lang.StringUSERNAME_PARAM
-
Constructor Summary
Constructors Constructor Description S3KeysCommands(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()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 response)Parse the response and populate the output hierarchy.com.google.protobuf.MessageLitesendRequest(com.google.protobuf.MessageLite request)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
-
-
-
-
Field Detail
-
S3KEYS_COMMAND_GENERATE
public static final java.lang.String S3KEYS_COMMAND_GENERATE
- See Also:
- Constant Field Values
-
S3KEYS_COMMAND_DELETE
public static final java.lang.String S3KEYS_COMMAND_DELETE
- See Also:
- Constant Field Values
-
S3KEYS_COMMAND_LIST
public static final java.lang.String S3KEYS_COMMAND_LIST
- See Also:
- Constant Field Values
-
S3KEYS_COMMAND_GENTEMPKEY
public static final java.lang.String S3KEYS_COMMAND_GENTEMPKEY
- See Also:
- Constant Field Values
-
DOMAINNAME_PARAM
public static final java.lang.String DOMAINNAME_PARAM
- See Also:
- Constant Field Values
-
ACCOUNTNAME_PARAM
public static final java.lang.String ACCOUNTNAME_PARAM
- See Also:
- Constant Field Values
-
USERNAME_PARAM
public static final java.lang.String USERNAME_PARAM
- See Also:
- Constant Field Values
-
ACCESS_KEY_PARAM
public static final java.lang.String ACCESS_KEY_PARAM
- See Also:
- Constant Field Values
-
DURATION_PARAM
public static final java.lang.String DURATION_PARAM
- See Also:
- Constant Field Values
-
OUTPUT_PARAM_NAME
public static final java.lang.String OUTPUT_PARAM_NAME
- See Also:
- Constant Field Values
-
s3GenerateUsage
public static final java.lang.String s3GenerateUsage
- See Also:
- Constant Field Values
-
s3DeleteUsage
public static final java.lang.String s3DeleteUsage
- See Also:
- Constant Field Values
-
s3ListUsage
public static final java.lang.String s3ListUsage
- See Also:
- Constant Field Values
-
s3GenerateTempKeyUsage
public static final java.lang.String s3GenerateTempKeyUsage
- See Also:
- Constant Field Values
-
baseParams
public static java.util.Map<java.lang.String,com.mapr.cliframework.base.inputparams.BaseInputParameter> baseParams
-
S3GenerateCommand
public static final com.mapr.cliframework.base.CLICommand S3GenerateCommand
-
S3DeleteCommand
public static final com.mapr.cliframework.base.CLICommand S3DeleteCommand
-
S3ListCommand
public static final com.mapr.cliframework.base.CLICommand S3ListCommand
-
S3GenerateTempKeyCommand
public static final com.mapr.cliframework.base.CLICommand S3GenerateTempKeyCommand
-
s3KeysCommands
public static final com.mapr.cliframework.base.CLICommand[] s3KeysCommands
-
s3KeysCommandsUsage
public static final java.lang.String s3KeysCommandsUsage
- See Also:
- Constant Field Values
-
fieldTable
public static java.util.Map<com.mapr.cli.S3KeysCommands.S3KeyEntryField,com.mapr.cliframework.util.FieldInfo> fieldTable
-
-
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
-
processResponse
public void processResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, com.google.protobuf.MessageLite response) 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.OutputHierarchyresponse- - response 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.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 request) 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:
request- - request object.- Returns:
- - the response object.
- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
-