|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.TimerTask
dk.netarkivet.common.utils.LivenessLogger
public class LivenessLogger
This class logs lifesigns at level FINE every 2 minutes. This is implemented by using the Timer class.
This class is instantiated by ApplicationUtils.startApp().
Field Summary | |
---|---|
static long |
LIFESIGNS_FREQUENCY
The predefined frequency in milliseconds for this LivenessLogger. |
Constructor Summary | |
---|---|
LivenessLogger(java.lang.Class theClass)
The constructor for the LivenessLogger class. |
Method Summary | |
---|---|
void |
run()
This method writes a lifesign-logmessage to the log. |
Methods inherited from class java.util.TimerTask |
---|
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long LIFESIGNS_FREQUENCY
Constructor Detail |
---|
public LivenessLogger(java.lang.Class theClass)
theClass
- the class to log for.Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |