org.jppf.client
Class TaskServerConnectionHandler
java.lang.Object
org.jppf.client.AbstractClientConnectionHandler
org.jppf.client.TaskServerConnectionHandler
- All Implemented Interfaces:
- ClientConnectionHandler, ClientConnectionStatusHandler
public class TaskServerConnectionHandler
- extends AbstractClientConnectionHandler
Instances of this class handle the sending and receiving of jobs to and from a JPPF driver.
- Author:
- Laurent Cohen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskServerConnectionHandler
public TaskServerConnectionHandler(JPPFClientConnection owner,
String host,
int port)
- Initialize this connection with the specified owner.
- Parameters:
owner - the client connection which owns this connection handler.host - the host to connect to.port - the port to connect to on the host.
createSocketInitializer
protected SocketInitializer createSocketInitializer()
- Create a socket initializer for this connection handler.
- Specified by:
createSocketInitializer in class AbstractClientConnectionHandler
- Returns:
- a
SocketInitializer instance. - See Also:
AbstractClientConnectionHandler.createSocketInitializer()
init
public void init()
throws Exception
- Initialize the connection.
- Throws:
Exception - if an error is raised while initializing the connection.
initSocketClient
public void initSocketClient()
throws Exception
- Initialize the underlying socket connection of this connection handler.
- Throws:
Exception - if an error is raised during initialization.- See Also:
ClientConnectionHandler.initSocketClient()
close
public void close()
- Close and cleanup this connection handler.
- See Also:
ClientConnectionHandler.close()
Copyright © 2005-2010 JPPF Team.