Package org.jppf.client
Interface ClassServerDelegate
- All Superinterfaces:
AutoCloseable,Runnable
- All Known Implementing Classes:
AbstractClassServerDelegate
Interface for all class server clients.
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the name of this delegate.org.jppf.comm.socket.SocketWrapperGet the socket client uses to communicate over a socket connection.voidinit()Initialize the connection.voidInitialize the underlying socket connection of this connection handler.booleanisClosed()Determine whether this connection handler is closed.voidSet the name of this delegate.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
getName
String getName()Get the name of this delegate.- Returns:
- the name as a string.
-
setName
Set the name of this delegate.- Parameters:
name- the name as a string.
-
init
Initialize the connection.- Throws:
Exception- if an error is raised while initializing the connection.
-
initSocketClient
Initialize the underlying socket connection of this connection handler.- Throws:
Exception- if an error is raised during initialization.
-
getSocketClient
Get the socket client uses to communicate over a socket connection.- Returns:
- a
SocketWrapperinstance. - Throws:
Exception- if the connection has failed or timed out.
-
isClosed
boolean isClosed()Determine whether this connection handler is closed.- Returns:
trueif this connection handler is closed,falseotherwise.
-