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