Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


com.tangosol.net
Class WrapperServerSocket

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


public class WrapperServerSocket
extends ServerSocket

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

Author:
jh/mf 2010.04.27

Field Summary
protected  ServerSocket m_delegate
          The delegate socket.

 

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

 

Method Summary
 Socket accept()
          
 void bind(SocketAddress endpoint)
          
 void bind(SocketAddress endpoint, int backlog)
          
 void close()
          
 ServerSocketChannel getChannel()
          
 InetAddress getInetAddress()
          
 int getLocalPort()
          
 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)
          
 String toString()
          

 

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

 

Field Detail

m_delegate

protected final ServerSocket m_delegate
The delegate socket.

Constructor Detail

WrapperServerSocket

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

Method Detail

accept

public Socket accept()
              throws IOException
Overrides:
accept in class ServerSocket
Throws:
IOException

bind

public void bind(SocketAddress endpoint)
          throws IOException
Overrides:
bind in class ServerSocket
Throws:
IOException

bind

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

close

public void close()
           throws IOException
Overrides:
close in class ServerSocket
Throws:
IOException

getChannel

public ServerSocketChannel getChannel()
Overrides:
getChannel in class ServerSocket

getInetAddress

public InetAddress getInetAddress()
Overrides:
getInetAddress in class ServerSocket

getLocalPort

public int getLocalPort()
Overrides:
getLocalPort in class ServerSocket

getLocalSocketAddress

public SocketAddress getLocalSocketAddress()
Overrides:
getLocalSocketAddress in class ServerSocket

getReceiveBufferSize

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

getReuseAddress

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

getSoTimeout

public int getSoTimeout()
                 throws IOException
Overrides:
getSoTimeout in class ServerSocket
Throws:
IOException

isBound

public boolean isBound()
Overrides:
isBound in class ServerSocket

isClosed

public boolean isClosed()
Overrides:
isClosed in class ServerSocket

setPerformancePreferences

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

setReceiveBufferSize

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

setReuseAddress

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

setSoTimeout

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

toString

public String toString()
Overrides:
toString in class ServerSocket

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


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