com.resilientedge.jockey.peerbridge
Class SimpSockConnector

java.lang.Object
  |
  +--com.resilientedge.jockey.peerbridge.SimpSockConnector

public class SimpSockConnector
extends java.lang.Object

Represents a peer connection to another Jockey instance.

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner

Method Summary
 void addRequestListener(SimpSockRequestListener listener)
          Add a listener that wishes to receive request notifications.
 Response broadcastCall(Request req)
          Make a request to a remote jockey peer.
 Response doCall(SimpSockPeer peer, Request req)
          Make a request to a remote jockey peer.
 void doVoidCall(SimpSockPeer peer, Request req)
          Make a request to the Jockey engine which won't receive a response.
 void init(Prefs prefs)
          Initialize this instance.
 void removeRequestListener(SimpSockRequestListener listener)
          Remove an entity from the list of those interested in requests notifications.
 void shutdown()
          Terminate this client instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public void init(Prefs prefs)
Initialize this instance.

doCall

public Response doCall(SimpSockPeer peer,
                       Request req)
                throws java.io.IOException
Make a request to a remote jockey peer.
Parameters:
req - the request for the engine
Returns:
a response

doVoidCall

public void doVoidCall(SimpSockPeer peer,
                       Request req)
                throws java.io.IOException
Make a request to the Jockey engine which won't receive a response.
Parameters:
req - the request for the engine

broadcastCall

public Response broadcastCall(Request req)
                       throws java.io.IOException
Make a request to a remote jockey peer.
Parameters:
req - the request for the engine
Returns:
a response

shutdown

public void shutdown()
Terminate this client instance.

addRequestListener

public void addRequestListener(SimpSockRequestListener listener)
Add a listener that wishes to receive request notifications.
Parameters:
listener - entity to add

removeRequestListener

public void removeRequestListener(SimpSockRequestListener listener)
Remove an entity from the list of those interested in requests notifications.
Parameters:
listener - entity to remove


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.