Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.net
Class WrapperServerSocket

java.lang.Object
  extended by java.net.ServerSocket
      extended by com.tangosol.net.WrapperServerSocket


public class WrapperServerSocket
extends java.net.ServerSocket

Wrapper server socket which delegates all operations to a delegate socket.

Author:
jh/mf 2010.04.27

Field Summary
protected  java.net.ServerSocket m_delegate
          The delegate socket.

 

Constructor Summary
WrapperServerSocket(java.net.ServerSocket socket)
          Create a new ServerSocket that delegates all operations to the given server socket.

 

Method Summary
 java.net.Socket accept()
          
 void bind(java.net.SocketAddress endpoint)
          
 void bind(java.net.SocketAddress endpoint, int backlog)
          
 void close()
          
 java.nio.channels.ServerSocketChannel getChannel()
          
 java.net.InetAddress getInetAddress()
          
 int getLocalPort()
          
 java.net.SocketAddress getLocalSocketAddress()
          
 int getReceiveBufferSize()
          
 boolean getReuseAddress()
          
 int getSoTimeout()
          
 boolean isBound()
          
 boolean isClosed()
          
 void setPerformancePreferences(int nConnectionTime, int nLatency, int nBandwidth)
          
 void setReceiveBufferSize(int cb)
          
 void setReuseAddress(boolean fReuse)
          
 void setSoTimeout(int cSecs)
          
 java.lang.String toString()
          

 

Methods inherited from class java.net.ServerSocket
implAccept, setSocketFactory

 

Field Detail

m_delegate

protected final java.net.ServerSocket m_delegate
The delegate socket.

Constructor Detail

WrapperServerSocket

public WrapperServerSocket(java.net.ServerSocket socket)
                    throws java.io.IOException
Create a new ServerSocket that delegates all operations to the given server socket.
Parameters:
socket - the delegate server socket
Throws:
java.io.IOException - on error opening the socket

Method Detail

accept

public java.net.Socket accept()
                       throws java.io.IOException
Overrides:
accept in class java.net.ServerSocket
Throws:
java.io.IOException

bind

public void bind(java.net.SocketAddress endpoint)
          throws java.io.IOException
Overrides:
bind in class java.net.ServerSocket
Throws:
java.io.IOException

bind

public void bind(java.net.SocketAddress endpoint,
                 int backlog)
          throws java.io.IOException
Overrides:
bind in class java.net.ServerSocket
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.net.ServerSocket
Throws:
java.io.IOException

getChannel

public java.nio.channels.ServerSocketChannel getChannel()
Overrides:
getChannel in class java.net.ServerSocket

getInetAddress

public java.net.InetAddress getInetAddress()
Overrides:
getInetAddress in class java.net.ServerSocket

getLocalPort

public int getLocalPort()
Overrides:
getLocalPort in class java.net.ServerSocket

getLocalSocketAddress

public java.net.SocketAddress getLocalSocketAddress()
Overrides:
getLocalSocketAddress in class java.net.ServerSocket

getReceiveBufferSize

public int getReceiveBufferSize()
                         throws java.net.SocketException
Overrides:
getReceiveBufferSize in class java.net.ServerSocket
Throws:
java.net.SocketException

getReuseAddress

public boolean getReuseAddress()
                        throws java.net.SocketException
Overrides:
getReuseAddress in class java.net.ServerSocket
Throws:
java.net.SocketException

getSoTimeout

public int getSoTimeout()
                 throws java.io.IOException
Overrides:
getSoTimeout in class java.net.ServerSocket
Throws:
java.io.IOException

isBound

public boolean isBound()
Overrides:
isBound in class java.net.ServerSocket

isClosed

public boolean isClosed()
Overrides:
isClosed in class java.net.ServerSocket

setPerformancePreferences

public void setPerformancePreferences(int nConnectionTime,
                                      int nLatency,
                                      int nBandwidth)
Overrides:
setPerformancePreferences in class java.net.ServerSocket

setReceiveBufferSize

public void setReceiveBufferSize(int cb)
                          throws java.net.SocketException
Overrides:
setReceiveBufferSize in class java.net.ServerSocket
Throws:
java.net.SocketException

setReuseAddress

public void setReuseAddress(boolean fReuse)
                     throws java.net.SocketException
Overrides:
setReuseAddress in class java.net.ServerSocket
Throws:
java.net.SocketException

setSoTimeout

public void setSoTimeout(int cSecs)
                  throws java.net.SocketException
Overrides:
setSoTimeout in class java.net.ServerSocket
Throws:
java.net.SocketException

toString

public java.lang.String toString()
Overrides:
toString in class java.net.ServerSocket

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.