Package com.mapr.cli
Class S3DomainCommands
- java.lang.Object
-
- com.mapr.cliframework.base.CLIBaseClass
-
- com.mapr.cli.common.ListCommand
-
- com.mapr.cli.S3DomainCommands
-
- All Implemented Interfaces:
ListIterator,com.mapr.cliframework.base.CLIInterface
public class S3DomainCommands extends ListCommand implements com.mapr.cliframework.base.CLIInterface
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDOMAIN_ACL_PARAMstatic java.lang.StringDOMAIN_COMMAND_CREATEstatic java.lang.StringDOMAIN_COMMAND_DELETEstatic java.lang.StringDOMAIN_COMMAND_INFOstatic java.lang.StringDOMAIN_COMMAND_LISTstatic java.lang.StringDOMAIN_COMMAND_MODIFYstatic java.lang.StringDOMAIN_NAME_PARAMstatic java.lang.StringDOMAIN_ROOT_PARAMstatic com.mapr.cliframework.base.CLICommand[]s3DomainCommandsstatic com.mapr.cliframework.base.CLICommands3DomainCreateCommandstatic java.lang.Strings3DomainCreateUsagestatic com.mapr.cliframework.base.CLICommands3DomainDeleteCommandstatic java.lang.Strings3DomainDeleteUsagestatic com.mapr.cliframework.base.CLICommands3DomainInfoCommandstatic java.lang.Strings3DomainInfoUsagestatic com.mapr.cliframework.base.CLICommands3DomainListCommandstatic java.lang.Strings3DomainListUsagestatic com.mapr.cliframework.base.CLICommands3DomainModifyCommandstatic java.lang.Strings3DomainModifyUsage
-
Constructor Summary
Constructors Constructor Description S3DomainCommands(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 mlResp)Parse the response and populate the output hierarchy.com.mapr.fs.proto.CLDBS3ServerProto.S3DomainListResponsesendRequest(com.google.protobuf.MessageLite mlReq)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
-
DOMAIN_COMMAND_CREATE
public static final java.lang.String DOMAIN_COMMAND_CREATE
- See Also:
- Constant Field Values
-
DOMAIN_COMMAND_MODIFY
public static final java.lang.String DOMAIN_COMMAND_MODIFY
- See Also:
- Constant Field Values
-
DOMAIN_COMMAND_INFO
public static final java.lang.String DOMAIN_COMMAND_INFO
- See Also:
- Constant Field Values
-
DOMAIN_COMMAND_DELETE
public static final java.lang.String DOMAIN_COMMAND_DELETE
- See Also:
- Constant Field Values
-
DOMAIN_COMMAND_LIST
public static final java.lang.String DOMAIN_COMMAND_LIST
- See Also:
- Constant Field Values
-
DOMAIN_NAME_PARAM
public static final java.lang.String DOMAIN_NAME_PARAM
- See Also:
- Constant Field Values
-
DOMAIN_ROOT_PARAM
public static final java.lang.String DOMAIN_ROOT_PARAM
- See Also:
- Constant Field Values
-
DOMAIN_ACL_PARAM
public static final java.lang.String DOMAIN_ACL_PARAM
- See Also:
- Constant Field Values
-
s3DomainCreateUsage
public static final java.lang.String s3DomainCreateUsage
- See Also:
- Constant Field Values
-
s3DomainModifyUsage
public static final java.lang.String s3DomainModifyUsage
- See Also:
- Constant Field Values
-
s3DomainInfoUsage
public static final java.lang.String s3DomainInfoUsage
- See Also:
- Constant Field Values
-
s3DomainDeleteUsage
public static final java.lang.String s3DomainDeleteUsage
- See Also:
- Constant Field Values
-
s3DomainListUsage
public static final java.lang.String s3DomainListUsage
- See Also:
- Constant Field Values
-
s3DomainCreateCommand
public static final com.mapr.cliframework.base.CLICommand s3DomainCreateCommand
-
s3DomainModifyCommand
public static final com.mapr.cliframework.base.CLICommand s3DomainModifyCommand
-
s3DomainInfoCommand
public static final com.mapr.cliframework.base.CLICommand s3DomainInfoCommand
-
s3DomainDeleteCommand
public static final com.mapr.cliframework.base.CLICommand s3DomainDeleteCommand
-
s3DomainListCommand
public static final com.mapr.cliframework.base.CLICommand s3DomainListCommand
-
s3DomainCommands
public static final com.mapr.cliframework.base.CLICommand[] s3DomainCommands
-
-
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 mlResp) 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.OutputHierarchymlResp- - 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.mapr.fs.proto.CLDBS3ServerProto.S3DomainListResponse sendRequest(com.google.protobuf.MessageLite mlReq) 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:
mlReq- - request object.- Returns:
- - the response object.
- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
-