com.sun.jaw.impl.adaptor.udp
Class AdaptorServerImpl

java.lang.Object
  |
  +--com.sun.jaw.impl.adaptor.generic.AdaptorServer
        |
        +--com.sun.jaw.impl.adaptor.comm.AdaptorServerImpl
              |
              +--com.sun.jaw.impl.adaptor.udp.AdaptorServerImpl

public class AdaptorServerImpl
extends AdaptorServerImpl

This class implements the server part of the HTTP/UDP adaptor.

This class inherits most of its behaviour. It performs only UDP-specific tasks:

To receive data packets, the HTTP/UDP adaptor uses a buffer whose size can be configured using the property bufferSize (default value is 10240). Packets which does not fit the in buffer are rejected. Increasing bufferSize allows to exchange bigger packets. However the underlying networking system may impose a limit on the size of UDP packets. Packets bigger than this limit will be rejected too, no matter what the value of bufferSize is.

See Also:
AdaptorClient, Serialized Form

Fields inherited from class com.sun.jaw.impl.adaptor.generic.AdaptorServer
cmf, maxActiveClientCount, objectName, OFFLINE, ONLINE, port, STARTING, state, STOPPING
 
Constructor Summary
AdaptorServerImpl()
          Constructs an AdaptorServerImpl.
AdaptorServerImpl(int p)
          Constructs an AdaptorServerImpl.
 
Method Summary
 java.lang.Integer getBufferSize()
          Returns the buffer size of this AdaptorServerImpl.
 java.lang.String getProtocol()
          Returns the name of the protocol ("udp").
 void setBufferSize(java.lang.Integer s)
          Set the buffer size of this AdaptorServerImpl (default 10240).
 
Methods inherited from class com.sun.jaw.impl.adaptor.comm.AdaptorServerImpl
addUserAuthenticationInfo, getClassVersion, getLastConnectedClient, initCmf, isAuthenticationOn, performStop, removeUserAuthenticationInfo
 
Methods inherited from class com.sun.jaw.impl.adaptor.generic.AdaptorServer
addAdaptorListener, deleteCmf, getActiveClientCount, getMaxActiveClientCount, getPort, getServedClientCount, getState, getStateString, isActive, performStart, performWaitState, removeAdaptorListener, setMaxActiveClientCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdaptorServerImpl

public AdaptorServerImpl()
Constructs an AdaptorServerImpl.

Initializes this adaptor server with the default port (8083).


AdaptorServerImpl

public AdaptorServerImpl(int p)
Constructs an AdaptorServerImpl.

Initializes this adaptor server with the specified port.

Parameters:
p - The port number.
Method Detail

getProtocol

public java.lang.String getProtocol()
Returns the name of the protocol ("udp").
Returns:
The string "udp".
Overrides:
getProtocol in class AdaptorServer

getBufferSize

public java.lang.Integer getBufferSize()
Returns the buffer size of this AdaptorServerImpl.
Returns:
The adaptor server buffer size.

setBufferSize

public void setBufferSize(java.lang.Integer s)
Set the buffer size of this AdaptorServerImpl (default 10240).
Parameters:
s - The adaptor server buffer size.