solar.service.fap
Interface FapService

All Superinterfaces:
EventHandler, RequestHandler, Service
All Known Implementing Classes:
FapClientService

public interface FapService
extends Service

A distributed service implementing Filter-and-Pipe (FAP) architectural pattern.

Version:
$Id: FapService.java,v 1.12 2003/10/05 18:50:57 glchen Exp $
Author:
Guanling Chen

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.
 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.
 
Methods inherited from interface solar.service.Service
getName, getServiceManager, handleDispatchUnit, hasInited, init, initDependents, setName, setServiceManager, start, stop
 
Methods inherited from interface solar.api.EventHandler
handleEvent
 
Methods inherited from interface solar.api.RequestHandler
handleRequest
 

Method Detail

pconnect

public Id pconnect(Id pid,
                   int type,
                   DataSource source,
                   OutputPort outport,
                   DataSink sink,
                   InputPort inport)
            throws FapException
Setup a local pipe and return the pipe ID. The parameter pid can be null and the method will return a generated ID for the pipe.

FapException

pconnect

public Id pconnect(Id pid,
                   int type,
                   Address raddr,
                   Id rpid,
                   OutputPort outport,
                   DataSink sink,
                   InputPort inport,
                   boolean client)
            throws FapException
Setup a pipe that has a remote source. The parameter pid can be null and the method will return a generated ID for the pipe.

FapException

pconnect

public Id pconnect(Id pid,
                   int type,
                   DataSource source,
                   OutputPort outport,
                   Address raddr,
                   Id rpid,
                   InputPort inport,
                   boolean client)
            throws FapException
Setup a pipe that has a remote sink. The parameter pid can be null and the method will return a generated ID for the pipe.

FapException

getPipe

public Pipe getPipe(Id pid)
Return a pipe given its ID.


getDispatchService

public DispatchService getDispatchService()
Return the dispatch service.


getRpcService

public RpcService getRpcService(Id pid)
Return the RPC service used by a particular pipe.


getTransportService

public TransportService getTransportService(Id pid)
Return the transport service used by a particular pipe.