Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.opencms.core
Class CmsCronScheduler  view CmsCronScheduler download CmsCronScheduler.java

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.opencms.core.CmsCronScheduler
All Implemented Interfaces:
java.lang.Runnable

class CmsCronScheduler
extends java.lang.Thread

This is the CronScheduler. It a deamon-thread that will be stopped after the system has stopped. It awaiks every minute and starts cronjobs at issue.


Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  boolean m_destroyed
          Flag to indicate if OpenCms has already been shut down
private  A_OpenCms m_opencms
          The A_OpenCms to get access to the system
private  CmsCronTable m_table
          The crontable to use
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
(package private) CmsCronScheduler(A_OpenCms opencms, CmsCronTable table)
          Constructs a new scheduler.
 
Method Summary
 void run()
          The run-method of this thread awakes every minute to launch jobs at issue.
 void shutDown()
          Shut down this instance of the CronScheduler Thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, 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

m_table

private CmsCronTable m_table
The crontable to use


m_opencms

private A_OpenCms m_opencms
The A_OpenCms to get access to the system


m_destroyed

private boolean m_destroyed
Flag to indicate if OpenCms has already been shut down

Constructor Detail

CmsCronScheduler

CmsCronScheduler(A_OpenCms opencms,
                 CmsCronTable table)
Constructs a new scheduler.

Method Detail

run

public void run()
The run-method of this thread awakes every minute to launch jobs at issue.


shutDown

public void shutDown()
Shut down this instance of the CronScheduler Thread.