edu.cuny.cat.comm
Class QueueBasedCatpClientConnector

java.lang.Object
  extended by edu.cuny.cat.comm.QueueBasedCatpClientConnector
All Implemented Interfaces:
ClientConnector<CatpMessage>, Connector

public class QueueBasedCatpClientConnector
extends java.lang.Object
implements ClientConnector<CatpMessage>

The implementation of ClientConnector when QueueBasedInfrastructureImpl is used.

Version:
$Revision: 1.8 $
Author:
Jinzhong Niu

Constructor Summary
QueueBasedCatpClientConnector()
           
 
Method Summary
 Connection<CatpMessage> connect()
          connects to a server until a Connection is established to the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueueBasedCatpClientConnector

public QueueBasedCatpClientConnector()
Method Detail

connect

public Connection<CatpMessage> connect()
                                throws ConnectionException
Description copied from interface: ClientConnector
connects to a server until a Connection is established to the server. The concrete way to reach the server is defined by the current Infrastructure implementation.

Specified by:
connect in interface ClientConnector<CatpMessage>
Returns:
an instance of QueueBasedInfrastructureImpl.
Throws:
ConnectionException