|
|||||||||||
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 Service
initDependents
in class BaseService
ServiceException
public void handleEvent(Event evt) throws java.lang.Exception
EventHandler
handleEvent
in interface EventHandler
handleEvent
in class BaseService
java.lang.Exception
public java.lang.Object handleRequest(Request req) throws java.lang.Exception
RequestHandler
handleRequest
in interface RequestHandler
handleRequest
in class BaseService
java.lang.Exception
public Id pconnect(Id pid, int type, DataSource source, OutputPort outport, DataSink sink, InputPort inport) throws FapException
FapService
pconnect
in interface FapService
FapException
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 FapService
FapException
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 FapService
FapException
public Pipe getPipe(Id pid)
FapService
getPipe
in interface FapService
public DispatchService getDispatchService()
FapService
getDispatchService
in interface FapService
public RpcService getRpcService(Id pid)
FapService
getRpcService
in interface FapService
public TransportService getTransportService(Id pid)
FapService
getTransportService
in interface FapService
protected void registerPipe(Id pid, Pipe pipe)
protected Id registerPipeId(Id pid) throws FapException
FapException
protected Id makePipeId()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |