public class EntityCommands extends ListCommand implements com.mapr.cliframework.base.CLIInterface
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALARMEDENTITIES_PARAM_NAME |
static java.lang.String |
COLUMNS_PARAM_NAME |
static java.lang.String |
ENTITIES_PARAM_NAME |
static java.lang.String |
ENTITY_ADVISORY_QUOTA_PARAM_NAME |
static java.lang.String |
ENTITY_EMAIL_PARAM_NAME |
static java.lang.String |
ENTITY_NAME_PARAM_NAME |
static java.lang.String |
ENTITY_QUOTA_PARAM_NAME |
static java.lang.String |
ENTITY_TYPE_PARAM_NAME |
static com.mapr.cliframework.base.CLICommand |
entityCmds |
static java.util.Map<com.mapr.fs.cldb.proto.CLDBProto.AeInfoFields,com.mapr.cliframework.util.FieldInfo> |
fieldTable |
static java.lang.String |
FILTER_PARAM_NAME |
static java.lang.String |
LIMIT_PARAM_NAME |
static java.lang.String |
OUTPUT_PARAM_NAME |
static java.lang.String |
SORT_DIRECTION_PARAM_NAME |
static java.lang.String |
SORT_PARAM_NAME |
static java.lang.String |
SORTBY_PARAM_NAME |
static java.lang.String |
START_PARAM_NAME |
| Constructor and Description |
|---|
EntityCommands(com.mapr.cliframework.base.ProcessedInput input,
com.mapr.cliframework.base.CLICommand cliCommand) |
| Modifier and Type | Method and Description |
|---|---|
com.mapr.fs.cldb.proto.CLDBProto.AeLookupRequest |
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 |
executeRealCommand() |
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 response)
Parse the response and populate the output hierarchy.
|
com.mapr.fs.cldb.proto.CLDBProto.AeLookupResponse |
sendRequest(com.google.protobuf.MessageLite request)
Send the request using RPC and fetch the response.
|
getFilters, getNextLimiter, hasMore, listexecuteCommand, executeSimpleSHHCommand, executeSimpleSHHCommand, getCLICommand, getCommandUsage, getGIds, getInput, getKeyType, getParamBooleanValue, getParamDateValue, getParamIntValue, getParamLongValue, getParamObjectValue, getParamTextValue, getUserCredentials, getUserId, getUserLoginId, getVersion, isParamPresent, isParamValueEmpty, setServerCall, setUserCredentials, setVersion, validateInputpublic static final java.lang.String ENTITY_TYPE_PARAM_NAME
public static final java.lang.String ENTITY_NAME_PARAM_NAME
public static final java.lang.String ENTITIES_PARAM_NAME
public static final java.lang.String ENTITY_EMAIL_PARAM_NAME
public static final java.lang.String ENTITY_QUOTA_PARAM_NAME
public static final java.lang.String ENTITY_ADVISORY_QUOTA_PARAM_NAME
public static final java.lang.String FILTER_PARAM_NAME
public static final java.lang.String COLUMNS_PARAM_NAME
public static final java.lang.String SORT_PARAM_NAME
public static final java.lang.String SORT_DIRECTION_PARAM_NAME
public static final java.lang.String OUTPUT_PARAM_NAME
public static final java.lang.String START_PARAM_NAME
public static final java.lang.String LIMIT_PARAM_NAME
public static final java.lang.String ALARMEDENTITIES_PARAM_NAME
public static final java.lang.String SORTBY_PARAM_NAME
public static final com.mapr.cliframework.base.CLICommand entityCmds
public static java.util.Map<com.mapr.fs.cldb.proto.CLDBProto.AeInfoFields,com.mapr.cliframework.util.FieldInfo> fieldTable
public EntityCommands(com.mapr.cliframework.base.ProcessedInput input,
com.mapr.cliframework.base.CLICommand cliCommand)
public com.mapr.cliframework.base.CommandOutput executeRealCommand()
throws com.mapr.cliframework.base.CLIProcessingException
executeRealCommand in class com.mapr.cliframework.base.CLIBaseClasscom.mapr.cliframework.base.CLIProcessingExceptionpublic com.mapr.fs.cldb.proto.CLDBProto.AeLookupRequest buildNextRequest(com.google.protobuf.MessageLite prevReq,
com.google.protobuf.MessageLite prevResp)
throws com.mapr.cliframework.base.CLIProcessingException
ListIteratorbuildNextRequest in interface ListIteratorbuildNextRequest in class ListCommandcom.mapr.cliframework.base.CLIProcessingExceptionpublic boolean hasMore(com.google.protobuf.MessageLite prevReq,
com.google.protobuf.MessageLite prevResp)
throws com.mapr.cliframework.base.CLIProcessingException
ListIteratorhasMore in interface ListIteratorhasMore in class ListCommandcom.mapr.cliframework.base.CLIProcessingExceptionpublic void processResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out,
com.google.protobuf.MessageLite response)
throws com.mapr.cliframework.base.CLIProcessingException
ListIteratorprocessResponse in interface ListIteratorprocessResponse in class ListCommandout - - CommandOutput.OutputHierarchyresponse - - response objectcom.mapr.cliframework.base.CLIProcessingExceptionpublic com.mapr.fs.cldb.proto.CLDBProto.AeLookupResponse sendRequest(com.google.protobuf.MessageLite request)
throws com.mapr.cliframework.base.CLIProcessingException
ListIteratorsendRequest in interface ListIteratorsendRequest in class ListCommandrequest - - request object.com.mapr.cliframework.base.CLIProcessingException