org.basex.core
Class AbstractProcess

java.lang.Object
  extended by org.basex.core.Progress
      extended by org.basex.core.AbstractProcess
Direct Known Subclasses:
ClientProcess, Process

public abstract class AbstractProcess
extends Progress

This class provides the architecture for local and client process interpretation.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Christian Gruen

Constructor Summary
AbstractProcess()
           
 
Method Summary
abstract  boolean execute(Context ctx)
          Executes a command.
abstract  void info(PrintOutput out)
          Returns process info.
abstract  void output(PrintOutput out)
          Serializes the textual results of a command.
 
Methods inherited from class org.basex.core.Progress
checkStop, det, detail, prog, progress, progress, stop, title
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractProcess

public AbstractProcess()
Method Detail

execute

public abstract boolean execute(Context ctx)
                         throws java.io.IOException
Executes a command.

Parameters:
ctx - context reference
Returns:
success of operation
Throws:
java.io.IOException - I/O exception

output

public abstract void output(PrintOutput out)
                     throws java.io.IOException
Serializes the textual results of a command.

Parameters:
out - output stream
Throws:
java.io.IOException - I/O exception

info

public abstract void info(PrintOutput out)
                   throws java.io.IOException
Returns process info.

Parameters:
out - output stream
Throws:
java.io.IOException - I/O exception