solar.service.fap
Class LocalSinkChannel

java.lang.Object
  |
  +--solar.service.fap.LocalSinkChannel
All Implemented Interfaces:
SinkChannel

public class LocalSinkChannel
extends java.lang.Object
implements SinkChannel

The data sink of this channel is on the local site.

Version:
$Id: LocalSinkChannel.java,v 1.5 2003/07/30 19:44:08 glchen Exp $
Author:
Guanling Chen

Field Summary
protected  InputPort _inport
           
protected  DataSink _sink
           
 
Constructor Summary
LocalSinkChannel()
          Constructs an empty sink channel.
LocalSinkChannel(DataSink sink, InputPort inport)
          Constructs a sink channel wit specified data source attached.
 
Method Summary
 void attachDataSink(DataSink sink, InputPort inport)
          Attach a data sink to this pipe.
 DataSink getDataSink()
          Return the data sink of this pipe.
 InputPort getInputPort()
          Return the input port of the connected sink.
 boolean isRemote()
          Return whether the sink is on remote site.
 void pushData(java.lang.Object data)
          Push the data to the downstream filter (data sink).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_sink

protected DataSink _sink

_inport

protected InputPort _inport
Constructor Detail

LocalSinkChannel

public LocalSinkChannel()
Constructs an empty sink channel.


LocalSinkChannel

public LocalSinkChannel(DataSink sink,
                        InputPort inport)
Constructs a sink channel wit specified data source attached.

Method Detail

isRemote

public boolean isRemote()
Description copied from interface: SinkChannel
Return whether the sink is on remote site.

Specified by:
isRemote in interface SinkChannel

attachDataSink

public void attachDataSink(DataSink sink,
                           InputPort inport)
                    throws FapException
Description copied from interface: SinkChannel
Attach a data sink to this pipe.

Specified by:
attachDataSink in interface SinkChannel
FapException

getDataSink

public DataSink getDataSink()
                     throws FapException
Description copied from interface: SinkChannel
Return the data sink of this pipe.

Specified by:
getDataSink in interface SinkChannel
FapException

getInputPort

public InputPort getInputPort()
                       throws FapException
Description copied from interface: SinkChannel
Return the input port of the connected sink.

Specified by:
getInputPort in interface SinkChannel
FapException

pushData

public void pushData(java.lang.Object data)
              throws FapException
Description copied from interface: SinkChannel
Push the data to the downstream filter (data sink).

Specified by:
pushData in interface SinkChannel
FapException