org.codehaus.cargo.container.spi.deployer
Class DeployerWatchdog

java.lang.Object
  extended byorg.codehaus.cargo.util.log.LoggedObject
      extended byorg.codehaus.cargo.container.spi.deployer.DeployerWatchdog
All Implemented Interfaces:
DeployableMonitorListener, org.codehaus.cargo.util.log.Loggable

public class DeployerWatchdog
extends org.codehaus.cargo.util.log.LoggedObject
implements DeployableMonitorListener

Wait for a deployable to be deployed.

Version:
$Id: DeployerWatchdog.java 1206 2006-11-03 13:09:58Z vmassol $

Constructor Summary
DeployerWatchdog(DeployableMonitor monitor)
           
 
Method Summary
 void deployed()
          The Deployable has finished deploying.
 void undeployed()
          The Deployable has finished undeploying.
 void watch(boolean shouldWatchForAvailability)
           
 void watchForAvailability()
          Wait till the monitored Deployable is made available or throw an exception if the timeout period is reached.
 void watchForUnavailability()
          Wait till the monitored Deployable is made unavailable or throw an exception if the timeout period is reached.
 
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeployerWatchdog

public DeployerWatchdog(DeployableMonitor monitor)
Parameters:
monitor - the monitor to use to monitor the Deployable being deployed
Method Detail

deployed

public void deployed()
Description copied from interface: DeployableMonitorListener
The Deployable has finished deploying.

Specified by:
deployed in interface DeployableMonitorListener
See Also:
DeployableMonitorListener.deployed()

undeployed

public void undeployed()
Description copied from interface: DeployableMonitorListener
The Deployable has finished undeploying.

Specified by:
undeployed in interface DeployableMonitorListener
See Also:
DeployableMonitorListener.undeployed()

watchForAvailability

public void watchForAvailability()
Wait till the monitored Deployable is made available or throw an exception if the timeout period is reached. Equivalent to watch(true).


watchForUnavailability

public void watchForUnavailability()
Wait till the monitored Deployable is made unavailable or throw an exception if the timeout period is reached. Equivalent to watch(false).


watch

public void watch(boolean shouldWatchForAvailability)
Parameters:
shouldWatchForAvailability - if true then wait till Deployable is made available, if false wait till the Deployable is made unavailable


Copyright © 2004-2007 Codehaus. All Rights Reserved.