public class VirtualIPCommands extends ListCommand
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<java.lang.String,com.mapr.cliframework.base.inputparams.BaseInputParameter> |
baseParams |
static java.util.Map<com.mapr.fs.cldb.proto.CLDBProto.NodeInfo,com.mapr.cliframework.util.FieldInfo> |
fieldTable |
static com.mapr.cliframework.base.CLICommand |
virtualIpsCommand |
| Constructor and Description |
|---|
VirtualIPCommands(com.mapr.cliframework.base.ProcessedInput input,
com.mapr.cliframework.base.CLICommand cliCommand) |
| 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.
|
com.mapr.cliframework.base.CommandOutput |
executeRealCommand() |
java.lang.String |
getCommandUsage() |
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.
|
static java.lang.String |
longToIp(long i) |
void |
processResponse(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out,
com.google.protobuf.MessageLite response)
Parse the response and populate the output hierarchy.
|
com.google.protobuf.MessageLite |
sendRequest(com.google.protobuf.MessageLite request)
Send the request using RPC and fetch the response.
|
getFilters, getNextLimiter, hasMore, listexecuteCommand, executeSimpleSHHCommand, executeSimpleSHHCommand, getCLICommand, getGIds, getInput, getKeyType, getParamBooleanValue, getParamDateValue, getParamIntValue, getParamLongValue, getParamObjectValue, getParamTextValue, getUserCredentials, getUserId, getUserLoginId, getVersion, isParamPresent, isParamValueEmpty, setServerCall, setUserCredentials, setVersion, validateInputpublic static java.util.Map<com.mapr.fs.cldb.proto.CLDBProto.NodeInfo,com.mapr.cliframework.util.FieldInfo> fieldTable
public static java.util.Map<java.lang.String,com.mapr.cliframework.base.inputparams.BaseInputParameter> baseParams
public static final com.mapr.cliframework.base.CLICommand virtualIpsCommand
public VirtualIPCommands(com.mapr.cliframework.base.ProcessedInput input,
com.mapr.cliframework.base.CLICommand cliCommand)
public static java.lang.String longToIp(long i)
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 java.lang.String getCommandUsage()
getCommandUsage in class com.mapr.cliframework.base.CLIBaseClasspublic com.google.protobuf.MessageLite 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.google.protobuf.MessageLite 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