|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester Proxy SDK Reference Project Version 2.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rational.test.ft.domain.NativeThreadChannel com.rational.test.ft.domain.ThreadChannel
public class ThreadChannel
Implements a channel that provides thread affinity to a GUI thread. Channels allow code to be run on a specific thread.
IChannel
Nested Class Summary | |
---|---|
static class |
ThreadChannel.ChannelRequestQueueFullException
|
static class |
ThreadChannel.ChannelSendFailureException
|
Constructor Summary | |
---|---|
ThreadChannel()
|
|
ThreadChannel(long threadId, long spyPort)
Creates a channel with a given threadId and a handle to the SpyPort . |
Method Summary | |
---|---|
long |
getThreadId()
|
boolean |
isAlive()
Is the channel still alive? That is, is the thread and underlying SpyPort still active? |
boolean |
isCurrentChannel()
Determines whether this channel is the current channel. |
boolean |
isUnresponsive()
|
void |
open()
Opens the channel. |
void |
post(ChannelRunnable runnable)
Sends a request to be executed asychronously on this channel. |
java.lang.Object |
send(ChannelRunnable request)
Sends a request to be executed sychronously on this channel. |
void |
setUnresponsive(boolean unresponsive)
Mark the channel as unresponsive, usually after a message times out. |
protected boolean |
waitForResponse(ChannelRunnable request)
|
Methods inherited from class com.rational.test.ft.domain.NativeThreadChannel |
---|
activate, getSpyport, isAlive, isUnresponsive, pumpSendMessages, setUnresponsive |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadChannel(long threadId, long spyPort)
threadId
and a handle to the SpyPort
.
This constructor is used by native code.
public ThreadChannel()
Method Detail |
---|
public long getThreadId()
public java.lang.Object send(ChannelRunnable request)
ChannelRunnable
abstract class. The desired code is placed in the send
method.
If an exception is thrown while executing on the channel, it is captured and rethrown.
send
in interface IChannel
ChannelRunnable
protected boolean waitForResponse(ChannelRunnable request)
public void post(ChannelRunnable runnable)
public boolean isCurrentChannel()
isCurrentChannel
in interface IChannel
true
when running on the current channel.public void open()
public boolean isUnresponsive()
public void setUnresponsive(boolean unresponsive)
IChannel
setUnresponsive
in interface IChannel
public boolean isAlive()
IChannel
isAlive
in interface IChannel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |