public class RegularlyBarkingWatchdog
extends java.util.TimerTask
Constructor and Description |
---|
RegularlyBarkingWatchdog(org.apache.log4j.Logger _log,
org.apache.log4j.Level _level,
java.lang.String _title,
java.lang.String _barkingText,
long _barkInterval)
Creates a new RegularlyBarkingWatchdog with the passed barkingText.
|
RegularlyBarkingWatchdog(org.apache.log4j.Logger _log,
java.lang.String _title,
java.lang.String _barkingText,
long _barkInterval)
Creates a new RegularlyBarkingWatchdog with the passed barkingText.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
TimerTask run-method which runs if the Timer of this watchdog was not cancelled.
|
void |
stop()
Marks this RegularlyBarkingWatchdog as cancelled by cancelling its Timer.
|
public RegularlyBarkingWatchdog(org.apache.log4j.Logger _log, java.lang.String _title, java.lang.String _barkingText, long _barkInterval)
_log
- the logger to bark into_title
- part for the name of the Timer that is scheduled_barkingText
- the text that the watchdog will bark regularly
unless it is canceled_barkInterval
- the interval in ms in which the watchdog will barkpublic RegularlyBarkingWatchdog(org.apache.log4j.Logger _log, org.apache.log4j.Level _level, java.lang.String _title, java.lang.String _barkingText, long _barkInterval)
_log
- the logger to bark into_level
- the volume of the barking, aka log level_title
- part for the name of the Timer that is scheduled_barkingText
- the text that the watchdog will bark regularly
unless it is canceled_barkInterval
- the interval in ms in which the watchdog will barkpublic void stop()
public void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
Copyright © 2000-2024 OAshi S.à r.l. All Rights Reserved.