org.basex.core
Class AbstractProcess

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

public abstract class AbstractProcess
extends Progress

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

Author:
Workgroup DBIS, University of Konstanz 2005-07, ISC License, Stefan Klinger, Christian Gruen

Field Summary
 Command cmd
          Command reference.
 
Constructor Summary
AbstractProcess()
           
 
Method Summary
abstract  boolean execute()
          Processes a command.
abstract  void info(PrintOutput out)
          Returns process info.
abstract  void output(PrintOutput out)
          Processes a command.
 
Methods inherited from class org.basex.core.Progress
detail, header, progress, progress, stop, stopped
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cmd

public Command cmd
Command reference.

Constructor Detail

AbstractProcess

public AbstractProcess()
Method Detail

execute

public abstract boolean execute()
                         throws java.io.IOException
Processes a command.

Returns:
success of operation
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

output

public abstract void output(PrintOutput out)
                     throws java.io.IOException
Processes a command.

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