Package com.mapr.cli

Class 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> baseParams  
      static java.lang.String CHANGE_LOG_CLASSNAME_PARAM_NAME  
      static java.lang.String CHANGE_LOG_PARAM_NAME  
      static java.lang.String DUMP_PARAMS  
      static java.lang.String ENODES_PARAM  
      static java.lang.String MULTI_ARG_SEP  
      • Fields inherited from class com.mapr.cliframework.base.CLIBaseClass

        cliCommand, CLUSTER_NAME_PARAM, clusterParams, HELP_PARAM, input, isServerCall, NOT_REQUIRED, output, REQUIRED, userInfo, version
      • Fields inherited from interface com.mapr.cliframework.base.CLIInterface

        PASSWORD_PREFIX
    • 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.CommandOutput executeRealCommand()
      Public function called to execute the sub-commands of the 'dump' command.
      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)  
      static java.lang.String millisToHhMmSs​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.mapr.cliframework.base.CLIInterface

        executeCommand, getCLICommand, getGIds, getUserId, getUserLoginId, 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
      • baseParams

        public static java.util.Map<java.lang.String,​com.mapr.cliframework.base.inputparams.BaseInputParameter> baseParams
    • Constructor Detail

      • DumpCommands

        public DumpCommands​(com.mapr.cliframework.base.ProcessedInput input,
                            com.mapr.cliframework.base.CLICommand cliCommand)
                     throws com.mapr.cliframework.base.CLIProcessingException
        Throws:
        com.mapr.cliframework.base.CLIProcessingException
    • Method Detail

      • executeRealCommand

        public com.mapr.cliframework.base.CommandOutput executeRealCommand()
                                                                    throws com.mapr.cliframework.base.CLIProcessingException
        Public function called to execute the sub-commands of the 'dump' command. It is called by 'executeCommand' defined in the parent class.
        Specified by:
        executeRealCommand in class com.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)