org.tynamo.watchdog.services
Class WatchdogServiceImpl

java.lang.Object
  extended by org.tynamo.watchdog.services.WatchdogServiceImpl
All Implemented Interfaces:
WatchdogService

@EagerLoad
public class WatchdogServiceImpl
extends Object
implements WatchdogService


Constructor Summary
WatchdogServiceImpl(org.slf4j.Logger logger, boolean productionMode, String appPackageName, String smtpHost, Integer smtpPort, String sendEmail, long keepAliveInterval, long finalAlarmDelay)
           
 
Method Summary
 void alarmWatchdog()
           
 void dismissWatchdog()
           
 void startWatchdog()
           
 String whoAmI()
          Figures out the URL of war.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.