Class DeployerWatchdog
- java.lang.Object
- 
- org.codehaus.cargo.util.log.LoggedObject
- 
- org.codehaus.cargo.container.spi.deployer.DeployerWatchdog
 
 
- 
- All Implemented Interfaces:
- DeployableMonitorListener,- Loggable
 
 public class DeployerWatchdog extends LoggedObject implements DeployableMonitorListener Wait for a deployable to be deployed.
- 
- 
Constructor SummaryConstructors Constructor Description DeployerWatchdog(DeployableMonitor monitor)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeployed()TheDeployablehas finished deploying.voidundeployed()TheDeployablehas finished undeploying.voidwatch(boolean shouldWatchForAvailability)voidwatchForAvailability()Wait till the monitored Deployable is made available or throw an exception if the timeout period is reached.voidwatchForUnavailability()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.LoggedObjectgetLogger, setLogger
 
- 
 
- 
- 
- 
Constructor Detail- 
DeployerWatchdogpublic DeployerWatchdog(DeployableMonitor monitor) - Parameters:
- monitor- the monitor to use to monitor the- Deployablebeing deployed
 
 
- 
 - 
Method Detail- 
deployedpublic void deployed() TheDeployablehas finished deploying.- Specified by:
- deployedin interface- DeployableMonitorListener
 
 - 
undeployedpublic void undeployed() TheDeployablehas finished undeploying.- Specified by:
- undeployedin interface- DeployableMonitorListener
 
 - 
watchForAvailabilitypublic void watchForAvailability() Wait till the monitored Deployable is made available or throw an exception if the timeout period is reached. Equivalent towatch(true).
 - 
watchForUnavailabilitypublic void watchForUnavailability() Wait till the monitored Deployable is made unavailable or throw an exception if the timeout period is reached. Equivalent towatch(false).
 - 
watchpublic void watch(boolean shouldWatchForAvailability) - Parameters:
- shouldWatchForAvailability- if true then wait till Deployable is made available, if false wait till the Deployable is made unavailable
 
 
- 
 
-