org.smartcomps.twister.engine.priv.timer
Class EngineTimer

java.lang.Object
  |
  +--org.smartcomps.twister.engine.priv.timer.EngineTimer
All Implemented Interfaces:
LifecycleAwareResource

public class EngineTimer
extends java.lang.Object
implements LifecycleAwareResource

A synchronized static timer that should be used by all instances of the Process Engine to schedule its tasks.


Field Summary
static java.util.Timer timer
           
 
Constructor Summary
EngineTimer()
           
 
Method Summary
static void cancelTaskFor(java.lang.Long ecId)
           
 void create()
           
 void destroy()
           
static void schedule(org.smartcomps.twister.engine.priv.timer.ExecutionContextTask task, java.util.Date time)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timer

public static java.util.Timer timer
Constructor Detail

EngineTimer

public EngineTimer()
Method Detail

schedule

public static void schedule(org.smartcomps.twister.engine.priv.timer.ExecutionContextTask task,
                            java.util.Date time)

cancelTaskFor

public static void cancelTaskFor(java.lang.Long ecId)

create

public void create()
            throws LifecycleException
Specified by:
create in interface LifecycleAwareResource
LifecycleException

start

public void start()
           throws LifecycleException
Specified by:
start in interface LifecycleAwareResource
LifecycleException

stop

public void stop()
          throws LifecycleException
Specified by:
stop in interface LifecycleAwareResource
LifecycleException

destroy

public void destroy()
             throws LifecycleException
Specified by:
destroy in interface LifecycleAwareResource
LifecycleException


Copyright © 2003 SmartComps. All Rights Reserved.