com.arsdigita.cms.lifecycle
Class Scheduler

java.lang.Object
  extended bycom.arsdigita.cms.lifecycle.Scheduler

public class Scheduler
extends Object

Scheduler thread to fire all the events for the lifecycles or phases that have just began or ended.

Version:
$Revision: #19 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Jack Chung (flattop@arsdigita.com), Stanislav Freidin (stas@arsdigita.com), Michael Pih (pihman@arsdigita.com)

Field Summary
protected static long s_timerDelay
           
protected static long s_timerFrequency
           
static String versionId
           
 
Constructor Summary
Scheduler()
           
 
Method Summary
protected static void checkAndFire()
          Check which begin/end events to fire and then fire them.
protected static com.arsdigita.persistence.DataQuery getLifecycleEnd()
           
protected static com.arsdigita.persistence.DataQuery getLifecycleStart()
           
protected static com.arsdigita.persistence.DataQuery getPhaseEnd()
           
protected static com.arsdigita.persistence.DataQuery getPhaseStart()
           
static void run()
          run - Run the task
static void runTest()
          test run - Called in a test file and run only once
static void startTimer()
          startTimer - starts the timer
static void stopTimer()
          stopTimer - stops the timer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

s_timerDelay

protected static long s_timerDelay

s_timerFrequency

protected static long s_timerFrequency
Constructor Detail

Scheduler

public Scheduler()
Method Detail

startTimer

public static void startTimer()
startTimer - starts the timer


stopTimer

public static void stopTimer()
stopTimer - stops the timer. Should only be called when the server is shutdown.


checkAndFire

protected static void checkAndFire()
Check which begin/end events to fire and then fire them.


run

public static void run()
run - Run the task


runTest

public static void runTest()
test run - Called in a test file and run only once


getLifecycleStart

protected static com.arsdigita.persistence.DataQuery getLifecycleStart()

getLifecycleEnd

protected static com.arsdigita.persistence.DataQuery getLifecycleEnd()

getPhaseStart

protected static com.arsdigita.persistence.DataQuery getPhaseStart()

getPhaseEnd

protected static com.arsdigita.persistence.DataQuery getPhaseEnd()


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2352 UTC