public final class CreateBackup extends Command
Constructor and Description |
---|
CreateBackup(String arg)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addLocks()
Adds the strings (databases, special identifiers) for which locks need to be acquired.
|
static void |
backup(String db,
StaticOptions sopts,
CreateBackup cmd)
Backups the specified database.
|
void |
build(CmdBuilder cb)
Builds a string representation from the command.
|
protected boolean |
run()
Executes the command and serializes the result (internal call).
|
String |
shortInfo()
Returns short progress information.
|
boolean |
supportsProg()
Returns true if this command returns a progress value.
|
addLocks, baseURI, baseURI, close, error, exception, execute, execute, getOption, getOption, info, info, init, maxResults, newData, result, run, run, setInput, setInput, stoppable, toString, toString, updated, updating
active, checkStop, detailedInfo, jc, memory, popJob, progressInfo, pushJob, register, state, stop, stopped, timeout, unregister
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 addLocks()
Job
public String shortInfo()
Job
public boolean supportsProg()
Command
supportsProg
in class Command
public void build(CmdBuilder cb)
Command
Copyright © 2005–2023 BaseX Team. All rights reserved.