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
ConstructorDescriptionDeleteCommand
(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) void
execute()
private void
executeDeleteListOfBackups
(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmdline) private void
executeDeleteOlderThan
(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmdline) protected void
protected boolean
The command can't be run if active backup session is in progressMethods inherited from class org.apache.hadoop.hbase.backup.impl.BackupCommands.Command
finish, requiresConsistentState
Methods 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.Command
The command can't be run if active backup session is in progress- Overrides:
requiresNoActiveSession
in classBackupCommands.Command
- Returns:
- true if no active sessions are in progress
-
execute
- Overrides:
execute
in 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:
printUsage
in classBackupCommands.Command
-