|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--solar.service.BaseService | +--solar.service.transport.BaseTransportService | +--solar.service.transport.PastryTransportService
Transport service using Pastry routing substrate.
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 |
protected int _port
protected java.lang.String _protocol
protected boolean _debug
protected boolean _serialize
Constructor Detail |
public PastryTransportService()
Method Detail |
public void init() throws ServiceException
Service
init
in interface Service
init
in class BaseService
ServiceException
private PastryTransport getPastryTransport(SocketAddress bootstrap) throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |