org.apache.derby.impl.services.net
Class LogicalServer

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.apache.derby.impl.services.net.LogicalServer
All Implemented Interfaces:
java.lang.Runnable

public class LogicalServer
extends java.lang.Thread

The Logical Server provides, along with the LogicalClient, an easy-to-use request-response protocol. The Logical Server in the net-service is responsible for answering lsn-requests, 2pc-related requests and log shipments

Author:
Egil S¿rensen

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
static LogicalServer getInstance()
          Get the instance of the running server
static void init()
          Initialize, create and start the LogicalServer
 void run()
          Run the server
 void setWait(boolean toggle)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

init

public static void init()
Initialize, create and start the LogicalServer


setWait

public void setWait(boolean toggle)

getInstance

public static LogicalServer getInstance()
Get the instance of the running server

Returns:
The running instance

run

public void run()
Run the server