Class BackupCommands.DeleteCommand
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.backup.impl.BackupCommands.Command
org.apache.hadoop.hbase.backup.impl.BackupCommands.DeleteCommand
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
- Enclosing class:
- BackupCommands
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.backup.impl.BackupCommands.Command
cmdline, conn -
Constructor Summary
ConstructorsConstructorDescriptionDeleteCommand(org.apache.hadoop.conf.Configuration conf, org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmdline) -
Method Summary
Modifier and TypeMethodDescriptionprivate String[]convertToBackupIds(List<BackupInfo> history) voidexecute()private voidexecuteDeleteListOfBackups(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmdline) private voidexecuteDeleteOlderThan(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmdline) protected voidprotected booleanThe command can't be run if active backup session is in progressMethods inherited from class org.apache.hadoop.hbase.backup.impl.BackupCommands.Command
finish, requiresConsistentStateMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Constructor Details
-
DeleteCommand
DeleteCommand(org.apache.hadoop.conf.Configuration conf, org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmdline)
-
-
Method Details
-
requiresNoActiveSession
Description copied from class:BackupCommands.CommandThe command can't be run if active backup session is in progress- Overrides:
requiresNoActiveSessionin classBackupCommands.Command- Returns:
- true if no active sessions are in progress
-
execute
- Overrides:
executein classBackupCommands.Command- Throws:
IOException
-
executeDeleteOlderThan
private void executeDeleteOlderThan(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmdline) throws IOException - Throws:
IOException
-
convertToBackupIds
-
executeDeleteListOfBackups
private void executeDeleteListOfBackups(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmdline) throws IOException - Throws:
IOException
-
printUsage
- Specified by:
printUsagein classBackupCommands.Command
-