Package com.mapr.cli
Class DumpCommands
- java.lang.Object
-
- com.mapr.cliframework.base.CLIBaseClass
-
- com.mapr.cli.DumpCommands
-
- All Implemented Interfaces:
com.mapr.cliframework.base.CLIInterface
public class DumpCommands extends com.mapr.cliframework.base.CLIBaseClass implements com.mapr.cliframework.base.CLIInterface
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<java.lang.String,com.mapr.cliframework.base.inputparams.BaseInputParameter>baseParamsstatic java.lang.StringCHANGE_LOG_CLASSNAME_PARAM_NAMEstatic java.lang.StringCHANGE_LOG_PARAM_NAMEstatic java.lang.StringDUMP_PARAMSstatic java.lang.StringENODES_PARAMstatic java.lang.StringMULTI_ARG_SEP
-
Constructor Summary
Constructors Constructor Description DumpCommands(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand cliCommand)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.mapr.cliframework.base.CommandOutputexecuteRealCommand()Public function called to execute the sub-commands of the 'dump' command.static com.mapr.cliframework.base.CommandOutput.OutputHierarchy.OutputNodeformatContainerInfo(com.mapr.fs.cldb.proto.CLDBProto.ContainerInfo cInfo, com.mapr.fs.cldb.proto.CLDBProto.VolumeInfo vInfo, java.lang.String type, int version)com.mapr.fs.cldb.proto.CLDBProto.SnapshotLookupResponselookupSnapshot(java.lang.String clusterName, int snapshotId, java.lang.String snapshotName, java.lang.String volumeName, com.mapr.fs.proto.Security.CredentialsMsg creds)static java.lang.StringmillisToHhMmSs(long millis)-
Methods inherited from class com.mapr.cliframework.base.CLIBaseClass
executeCommand, executeSimpleSHHCommand, executeSimpleSHHCommand, getCLICommand, getCommandUsage, getGIds, getInput, getKeyType, getParamBooleanValue, getParamDateValue, getParamIntValue, getParamLongValue, getParamObjectValue, getParamTextValue, getUserCredentials, getUserId, getUserLoginId, getVersion, isParamPresent, isParamValueEmpty, setServerCall, setUserCredentials, setVersion, validateInput
-
-
-
-
Field Detail
-
CHANGE_LOG_PARAM_NAME
public static final java.lang.String CHANGE_LOG_PARAM_NAME
- See Also:
- Constant Field Values
-
CHANGE_LOG_CLASSNAME_PARAM_NAME
public static final java.lang.String CHANGE_LOG_CLASSNAME_PARAM_NAME
- See Also:
- Constant Field Values
-
ENODES_PARAM
public static final java.lang.String ENODES_PARAM
- See Also:
- Constant Field Values
-
DUMP_PARAMS
public static final java.lang.String DUMP_PARAMS
- See Also:
- Constant Field Values
-
MULTI_ARG_SEP
public static final java.lang.String MULTI_ARG_SEP
- See Also:
- Constant Field Values
-
baseParams
public static java.util.Map<java.lang.String,com.mapr.cliframework.base.inputparams.BaseInputParameter> baseParams
-
-
Method Detail
-
executeRealCommand
public com.mapr.cliframework.base.CommandOutput executeRealCommand() throws com.mapr.cliframework.base.CLIProcessingExceptionPublic function called to execute the sub-commands of the 'dump' command. It is called by 'executeCommand' defined in the parent class.- Specified by:
executeRealCommandin classcom.mapr.cliframework.base.CLIBaseClass- Throws:
com.mapr.cliframework.base.CLIProcessingException- See Also:
CLIBaseClass
-
formatContainerInfo
public static com.mapr.cliframework.base.CommandOutput.OutputHierarchy.OutputNode formatContainerInfo(com.mapr.fs.cldb.proto.CLDBProto.ContainerInfo cInfo, com.mapr.fs.cldb.proto.CLDBProto.VolumeInfo vInfo, java.lang.String type, int version)
-
millisToHhMmSs
public static java.lang.String millisToHhMmSs(long millis)
-
lookupSnapshot
public com.mapr.fs.cldb.proto.CLDBProto.SnapshotLookupResponse lookupSnapshot(java.lang.String clusterName, int snapshotId, java.lang.String snapshotName, java.lang.String volumeName, com.mapr.fs.proto.Security.CredentialsMsg creds)
-
-