live.threads
Class WaitAction
java.lang.Object
java.lang.Thread
live.threads.ThreadedUserAction
live.threads.WaitAction
- All Implemented Interfaces:
- Runnable
- public class WaitAction
- extends ThreadedUserAction
This class was created solely for testing purposes, and is essentially useless for anything but that
Method Summary |
String |
description()
This method returns a friendly description of the action the object
represents. |
Object |
rawResult()
This returns the result of the call in a manner that is defined by the
subclass. |
String |
result()
This returns the result in some manner or other. |
protected void |
runImpl()
This function should be implemented to do whatever task the class was
created to do. |
Methods inherited from class live.threads.ThreadedUserAction |
getCache, getException, getID, getStatus, getTimeFinished, getTimeStarted, init, init, isFinished, run, setCanceled, setComplete, setError, setError, setIndeterminate, setIndeterminate, setInProgress, startJoinForever, startJoinTimeout, startNoJoin, toString |
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, yield |
wait
private int wait
tasks
private LinkedList tasks
WaitAction
public WaitAction(ThreadInitInfo connectionInfo,
double secToLive)
runImpl
protected void runImpl()
- Description copied from class:
ThreadedUserAction
- This function should be implemented to do whatever task the class was
created to do. You shouldn't call this function yourself; it's called
automatically by
ThreadedUserAction.run()
. (But you probably shouldn't call
ThreadedUserAction.run()
yourself either.)
- Specified by:
runImpl
in class ThreadedUserAction
- See Also:
ThreadedUserAction.run()
description
public String description()
- Description copied from class:
ThreadedUserAction
- This method returns a friendly description of the action the object
represents. Unlike the
ThreadedUserAction.toString()
method, this is meant to be
used in, for example, the status page and anywhere else where the end
user will see it.
- Specified by:
description
in class ThreadedUserAction
- Returns:
- A human-readable summary of the action being performed
- See Also:
ThreadedUserAction.toString()
result
public String result()
- Description copied from class:
ThreadedUserAction
- This returns the result in some manner or other. It should be suitable
for display in the status page. May return HTML that can appear as the
child of TD tags.
- Overrides:
result
in class ThreadedUserAction
- Returns:
- String result
rawResult
public Object rawResult()
- Description copied from class:
ThreadedUserAction
- This returns the result of the call in a manner that is defined by the
subclass. It should probably simply pass through the return value from
the ZVMTasks call.
- Specified by:
rawResult
in class ThreadedUserAction
- Returns:
- The result of the action. (See subclasses for individual
definitions.)
Copyright © 2005