org.tynamo.watchdog.services
Class WatchdogServiceImpl
java.lang.Object
org.tynamo.watchdog.services.WatchdogServiceImpl
- All Implemented Interfaces:
- WatchdogService
@EagerLoad
public class WatchdogServiceImpl
- extends Object
- implements WatchdogService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WatchdogServiceImpl
public WatchdogServiceImpl(org.slf4j.Logger logger,
@Symbol(value="tapestry.production-mode")
boolean productionMode,
@Inject@Symbol(value="tapestry.app-package")
String appPackageName,
@Inject@Symbol(value="smtp.host")
String smtpHost,
@Symbol(value="smtp.port")
Integer smtpPort,
@Inject@Symbol(value="watchdog.sendemail")
String sendEmail,
@Inject@Symbol(value="watchdog.keepalive")
long keepAliveInterval,
@Inject@Symbol(value="watchdog.alarmdelay")
long finalAlarmDelay)
throws IOException,
URISyntaxException,
InterruptedException
- Throws:
IOException
URISyntaxException
InterruptedException
startWatchdog
public void startWatchdog()
throws IOException,
URISyntaxException,
InterruptedException
- Specified by:
startWatchdog in interface WatchdogService
- Throws:
IOException
URISyntaxException
InterruptedException
dismissWatchdog
public void dismissWatchdog()
throws IOException
- Specified by:
dismissWatchdog in interface WatchdogService
- Throws:
IOException
alarmWatchdog
public void alarmWatchdog()
throws IOException
- Specified by:
alarmWatchdog in interface WatchdogService
- Throws:
IOException
whoAmI
public String whoAmI()
throws IOException,
URISyntaxException
- Figures out the URL of war.
- Throws:
IOException
URISyntaxException
Copyright © 2004-2010. All Rights Reserved.