org.apache.jetspeed.aggregator.impl
Class CommonjWorkerMonitorImpl.CommonjWorkerRenderingJobTimeoutMonitor

java.lang.Object
  extended by java.lang.Thread
      extended by org.apache.jetspeed.aggregator.impl.CommonjWorkerMonitorImpl.CommonjWorkerRenderingJobTimeoutMonitor
All Implemented Interfaces:
Runnable
Enclosing class:
CommonjWorkerMonitorImpl

 class CommonjWorkerMonitorImpl.CommonjWorkerRenderingJobTimeoutMonitor
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  long interval
           
(package private)  boolean shouldRun
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CommonjWorkerMonitorImpl.CommonjWorkerRenderingJobTimeoutMonitor(long interval)
           
 
Method Summary
 void endThread()
          Thread.stop() is deprecated.
 void killJobWork(CommonjWorkerMonitorImpl.RenderingJobCommonjWork jobWork)
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

interval

long interval

shouldRun

boolean shouldRun
Constructor Detail

CommonjWorkerMonitorImpl.CommonjWorkerRenderingJobTimeoutMonitor

CommonjWorkerMonitorImpl.CommonjWorkerRenderingJobTimeoutMonitor(long interval)
Method Detail

endThread

public void endThread()
Thread.stop() is deprecated. This method achieves the same by setting the run varaible "shouldRun" to false and interrupting the Thread, effectively causing the thread to shutdown correctly.


run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

killJobWork

public void killJobWork(CommonjWorkerMonitorImpl.RenderingJobCommonjWork jobWork)


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.