public interface ListIterator
| Modifier and Type | Method and 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.
|
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 |
list(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out)
Initiates the iteration process.
|
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.
|
void list(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out) throws com.mapr.cliframework.base.CLIProcessingException
out - - The output of all the processed responses.com.mapr.cliframework.base.CLIProcessingExceptionboolean hasMore(com.google.protobuf.MessageLite prevReq,
com.google.protobuf.MessageLite prevResp)
throws com.mapr.cliframework.base.CLIProcessingException
prevReq - prevResp - com.mapr.cliframework.base.CLIProcessingExceptioncom.google.protobuf.MessageLite buildNextRequest(com.google.protobuf.MessageLite prevReq,
com.google.protobuf.MessageLite prevResp)
throws com.mapr.cliframework.base.CLIProcessingException
req - - Previous requestresp - - Previous responsecom.mapr.cliframework.base.CLIProcessingExceptioncom.google.protobuf.MessageLite sendRequest(com.google.protobuf.MessageLite req)
throws com.mapr.cliframework.base.CLIProcessingException
req - - request object.com.mapr.cliframework.base.CLIProcessingExceptionvoid processResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out,
com.google.protobuf.MessageLite resp)
throws com.mapr.cliframework.base.CLIProcessingException
out - - CommandOutput.OutputHierarchyresp - - response objectcom.mapr.cliframework.base.CLIProcessingException