solar.service.fap
Class RemoteSourceChannel

java.lang.Object
  |
  +--solar.service.fap.RemoteSourceChannel
All Implemented Interfaces:
SourceChannel

class RemoteSourceChannel
extends java.lang.Object
implements SourceChannel

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

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

Field Summary
protected  Address _addr
           
protected  OutputPort _outport
           
protected  Id _pid
           
 
Constructor Summary
RemoteSourceChannel(Address addr, Id pid, OutputPort outport)
          Constructs a remote channel with remote address and pipe ID (for source).
 
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.
 Address getRemoteAddress()
          Return the address of remote source.
 OutputPort getRemoteOutputPort()
          Return the output port of the remote source.
 Id getRemotePipeId()
          Return the ID of remote pipe.
 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).
 
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

_outport

protected OutputPort _outport
Constructor Detail

RemoteSourceChannel

public RemoteSourceChannel(Address addr,
                           Id pid,
                           OutputPort outport)
Constructs a remote channel with remote address and pipe ID (for source).

Method Detail

getRemoteAddress

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


getRemotePipeId

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


getRemoteOutputPort

public OutputPort getRemoteOutputPort()
Return the output port of the remote source.


isRemote

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

Specified by:
isRemote in interface SourceChannel

attachDataSource

public void attachDataSource(DataSource source,
                             OutputPort outport)
                      throws FapException
Description copied from interface: SourceChannel
Attach a data source to this pipe.

Specified by:
attachDataSource in interface SourceChannel
FapException

getDataSource

public DataSource getDataSource()
                         throws FapException
Description copied from interface: SourceChannel
Return the data source of this pipe.

Specified by:
getDataSource in interface SourceChannel
FapException

getOutputPort

public OutputPort getOutputPort()
                         throws FapException
Description copied from interface: SourceChannel
Return the output port of connected data source.

Specified by:
getOutputPort in interface SourceChannel
FapException

pullData

public java.lang.Object pullData(java.lang.Object query)
                          throws FapException
Description copied from interface: SourceChannel
Pull the data from upstream filter (data source).

Specified by:
pullData in interface SourceChannel
FapException