|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--solar.service.BaseService
|
+--solar.service.fap.FapClientService
Implementation of Filter-and-Pipe (FAP) service.
| Field Summary | |
protected java.util.List |
_clients
|
protected DispatchService |
_dispatch
|
protected org.apache.log4j.Logger |
_log
|
protected java.util.Hashtable |
_pipes
|
protected RpcService |
_rpc
|
protected TransportService |
_transport
|
| Fields inherited from class solar.service.BaseService |
_inited, _manager, _name |
| Constructor Summary | |
FapClientService()
|
|
| Method Summary | |
DispatchService |
getDispatchService()
Return the dispatch service. |
Pipe |
getPipe(Id pid)
Return a pipe given its ID. |
RpcService |
getRpcService(Id pid)
Return the RPC service used by a particular pipe. |
TransportService |
getTransportService(Id pid)
Return the transport service used by a particular pipe. |
void |
handleEvent(Event evt)
Processing an event. |
java.lang.Object |
handleRequest(Request req)
Processing a request. |
void |
initDependents()
Initialize dependent services here. |
protected Id |
makePipeId()
|
Id |
pconnect(Id pid,
int type,
Address raddr,
Id rpid,
OutputPort outport,
DataSink sink,
InputPort inport,
boolean client)
Setup a pipe that has a remote source. |
Id |
pconnect(Id pid,
int type,
DataSource source,
OutputPort outport,
Address raddr,
Id rpid,
InputPort inport,
boolean client)
Setup a pipe that has a remote sink. |
Id |
pconnect(Id pid,
int type,
DataSource source,
OutputPort outport,
DataSink sink,
InputPort inport)
Setup a local pipe and return the pipe ID. |
protected void |
registerPipe(Id pid,
Pipe pipe)
|
protected Id |
registerPipeId(Id pid)
|
| Methods inherited from class solar.service.BaseService |
assertInited, getDependentService, getName, getServiceManager, handleDispatchUnit, handleEvent, hasInited, init, 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, init, setName, setServiceManager, start, stop |
| Field Detail |
protected org.apache.log4j.Logger _log
protected DispatchService _dispatch
protected RpcService _rpc
protected TransportService _transport
protected java.util.Hashtable _pipes
protected java.util.List _clients
| Constructor Detail |
public FapClientService()
| Method Detail |
public void initDependents()
throws ServiceException
Service
initDependents in interface ServiceinitDependents in class BaseServiceServiceException
public void handleEvent(Event evt)
throws java.lang.Exception
EventHandler
handleEvent in interface EventHandlerhandleEvent in class BaseServicejava.lang.Exception
public java.lang.Object handleRequest(Request req)
throws java.lang.Exception
RequestHandler
handleRequest in interface RequestHandlerhandleRequest in class BaseServicejava.lang.Exception
public Id pconnect(Id pid,
int type,
DataSource source,
OutputPort outport,
DataSink sink,
InputPort inport)
throws FapException
FapService
pconnect in interface FapServiceFapException
public Id pconnect(Id pid,
int type,
Address raddr,
Id rpid,
OutputPort outport,
DataSink sink,
InputPort inport,
boolean client)
throws FapException
FapService
pconnect in interface FapServiceFapException
public Id pconnect(Id pid,
int type,
DataSource source,
OutputPort outport,
Address raddr,
Id rpid,
InputPort inport,
boolean client)
throws FapException
FapService
pconnect in interface FapServiceFapExceptionpublic Pipe getPipe(Id pid)
FapService
getPipe in interface FapServicepublic DispatchService getDispatchService()
FapService
getDispatchService in interface FapServicepublic RpcService getRpcService(Id pid)
FapService
getRpcService in interface FapServicepublic TransportService getTransportService(Id pid)
FapService
getTransportService in interface FapService
protected void registerPipe(Id pid,
Pipe pipe)
protected Id registerPipeId(Id pid)
throws FapException
FapExceptionprotected Id makePipeId()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||