org.apache.jetspeed.aggregator.impl
Class WorkerMonitorImpl.RenderingJobTimeoutMonitor

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

 class WorkerMonitorImpl.RenderingJobTimeoutMonitor
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
WorkerMonitorImpl.RenderingJobTimeoutMonitor(long interval)
           
 
Method Summary
 void endThread()
          Thread.stop() is deprecated.
 void killJob(WorkerImpl worker, org.apache.jetspeed.aggregator.RenderingJob job)
           
 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

WorkerMonitorImpl.RenderingJobTimeoutMonitor

WorkerMonitorImpl.RenderingJobTimeoutMonitor(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

killJob

public void killJob(WorkerImpl worker,
                    org.apache.jetspeed.aggregator.RenderingJob job)


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