|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--solar.service.BaseService | +--solar.service.dan.AbstractDanService
The abstract implementation (mostly dealing with clients) of DAN (Data Aggregation Network) service.
Field Summary | |
protected RpcService |
_coreRpc
|
protected TransportService |
_coreTransport
|
protected DirectoryService |
_directory
|
protected RpcService |
_edgeRpc
|
protected TransportService |
_edgeTransport
|
protected FapService |
_fap
|
protected Address |
_laddr
|
protected NodeManager |
_nodeman
|
protected SpecParser |
_parser
|
protected PipeConnector |
_pc
|
Fields inherited from class solar.service.BaseService |
_inited, _manager, _name |
Fields inherited from interface solar.service.dan.DanConstants |
DAN_INPORT, DAN_OUTPORT |
Fields inherited from interface solar.service.fap.FapConstants |
FAP_DATA, FAP_MIXED, FAP_PID, FAP_PULL, FAP_PUSH |
Constructor Summary | |
AbstractDanService()
|
Method Summary | |
private Guid |
advertise(AdvertiseRequest request)
|
DirectoryService |
getDirectoryService()
Get the directory service used by DAN. |
FapService |
getFapService()
Get the fap service used by DAN. |
Address |
getLocalAddress()
Return the local address of the resident Planet. |
NodeManager |
getNodeManager()
Return the node manager for this DAN service. |
RpcService |
getRpcService()
Get the rpc service used by DAN. |
java.lang.Object |
handleRequest(Request request)
Processing a request. |
void |
init()
Initiate the service, do not try to init dependent services here. |
void |
initDependents()
Initialize dependent services here. |
private Guid |
loadGraph(GraphSpec gs,
java.lang.String op)
|
private java.util.List |
lookup(LookupRequest request)
|
protected GraphManager |
makeGraphManager(GraphSpec gs)
|
Guid |
makeGuid()
Create a global unique ID. |
private Guid |
subscribe(SubscribeRequest request)
|
Methods inherited from class solar.service.BaseService |
assertInited, getDependentService, getName, getServiceManager, handleDispatchUnit, handleEvent, handleEvent, 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.dan.DanService |
connect |
Methods inherited from interface solar.service.Service |
getName, getServiceManager, handleDispatchUnit, hasInited, setName, setServiceManager, start, stop |
Methods inherited from interface solar.api.EventHandler |
handleEvent |
Field Detail |
protected FapService _fap
protected DirectoryService _directory
protected RpcService _coreRpc
protected RpcService _edgeRpc
protected TransportService _coreTransport
protected TransportService _edgeTransport
protected Address _laddr
protected PipeConnector _pc
protected NodeManager _nodeman
protected SpecParser _parser
Constructor Detail |
public AbstractDanService()
Method Detail |
public void init() throws ServiceException
Service
init
in interface Service
init
in class BaseService
ServiceException
public void initDependents() throws ServiceException
Service
initDependents
in interface Service
initDependents
in class BaseService
ServiceException
public java.lang.Object handleRequest(Request request) throws java.lang.Exception
RequestHandler
handleRequest
in interface RequestHandler
handleRequest
in class BaseService
java.lang.Exception
public Address getLocalAddress()
DanService
getLocalAddress
in interface DanService
public FapService getFapService()
DanService
getFapService
in interface DanService
public RpcService getRpcService()
DanService
getRpcService
in interface DanService
public DirectoryService getDirectoryService()
DanService
getDirectoryService
in interface DanService
public NodeManager getNodeManager()
DanService
getNodeManager
in interface DanService
public Guid makeGuid()
DanService
makeGuid
in interface DanService
protected GraphManager makeGraphManager(GraphSpec gs)
private java.util.List lookup(LookupRequest request) throws java.lang.Exception
java.lang.Exception
private Guid advertise(AdvertiseRequest request) throws java.lang.Exception
java.lang.Exception
private Guid subscribe(SubscribeRequest request) throws java.lang.Exception
java.lang.Exception
private Guid loadGraph(GraphSpec gs, java.lang.String op) throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |