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

Quick Search    Search Deep

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

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

class CmsCronScheduleJobStarter
extends java.lang.Thread

This class starts all needed jobs for the current time.


Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  java.util.Calendar m_lastRun
          The time of the last run
private  A_OpenCms m_opencms
          OpenCms to get access to the system
private  CmsCronTable m_table
          The crontable to use
private  java.util.Calendar m_thisRun
          The time of this run
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
(package private) CmsCronScheduleJobStarter(A_OpenCms opencms, CmsCronTable table, java.util.Calendar thisRun, java.util.Calendar lastRun)
          Creates a new instance of CmsCronScheduleJobStarter.
 
Method Summary
 void run()
          The run method of this thread tests all entries, if they should be started.
 
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_thisRun

private java.util.Calendar m_thisRun
The time of this run


m_lastRun

private java.util.Calendar m_lastRun
The time of the last run


m_opencms

private A_OpenCms m_opencms
OpenCms to get access to the system

Constructor Detail

CmsCronScheduleJobStarter

CmsCronScheduleJobStarter(A_OpenCms opencms,
                          CmsCronTable table,
                          java.util.Calendar thisRun,
                          java.util.Calendar lastRun)
Creates a new instance of CmsCronScheduleJobStarter.

Method Detail

run

public void run()
The run method of this thread tests all entries, if they should be started. If so it tries to start the entry via A_OpenCms.startScheduleJob()