IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester Proxy SDK Reference

Project Version 2.3

com.rational.test.ft.domain
Class BaseChannel

java.lang.Object   extended by com.rational.test.ft.domain.BaseChannel
All Implemented Interfaces:
IChannel

public class BaseChannel
extends java.lang.Object
implements IChannel

Provides a base channel implementation. Channels provide a means of executing code that requires thread affinity. A ChannelRunnable object is created and sent to the desired channel to be run. All channels must implement this interface.

Since:
RFT1.0

Constructor Summary
BaseChannel()
           
 
Method Summary
 boolean isAlive()
          Is the channel still alive? That is, is the thread and underlying SpyPort still active?
 boolean isCurrentChannel()
          Determines whether the recorder is currently executing on the thread associated with this channel.
 java.lang.Object send(ChannelRunnable runnable)
          Sends the request to be executed on this channel.
 void setUnresponsive(boolean unresponsive)
          Mark the channel as unresponsive, usually after a message times out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseChannel

public BaseChannel()
Method Detail

send

public java.lang.Object send(ChannelRunnable runnable)
Sends the request to be executed on this channel.

Specified by:
send in interface IChannel
Since:
RFT1.0

isCurrentChannel

public boolean isCurrentChannel()
Determines whether the recorder is currently executing on the thread associated with this channel.

Specified by:
isCurrentChannel in interface IChannel
Since:
RFT1.0

setUnresponsive

public void setUnresponsive(boolean unresponsive)
Description copied from interface: IChannel
Mark the channel as unresponsive, usually after a message times out.

Specified by:
setUnresponsive in interface IChannel

isAlive

public boolean isAlive()
Description copied from interface: IChannel
Is the channel still alive? That is, is the thread and underlying SpyPort still active?

Specified by:
isAlive in interface IChannel
Returns:
true channel still alive