public class SnapshotCommands extends ListCommand implements com.mapr.cliframework.base.CLIInterface
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COLUMNS_PARAM_NAME |
static java.lang.String |
FILTER_PARAM_NAME |
com.mapr.baseutils.fsrpcutils.FSRpcUtils |
fsRpcUtils |
static java.lang.String |
LIMIT_PARAM_NAME |
static java.lang.String |
OUTPUT_PARAM_NAME |
static java.util.regex.Pattern |
p |
static java.lang.String |
RW_VOLUME_PARAM_MOUNTDIR |
static java.lang.String |
RW_VOLUME_PARAM_NAME |
static java.lang.String |
SNAPSHOT_EXPIRY_PARAM_NAME |
static java.lang.String |
SNAPSHOT_PARAM_NAME |
static java.lang.String |
SNAPSHOT_PARAM_VOL_NAME |
static java.lang.String |
SNAPSHOT_PARAM_VOL_PATH |
static com.mapr.cliframework.base.CLICommand |
snapshotCommands |
static com.mapr.cliframework.base.CLICommand[] |
snapshotCommandsArray |
static java.lang.String |
snapshotCreateUsage |
static java.lang.String |
snapshotListUsage |
static java.lang.String |
snapshotPreserveUsage |
static java.lang.String |
snapshotRemoveUsage |
static java.lang.String |
SNAPSHOTS_ID_PARAM_NAME |
static java.lang.String |
SORT_DIRECTION_PARAM_NAME |
static java.lang.String |
SORT_PARAM_NAME |
static java.lang.String |
START_PARAM_NAME |
| Constructor and Description |
|---|
SnapshotCommands(com.mapr.cliframework.base.ProcessedInput input,
com.mapr.cliframework.base.CLICommand cliCommand) |
| Modifier and Type | Method and Description |
|---|---|
com.mapr.fs.cldb.proto.CLDBProto.SnapshotListRequest |
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.SnapshotListResponse |
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 com.mapr.baseutils.fsrpcutils.FSRpcUtils fsRpcUtils
public static final java.lang.String SNAPSHOT_PARAM_VOL_NAME
public static final java.lang.String SNAPSHOT_PARAM_VOL_PATH
public static final java.lang.String RW_VOLUME_PARAM_NAME
public static final java.lang.String RW_VOLUME_PARAM_MOUNTDIR
public static final java.lang.String SNAPSHOT_PARAM_NAME
public static final java.lang.String SNAPSHOT_EXPIRY_PARAM_NAME
public static final java.lang.String SNAPSHOTS_ID_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 java.util.regex.Pattern p
public static java.lang.String snapshotListUsage
public static final java.lang.String snapshotCreateUsage
public static java.lang.String snapshotRemoveUsage
public static java.lang.String snapshotPreserveUsage
public static com.mapr.cliframework.base.CLICommand[] snapshotCommandsArray
public static com.mapr.cliframework.base.CLICommand snapshotCommands
public SnapshotCommands(com.mapr.cliframework.base.ProcessedInput input,
com.mapr.cliframework.base.CLICommand cliCommand)
throws com.mapr.cliframework.base.CLIProcessingException
com.mapr.cliframework.base.CLIProcessingExceptionpublic 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.SnapshotListRequest 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.SnapshotListResponse 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