org.basex.server
Class ServerSession

java.lang.Object
  extended by org.basex.core.Session
      extended by org.basex.core.LocalSession
          extended by org.basex.server.ServerSession

public final class ServerSession
extends LocalSession

This wrapper executes server commands locally.

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

Constructor Summary
ServerSession(Context context, Semaphore s)
          Constructor.
 
Method Summary
 boolean execute(Proc pr, OutputStream out)
          Executes a process and prints the result to the specified stream.
 
Methods inherited from class org.basex.core.LocalSession
close, execute, info
 
Methods inherited from class org.basex.core.Session
execute, execute
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerSession

public ServerSession(Context context,
                     Semaphore s)
Constructor.

Parameters:
context - context
s - semaphore reference
Method Detail

execute

public boolean execute(Proc pr,
                       OutputStream out)
Description copied from class: Session
Executes a process and prints the result to the specified stream.

Overrides:
execute in class LocalSession
Parameters:
pr - process to be executed
out - output stream
Returns:
success of operation