org.jppf.comm.socket
Interface SocketInitializer

All Known Implementing Classes:
AbstractSocketInitializer, JcaSocketInitializer, SocketInitializerImpl

public interface SocketInitializer

Common interface for objects that establish a connection with a remote socket.

Author:
Laurent Cohen

Method Summary
 void close()
          Close this initializer.
 String getName()
          Get the name given to this initializer.
 void initializeSocket(SocketWrapper socketWrapper)
          Initialize the underlying socket client, by starting a Timer and a corresponding TimerTask until a specified amount of time has passed.
 boolean isClosed()
          Determine whether this socket initializer has been intentionally closed.
 boolean isSuccessfull()
          Determine whether any connection attempt succeeded.
 void setName(String name)
          Set the name given to this initializer.
 

Method Detail

initializeSocket

void initializeSocket(SocketWrapper socketWrapper)
Initialize the underlying socket client, by starting a Timer and a corresponding TimerTask until a specified amount of time has passed.

Parameters:
socketWrapper - the socket wrapper to initialize.

close

void close()
Close this initializer.


isSuccessfull

boolean isSuccessfull()
Determine whether any connection attempt succeeded.

Returns:
true if any attempt was successfull, false otherwise.

isClosed

boolean isClosed()
Determine whether this socket initializer has been intentionally closed.

Returns:
true if this socket initializer has been intentionally closed, false otherwise.

getName

String getName()
Get the name given to this initializer.

Returns:
the name as a string.

setName

void setName(String name)
Set the name given to this initializer.

Parameters:
name - the name as a string.


Copyright © 2005-2010 JPPF Team.