public final class Restore extends Command
Constructor and Description |
---|
Restore(String arg)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
databases(LockResult lr)
Adds the names of the databases that may be touched by the process.
|
boolean |
newData(Context ctx)
Closes an open data reference and returns
true if this command will change the
Context.data() reference. |
static void |
restore(String db,
String backup,
StaticOptions sopts,
Restore cmd)
Restores the specified database.
|
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.
|
build, close, databases, error, execute, execute, finish, finishUpdate, getOption, getOption, info, info, init, 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 Restore(String arg)
arg
- optional argumentprotected boolean run()
Command
public void databases(LockResult lr)
Proc
lr
- container for lock result to pass aroundpublic static void restore(String db, String backup, StaticOptions sopts, Restore cmd) throws IOException
db
- name of databasebackup
- name of backupsopts
- static optionscmd
- calling command instanceIOException
- I/O exceptionprotected String tit()
Proc
public boolean newData(Context ctx)
Command
true
if this command will change the
Context.data()
reference. This method is required by the progress dialog in the
frontend.public boolean supportsProg()
Command
supportsProg
in class Command
Copyright © 2005–2015 BaseX Team. All rights reserved.