public class ClientThread
extends java.lang.Thread
ThreadSynchronizer
Modifier and Type | Field and Description |
---|---|
static int |
EXIT
Exit command.
|
static int |
FIRE
Fire command.
|
static int |
INITIALIZE
Initialize command.
|
static int |
ITERATE
Iterate command.
|
Constructor and Description |
---|
ClientThread(ThreadSynchronizer synchr,
net.jini.core.lookup.ServiceItem serv)
Construct a ClientThread with a given ThreadSynchronizer and a given
service.
|
Modifier and Type | Method and Description |
---|---|
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.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public static final int EXIT
public static final int INITIALIZE
public static final int FIRE
public static final int ITERATE
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.public net.jini.core.lookup.ServiceItem getService()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void setIterationCount(int iterationC)
iterationC
- Number of times the iteration has to be performed.