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

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.apache.derby.impl.drda.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 drda-package (Network Server) is responsible for receiving I'm-alive-messages to enable fail-fast semantics in the HotStandby-scheme

Author:
Egil S¿rensen

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 java.lang.String getClientId()
          Get the url of the client connected to the server
static LogicalServer getInstance()
          Get an instance of this server
static void init()
          Initialize and start the server
 void run()
          Run the server
 void shutdown()
          Shutdown the server
 
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 and start the server


getInstance

public static LogicalServer getInstance()
Get an instance of this server

Returns:
The server instance

getClientId

public java.lang.String getClientId()
Get the url of the client connected to the server

Returns:
The id or url belonging to the client currently connected

shutdown

public void shutdown()
Shutdown the server


run

public void run()
Run the server