|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object extended byjava.lang.Thread extended byptolemy.distributed.client.ClientThread
Thread that manages the interaction with the remote service. It is required to allow commands to be issued to the remote services in parallel. This threads prevent the main thread of execution to be blocked by the remote calls to the remote services. A synchronization mechanism to issue and access commands is provided by ThreadSynchronizer.
ThreadSynchronizer
| Field Summary | |
static int |
EXIT
Exit command. |
static int |
FIRE
Fire command. |
static int |
INITIALIZE
Initialize command. |
static int |
ITERATE
Iterate command. |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
ClientThread(ThreadSynchronizer synchr,
net.jini.core.lookup.ServiceItem serv)
Construct a ClientThread with a given ThreadSynchronizer and a given service. |
|
| Method Summary | |
net.jini.core.lookup.ServiceItem |
getService()
Return the service that this ClientThread controls. |
void |
run()
Runs the thread. |
void |
setIterationCount(int iterationC)
Specify the number of times that the iteration command is to be performed. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int EXIT
public static final int INITIALIZE
public static final int FIRE
public static final int ITERATE
| Constructor Detail |
public ClientThread(ThreadSynchronizer synchr, net.jini.core.lookup.ServiceItem serv)
synchr - A ThreadSynchronizer.serv - The service corresponding to the remote service that the
Client Thread represents.| Method Detail |
public net.jini.core.lookup.ServiceItem getService()
public void run()
public void setIterationCount(int iterationC)
iterationC - Number of times the iteration has to be performed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||