Spring for Apache Hadoop

org.springframework.yarn.integration.support
Class DefaultPortExposingTcpSocketSupport

java.lang.Object
  extended by org.springframework.yarn.integration.support.DefaultPortExposingTcpSocketSupport
All Implemented Interfaces:
org.springframework.integration.ip.tcp.connection.support.TcpSocketSupport, PortExposingTcpSocketSupport

public class DefaultPortExposingTcpSocketSupport
extends java.lang.Object
implements PortExposingTcpSocketSupport

Implementation of TcpSocketSupport which extends its base functionality by catching socket information, like listen address and port.

Author:
Janne Valkealahti

Constructor Summary
DefaultPortExposingTcpSocketSupport()
           
 
Method Summary
 java.lang.String getServerSocketAddress()
          Gets the binded server socket address.
 int getServerSocketPort()
          Gets the binded server socket port.
 void postProcessServerSocket(java.net.ServerSocket serverSocket)
           
 void postProcessSocket(java.net.Socket socket)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPortExposingTcpSocketSupport

public DefaultPortExposingTcpSocketSupport()
Method Detail

postProcessServerSocket

public void postProcessServerSocket(java.net.ServerSocket serverSocket)
Specified by:
postProcessServerSocket in interface org.springframework.integration.ip.tcp.connection.support.TcpSocketSupport

postProcessSocket

public void postProcessSocket(java.net.Socket socket)
Specified by:
postProcessSocket in interface org.springframework.integration.ip.tcp.connection.support.TcpSocketSupport

getServerSocketPort

public int getServerSocketPort()
Description copied from interface: PortExposingTcpSocketSupport
Gets the binded server socket port.

Specified by:
getServerSocketPort in interface PortExposingTcpSocketSupport
Returns:
the server socket port

getServerSocketAddress

public java.lang.String getServerSocketAddress()
Description copied from interface: PortExposingTcpSocketSupport
Gets the binded server socket address.

Specified by:
getServerSocketAddress in interface PortExposingTcpSocketSupport
Returns:
the server socket address

Spring for Apache Hadoop