org.springframework.yarn.integration.support
Class DefaultPortExposingTcpSocketSupport
java.lang.Object
org.springframework.yarn.integration.support.DefaultPortExposingTcpSocketSupport
- All Implemented Interfaces:
- org.springframework.integration.ip.tcp.connection.TcpSocketSupport, PortExposingTcpSocketSupport
public class DefaultPortExposingTcpSocketSupport
- extends java.lang.Object
- implements PortExposingTcpSocketSupport
Implementation of org.springframework.integration.ip.tcp.connection.support.TcpSocketSupport
which extends its base functionality by catching socket information, like listen address and port.
- Author:
- Janne Valkealahti
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPortExposingTcpSocketSupport
public DefaultPortExposingTcpSocketSupport()
postProcessServerSocket
public void postProcessServerSocket(java.net.ServerSocket serverSocket)
- Specified by:
postProcessServerSocket
in interface org.springframework.integration.ip.tcp.connection.TcpSocketSupport
postProcessSocket
public void postProcessSocket(java.net.Socket socket)
- Specified by:
postProcessSocket
in interface org.springframework.integration.ip.tcp.connection.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