org.basex.core.cmd
Class ShowBackups

java.lang.Object
  extended by org.basex.core.Proc
      extended by org.basex.core.Command
          extended by org.basex.core.cmd.ShowBackups

public final class ShowBackups
extends Command

Evaluates the 'show backups' command and shows available backups.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.core.Command
args, context, in, mprop, out, perf, prop
 
Fields inherited from class org.basex.core.Proc
listen, updating
 
Constructor Summary
ShowBackups()
           
 
Method Summary
 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 updating(Context ctx)
          Checks if the command performs updates/write operations.
 
Methods inherited from class org.basex.core.Command
close, databases, error, execute, execute, getOption, getOption, info, info, newData, result, run, run, setInput, setInput, stoppable, supportsProg, toString, updated
 
Methods inherited from class org.basex.core.Proc
abort, checkStop, det, detail, listen, proc, prog, progress, registered, registered, startTimeout, stop, stopTimeout, tit, title
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShowBackups

public ShowBackups()
Method Detail

run

protected boolean run()
               throws java.io.IOException
Description copied from class: Command
Executes the command and serializes the result (internal call).

Specified by:
run in class Command
Returns:
success of operation
Throws:
java.io.IOException - I/O exception

updating

public boolean updating(Context ctx)
Description copied from class: Command
Checks if the command performs updates/write operations.

Overrides:
updating in class Command
Parameters:
ctx - database context
Returns:
result of check

build

public void build(CmdBuilder cb)
Description copied from class: Command
Builds a string representation from the command. This string must be correctly built, as commands are sent to the server as strings.

Overrides:
build in class Command
Parameters:
cb - command builder

databases

public void databases(LockResult lr)
Description copied from class: Proc
Adds the names of the databases that may be touched by the process.

Parameters:
lr - Container for lock result to pass around