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

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

public class LogicalClient
extends java.lang.Object
implements java.lang.Runnable

LogicalClient is a network client capable of delivering NetworkPayloads to a LogicalServer on another database. It supplies the database with an easy-to-use request-response network protocol.

Author:
Egil S¿rensen

Method Summary
static LogicalClient getInstance()
          Get the instance of the LogicalClient
 void run()
          Run the server
 NetworkPayload send(NetworkPayload payload)
          Send a NetworkPayload and return the response from the LogicalServer
 void shutdown()
          Tell the client to shut down on next opportunity
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LogicalClient getInstance()
Get the instance of the LogicalClient

Returns:
The running instance

shutdown

public void shutdown()
Tell the client to shut down on next opportunity


run

public void run()
Run the server

Specified by:
run in interface java.lang.Runnable

send

public NetworkPayload send(NetworkPayload payload)
Send a NetworkPayload and return the response from the LogicalServer

Parameters:
payload - The request-payload
Returns:
The response-payload