org.hudsonci.utils.tasks
Class OpenServerSocket

java.lang.Object
  extended by org.hudsonci.utils.tasks.OpenServerSocket
All Implemented Interfaces:
Callable<OpenServerSocket.Acceptor,IOException>, Serializable

public class OpenServerSocket
extends Object
implements Callable<OpenServerSocket.Acceptor,IOException>

Opens a server socket on a node and facilitates accepting connections.

Since:
2.1.0
Author:
Jason Dillon
See Also:
Serialized Form

Nested Class Summary
static interface OpenServerSocket.Acceptor
          Used to accept a new connection on the remote server socket.
static interface OpenServerSocket.Connection
          Represents the accepted connection.
 
Field Summary
static int DEFAULT_SO_TIMEOUT
           
 
Constructor Summary
OpenServerSocket()
           
 
Method Summary
 OpenServerSocket.Acceptor call()
           
protected  void customize(ServerSocket serverSocket)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SO_TIMEOUT

public static final int DEFAULT_SO_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

OpenServerSocket

public OpenServerSocket()
Method Detail

call

public OpenServerSocket.Acceptor call()
                               throws IOException
Specified by:
call in interface Callable<OpenServerSocket.Acceptor,IOException>
Throws:
IOException

customize

protected void customize(ServerSocket serverSocket)
                  throws SocketException
Throws:
SocketException


Copyright © 2004-2011 Hudson. All Rights Reserved.