|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.timer.TimerManager
public class TimerManager
The timer manager is the service controlling the timer executions.
Constructor Summary | |
---|---|
TimerManager()
|
Method Summary | |
---|---|
boolean |
isRunning()
Ask the object if it has been started |
void |
reconfigure()
Reschedule the timers after some properties of a timer has been changed. |
static void |
resetExceptions(com.groiss.timer.impl.TimerEntry tEntry)
Empty the list of sent exceptions. |
void |
showQueue(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Shows a list of the timers that are scheduled. |
void |
shutdown()
This method is called on shutdown. |
void |
startup()
This method is called when the object is "started". |
static void |
timerException(TimerEntry tEntry,
Persistent so,
java.lang.String message,
java.lang.Throwable e)
This method is for exception handling in a timer task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimerManager()
Method Detail |
---|
public void startup()
Lifecycle
startup
in interface Lifecycle
public void shutdown()
Lifecycle
shutdown
in interface Lifecycle
public boolean isRunning()
Service
isRunning
in interface Service
public void reconfigure()
reconfigure
in interface Service
public void showQueue(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
java.lang.Exception
public static void resetExceptions(com.groiss.timer.impl.TimerEntry tEntry)
public static void timerException(TimerEntry tEntry, Persistent so, java.lang.String message, java.lang.Throwable e)
tEntry
- the timer entry.so
- a context objectmessage
- the error messagee
- the excpetion you want to report.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |