solar.service.fap
Class RemoteSinkChannel

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

public class RemoteSinkChannel
extends java.lang.Object
implements SinkChannel

The data sink of this channel is on a remote site.

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

Field Summary
protected  Address _addr
           
protected  InputPort _inport
           
protected  Id _pid
           
 
Constructor Summary
RemoteSinkChannel(Address addr, Id pid, InputPort inport)
          Constructs a remote channel with remote address and pipe ID (for sink).
 
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.
 Address getRemoteAddress()
          Return the address of remote source.
 InputPort getRemoteInputPort()
          Return the input port of the remote sink.
 Id getRemotePipeId()
          Return the ID of remote pipe.
 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

_addr

protected Address _addr

_pid

protected Id _pid

_inport

protected InputPort _inport
Constructor Detail

RemoteSinkChannel

public RemoteSinkChannel(Address addr,
                         Id pid,
                         InputPort inport)
Constructs a remote channel with remote address and pipe ID (for sink).

Method Detail

getRemoteAddress

public Address getRemoteAddress()
Return the address of remote source.


getRemotePipeId

public Id getRemotePipeId()
Return the ID of remote pipe.


getRemoteInputPort

public InputPort getRemoteInputPort()
Return the input port of the remote sink.


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