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

java.lang.Object
  extended byorg.apache.derby.impl.drda.net.LogicalClient

public class LogicalClient
extends java.lang.Object

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. The LogicalClient is also responsible for keeping the database notified if the HotStandby is alive or not.

Author:
Egil S¿rensen

Method Summary
static LogicalClient getInstance(java.lang.String url)
          Get an instance for this client.
 NetworkPayload send(NetworkPayload payload)
          Send a NetworkPayload and return the response from the LogicalServer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LogicalClient getInstance(java.lang.String url)
Get an instance for this client. If an instance exists the url is set to the chosen url and the client reconnects. If not a new LogicalClient is initialized and returned

Parameters:
url - The url to the LogicalServer
Returns:

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