org.jppf.client
Interface ClientConnectionHandler

All Superinterfaces:
ClientConnectionStatusHandler
All Known Subinterfaces:
ClassServerDelegate
All Known Implementing Classes:
AbstractClassServerDelegate, AbstractClientConnectionHandler, ClassServerDelegateImpl, JcaClassServerDelegate, TaskServerConnectionHandler

public interface ClientConnectionHandler
extends ClientConnectionStatusHandler

Interface for wrappers around a socket connection to the server on the client side.

Author:
Laurent Cohen, Jeff Rosen

Method Summary
 void close()
          Close and cleanup this connection handler.
 SocketWrapper getSocketClient()
          Get the socket client uses to communicate over a socket connection.
 void init()
          Initialize the connection.
 void initSocketClient()
          Initialize the underlying socket connection of this connection handler.
 
Methods inherited from interface org.jppf.client.event.ClientConnectionStatusHandler
addClientConnectionStatusListener, getStatus, removeClientConnectionStatusListener, setStatus
 

Method Detail

init

void init()
          throws Exception
Initialize the connection.

Throws:
Exception - if an error is raised while initializing the connection.

initSocketClient

void initSocketClient()
                      throws Exception
Initialize the underlying socket connection of this connection handler.

Throws:
Exception - if an error is raised during initialization.

getSocketClient

SocketWrapper getSocketClient()
                              throws Exception
Get the socket client uses to communicate over a socket connection.

Returns:
a SocketWrapper instance.
Throws:
Exception - if the connection has failed or timed out.

close

void close()
Close and cleanup this connection handler.



Copyright © 2005-2010 JPPF Team.