solar.service.transport
Class PastryTransportService

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

public class PastryTransportService
extends BaseTransportService
implements TransportConstants

Transport service using Pastry routing substrate.

Version:
$Id: PastryTransportService.java,v 1.24 2003/10/12 00:58:39 glchen Exp $
Author:
Guanling Chen

Field Summary
protected  boolean _debug
           
protected  int _port
           
protected  java.lang.String _protocol
           
protected  boolean _serialize
           
 
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
PastryTransportService()
           
 
Method Summary
private  PastryTransport getPastryTransport(SocketAddress bootstrap)
          Return the instance of Pastry transport layer.
 void init()
          Initiate the service, do not try to init 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, initDependents, 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, initDependents, setName, setServiceManager, start, stop
 
Methods inherited from interface solar.api.EventHandler
handleEvent
 
Methods inherited from interface solar.api.RequestHandler
handleRequest
 

Field Detail

_port

protected int _port

_protocol

protected java.lang.String _protocol

_debug

protected boolean _debug

_serialize

protected boolean _serialize
Constructor Detail

PastryTransportService

public PastryTransportService()
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

getPastryTransport

private PastryTransport getPastryTransport(SocketAddress bootstrap)
                                    throws java.lang.Exception
Return the instance of Pastry transport layer.

java.lang.Exception