solar.service.transport
Class UdpTransportService

java.lang.Object
  |
  +--solar.service.BaseService
        |
        +--solar.service.transport.BaseTransportService
              |
              +--solar.service.transport.UdpTransportService
All Implemented Interfaces:
EventHandler, RequestHandler, Service, TransportConstants, TransportListener, TransportService

public class UdpTransportService
extends BaseTransportService
implements TransportConstants

Transport service that uses UDP, and requires a routing service.

Version:
$Id: UdpTransportService.java,v 1.21 2003/10/12 00:58:40 glchen Exp $
Author:
Guanling Chen

Field Summary
 
Fields inherited from class solar.service.transport.BaseTransportService
_aduFactory, _listeners, _log, _routing, _transport
 
Fields inherited from class solar.service.BaseService
_inited, _manager, _name
 
Fields inherited from interface solar.service.transport.TransportConstants
PASTRY_ADDRESS, SOCKET_ADDRESS, TRANSPORT_PASTRY_PORT, TRANSPORT_TCP_PORT, TRANSPORT_UDP_MSS, TRANSPORT_UDP_PORT
 
Constructor Summary
UdpTransportService()
           
 
Method Summary
 void init()
          Initiate the service, do not try to init dependent services here.
 void initDependents()
          Initialize dependent services here.
 
Methods inherited from class solar.service.transport.BaseTransportService
addTransportListener, connectionClosed, connectionOpened, dataReceived, getAddressByKey, getLocalAddress, getTransport, notifyDataReceived, removeTransportListener, send, send
 
Methods inherited from class solar.service.BaseService
assertInited, getDependentService, getName, getServiceManager, handleDispatchUnit, handleEvent, handleEvent, handleRequest, hasInited, init, setInited, setName, setServiceManager, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface solar.service.Service
getName, getServiceManager, handleDispatchUnit, hasInited, setName, setServiceManager, start, stop
 
Methods inherited from interface solar.api.EventHandler
handleEvent
 
Methods inherited from interface solar.api.RequestHandler
handleRequest
 

Constructor Detail

UdpTransportService

public UdpTransportService()
Method Detail

init

public void init()
          throws ServiceException
Description copied from interface: Service
Initiate the service, do not try to init dependent services here.

Specified by:
init in interface Service
Overrides:
init in class BaseService
ServiceException

initDependents

public void initDependents()
                    throws ServiceException
Description copied from interface: Service
Initialize dependent services here.

Specified by:
initDependents in interface Service
Overrides:
initDependents in class BaseService
ServiceException