public class OffloadRuleCommands extends ListCommand implements com.mapr.cliframework.base.CLIInterface
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ASCENDING_SORTING_ORDER_PARAM_NAME |
static java.util.Map<java.lang.String,com.mapr.cliframework.base.inputparams.BaseInputParameter> |
baseParams |
static java.lang.String |
DESCENDING_SORTING_ORDER_PARAM_NAME |
static java.lang.String |
EXPR_PARAM_NAME |
static java.lang.String |
OUTPUT_PARAM_NAME |
static com.mapr.cliframework.base.CLICommand |
ruleCommands |
static com.mapr.cliframework.base.CLICommand[] |
ruleCommandsArray |
static java.lang.String |
ruleCreateUsage |
static java.lang.String |
ruleInfoUsage |
static java.lang.String |
ruleListUsage |
static java.lang.String |
ruleModifyUsage |
static java.lang.String |
RULENAME_PARAM_NAME |
static java.util.Map<java.lang.String,com.mapr.cliframework.base.inputparams.BaseInputParameter> |
ruleParams |
static java.lang.String |
ruleRemoveUsage |
static java.lang.String |
SORTBY_PARAM_NAME |
static java.lang.String |
SORTING_ORDER_PARAM_NAME |
| Constructor and Description |
|---|
OffloadRuleCommands(com.mapr.cliframework.base.ProcessedInput input,
com.mapr.cliframework.base.CLICommand cliCommand) |
| Modifier and Type | Method and Description |
|---|---|
com.mapr.fs.cldb.proto.CLDBProto.OffloadRuleListRequest |
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.
|
static com.mapr.fs.cldb.proto.CLDBProto.OffloadRuleLookupResponse |
ruleLookup(java.lang.String cluster,
com.mapr.fs.proto.Security.CredentialsMsg creds,
java.lang.String ruleName) |
com.mapr.fs.cldb.proto.CLDBProto.OffloadRuleListResponse |
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 RULENAME_PARAM_NAME
public static final java.lang.String EXPR_PARAM_NAME
public static final java.lang.String OUTPUT_PARAM_NAME
public static final java.lang.String SORTBY_PARAM_NAME
public static final java.lang.String SORTING_ORDER_PARAM_NAME
public static final java.lang.String ASCENDING_SORTING_ORDER_PARAM_NAME
public static final java.lang.String DESCENDING_SORTING_ORDER_PARAM_NAME
public static final java.lang.String ruleCreateUsage
public static final java.lang.String ruleModifyUsage
public static final java.lang.String ruleListUsage
public static final java.lang.String ruleInfoUsage
public static final java.lang.String ruleRemoveUsage
public static java.util.Map<java.lang.String,com.mapr.cliframework.base.inputparams.BaseInputParameter> baseParams
public static java.util.Map<java.lang.String,com.mapr.cliframework.base.inputparams.BaseInputParameter> ruleParams
public static com.mapr.cliframework.base.CLICommand[] ruleCommandsArray
public static final com.mapr.cliframework.base.CLICommand ruleCommands
public OffloadRuleCommands(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 static com.mapr.fs.cldb.proto.CLDBProto.OffloadRuleLookupResponse ruleLookup(java.lang.String cluster,
com.mapr.fs.proto.Security.CredentialsMsg creds,
java.lang.String ruleName)
throws com.mapr.cliframework.base.CLIProcessingException
com.mapr.cliframework.base.CLIProcessingExceptionpublic com.mapr.fs.cldb.proto.CLDBProto.OffloadRuleListRequest 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.OffloadRuleListResponse 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