public final class CreateBackup extends Command
Constructor and Description |
---|
CreateBackup(String arg)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
backup(String db,
StaticOptions sopts,
CreateBackup cmd)
Backups the specified database.
|
void |
build(CmdBuilder cb)
Builds a string representation from the command.
|
void |
databases(LockResult lr)
Adds the names of the databases that may be touched by the process.
|
protected boolean |
run()
Executes the command and serializes the result (internal call).
|
boolean |
supportsProg()
Returns true if this command returns a progress value.
|
protected String |
tit()
Returns short information on this process.
|
close, databases, error, execute, execute, finish, finishUpdate, getOption, getOption, info, info, init, newData, run, run, setInput, setInput, startUpdate, stoppable, toString, toString, updated, updating
abort, checkStop, det, detail, listen, proc, prog, progress, registered, registered, startTimeout, stop, stopTimeout, title
public CreateBackup(String arg)
arg
- optional argumentprotected boolean run()
Command
public static void backup(String db, StaticOptions sopts, CreateBackup cmd) throws IOException
db
- name of the databasesopts
- static optionscmd
- calling command instanceIOException
- I/O Exceptionpublic void databases(LockResult lr)
Proc
lr
- container for lock result to pass aroundprotected String tit()
Proc
public boolean supportsProg()
Command
supportsProg
in class Command
public void build(CmdBuilder cb)
Command
Copyright © 2005–2015 BaseX Team. All rights reserved.