live.threads
Class WaitAction

java.lang.Object
  extended byjava.lang.Thread
      extended bylive.threads.ThreadedUserAction
          extended bylive.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


Nested Class Summary
 
Nested classes inherited from class live.threads.ThreadedUserAction
 
Field Summary
private  LinkedList tasks
           
private  int wait
           
 
Fields inherited from class live.threads.ThreadedUserAction
CANCELED, COMPLETE, done, ERROR, IN_PROGRESS, INDETERMINATE, PENDING
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
WaitAction(ThreadInitInfo connectionInfo, double secToLive)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

wait

private int wait

tasks

private LinkedList tasks
Constructor Detail

WaitAction

public WaitAction(ThreadInitInfo connectionInfo,
                  double secToLive)
Method Detail

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