public static class BackupCommands.DeleteCommand extends BackupCommands.Command
cmdline, conn
Constructor and Description |
---|
DeleteCommand(org.apache.hadoop.conf.Configuration conf,
org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmdline) |
Modifier and Type | Method and Description |
---|---|
private 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 |
printUsage() |
protected boolean |
requiresNoActiveSession()
The command can't be run if active backup session is in progress
|
finish, requiresConsistentState
DeleteCommand(org.apache.hadoop.conf.Configuration conf, org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmdline)
protected boolean requiresNoActiveSession()
BackupCommands.Command
requiresNoActiveSession
in class BackupCommands.Command
public void execute() throws IOException
execute
in class BackupCommands.Command
IOException
private void executeDeleteOlderThan(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmdline) throws IOException
IOException
private String[] convertToBackupIds(List<BackupInfo> history)
private void executeDeleteListOfBackups(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmdline) throws IOException
IOException
protected void printUsage()
printUsage
in class BackupCommands.Command
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.