com.sun.sgs.client.lightweight
Class LightweightConnector

java.lang.Object
  extended by com.sun.sgs.client.lightweight.LightweightConnector

 class LightweightConnector
extends Object

A simple class that handles connections to the server. This is effectively nothing more than a pool of connections with a handler for incoming messages from the server.


Nested Class Summary
(package private) static class LightweightConnector.ClientChannelImpl
          Simple, private implementation of ClientChannel.
 
Constructor Summary
LightweightConnector()
          Creates an instance of LightweightConnector which in turn will try to create an endpoint and, if successful, start a new thread for handling incoming messages.
 
Method Summary
(package private)  SocketChannel addConnection(String host, int port, LightweightClient client)
          Tries to establish a connection to the given server, using the given callback interfaces for notifications of incoming messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LightweightConnector

LightweightConnector()
               throws IOException
Creates an instance of LightweightConnector which in turn will try to create an endpoint and, if successful, start a new thread for handling incoming messages.

Throws:
IOException
Method Detail

addConnection

SocketChannel addConnection(String host,
                            int port,
                            LightweightClient client)
                      throws IOException
Tries to establish a connection to the given server, using the given callback interfaces for notifications of incoming messages.

Throws:
IOException

Project Darkstar, Version 0.9.8-SNAPSHOT
2013-07-29 20:21:26

Copyright © 2007-2013 Sun Microsystems, Inc. All rights reserved