public final class Copy extends Command
Constructor and Description |
---|
Copy(String db,
String newdb)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
copy(String source,
String target,
StaticOptions sopts,
Copy cmd)
Copies the specified database.
|
void |
databases(LockResult lr)
Adds the names of the databases that may be touched by the process.
|
protected double |
prog()
Returns a progress value (0 - 1).
|
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, newData, run, run, setInput, setInput, startUpdate, stoppable, toString, toString, updated, updating
abort, checkStop, det, detail, listen, proc, progress, registered, registered, startTimeout, stop, stopTimeout, title
protected boolean run()
Command
public static void copy(String source, String target, StaticOptions sopts, Copy cmd) throws IOException
source
- name of the databasetarget
- new database namesopts
- static optionscmd
- calling commandIOException
- I/O exceptionpublic void databases(LockResult lr)
Proc
protected String tit()
Proc
public boolean supportsProg()
Command
supportsProg
in class Command
Copyright © 2005–2015 BaseX Team. All rights reserved.