solar.service.fap
Interface SourceChannel

All Known Implementing Classes:
LocalSourceChannel, RemoteSourceChannel

public interface SourceChannel

A source channel is for filter to receive data.

Version:
$Id: SourceChannel.java,v 1.6 2003/07/30 19:44:10 glchen Exp $
Author:
Guanling Chen

Method Summary
 void attachDataSource(DataSource source, OutputPort outport)
          Attach a data source to this pipe.
 DataSource getDataSource()
          Return the data source of this pipe.
 OutputPort getOutputPort()
          Return the output port of connected data source.
 boolean isRemote()
          Return whether the source is on remote site.
 java.lang.Object pullData(java.lang.Object query)
          Pull the data from upstream filter (data source).
 

Method Detail

isRemote

public boolean isRemote()
Return whether the source is on remote site.


attachDataSource

public void attachDataSource(DataSource source,
                             OutputPort outport)
                      throws FapException
Attach a data source to this pipe.

FapException

getDataSource

public DataSource getDataSource()
                         throws FapException
Return the data source of this pipe.

FapException

getOutputPort

public OutputPort getOutputPort()
                         throws FapException
Return the output port of connected data source.

FapException

pullData

public java.lang.Object pullData(java.lang.Object query)
                          throws FapException
Pull the data from upstream filter (data source).

FapException