org.objectweb.dream.channel
Interface TCPAcceptSocketAttributeController

All Superinterfaces:
AttributeController
All Known Implementing Classes:
TCPAcceptSocketImpl

public interface TCPAcceptSocketAttributeController
extends AttributeController

Attribute controller for IP Accept Socket, It defines the listening port.


Field Summary
static int OPEN_RETRY_DEFAULT
          Default value of openRetry attribute.
 
Method Summary
 int getListeningPort()
          Returns the listening port.
 int getOpenRetry()
          Returns the number of attempts to open a ServerSocket before aborting.
 int getSoLinger()
          Returns the SO_LINGER parameter setted on created sockets.
 int getSoTimeout()
          Returns the SO_TIMEOUT parameter setted on created sockets.
 boolean getTcpNoDelay()
          Returns true if the Nagle's algorithm is disabled on created sockets.
 void setListeningPort(int port)
          Sets the listeningPort attribute's value.
 void setOpenRetry(int retry)
          Sets the openRetry attribute's value.
 void setSoLinger(int timeout)
          Sets the soLinger attribute's value.
 void setSoTimeout(int timeout)
          Sets the soTimeout attribute's value.
 void setTcpNoDelay(boolean tcpNoDelay)
          Sets the tcpNoDelay attribute's value.
 

Field Detail

OPEN_RETRY_DEFAULT

public static final int OPEN_RETRY_DEFAULT
Default value of openRetry attribute.

See Also:
Constant Field Values
Method Detail

getListeningPort

public int getListeningPort()
Returns the listening port.

Returns:
the listeningPort attribute's value.

setListeningPort

public void setListeningPort(int port)
                      throws IllegalLifeCycleException
Sets the listeningPort attribute's value.

Parameters:
port - the new listeningPort attribute's value.
Throws:
IllegalLifeCycleException - cannot change port number if the component is started.
See Also:
getListeningPort()

getOpenRetry

public int getOpenRetry()
Returns the number of attempts to open a ServerSocket before aborting.

Returns:
the openRetry attribute's value.

setOpenRetry

public void setOpenRetry(int retry)
Sets the openRetry attribute's value.

Parameters:
retry - the new openRetry attribute's value.
See Also:
getOpenRetry()

getTcpNoDelay

public boolean getTcpNoDelay()
Returns true if the Nagle's algorithm is disabled on created sockets.

Returns:
the tcpNoDelay attribute's value.
See Also:
Socket.setTcpNoDelay(boolean)

setTcpNoDelay

public void setTcpNoDelay(boolean tcpNoDelay)
Sets the tcpNoDelay attribute's value.

Parameters:
tcpNoDelay - the new tcpNoDelay attribute's value.
See Also:
getTcpNoDelay()

getSoTimeout

public int getSoTimeout()
Returns the SO_TIMEOUT parameter setted on created sockets.

Returns:
the soTimeout attribute's value.
See Also:
Socket.setSoTimeout(int)

setSoTimeout

public void setSoTimeout(int timeout)
Sets the soTimeout attribute's value.

Parameters:
timeout - the new soTimeout attribute's value.
See Also:
getSoTimeout()

getSoLinger

public int getSoLinger()
Returns the SO_LINGER parameter setted on created sockets. A negative value disable the linger on close.

Returns:
the soLinger attribute's value.
See Also:
Socket.setSoLinger(boolean, int)

setSoLinger

public void setSoLinger(int timeout)
Sets the soLinger attribute's value.

Parameters:
timeout - the new soLinger attribute's value.


Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.