Class BackupCommands.Command

java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.backup.impl.BackupCommands.Command
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
Direct Known Subclasses:
BackupCommands.BackupSetCommand, BackupCommands.CreateCommand, BackupCommands.DeleteCommand, BackupCommands.DescribeCommand, BackupCommands.HelpCommand, BackupCommands.HistoryCommand, BackupCommands.MergeCommand, BackupCommands.ProgressCommand, BackupCommands.RepairCommand
Enclosing class:
BackupCommands

public abstract static class BackupCommands.Command extends org.apache.hadoop.conf.Configured
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine
     
    (package private) Connection
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Command(org.apache.hadoop.conf.Configuration conf)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    protected abstract void
     
    protected boolean
    Command requires consistent state of a backup system Backup system may become inconsistent because of an abnormal termination of a backup session or delete command
    protected boolean
    The command can't be run if active backup session is in progress

    Methods inherited from class org.apache.hadoop.conf.Configured

    getConf, setConf

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Command

      Command(org.apache.hadoop.conf.Configuration conf)
  • Method Details

    • execute

      public void execute() throws IOException
      Throws:
      IOException
    • finish

      public void finish() throws IOException
      Throws:
      IOException
    • printUsage

      protected abstract void printUsage()
    • requiresNoActiveSession

      protected boolean requiresNoActiveSession()
      The command can't be run if active backup session is in progress
      Returns:
      true if no active sessions are in progress
    • requiresConsistentState

      protected boolean requiresConsistentState()
      Command requires consistent state of a backup system Backup system may become inconsistent because of an abnormal termination of a backup session or delete command
      Returns:
      true, if yes