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 Summary
Constructors Constructor Description DeployerWatchdog(DeployableMonitor monitor)
-
Method Summary
All 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.LoggedObject
getLogger, setLogger
-
-
-
-
Constructor Detail
-
DeployerWatchdog
public DeployerWatchdog(DeployableMonitor monitor)
- Parameters:
monitor- the monitor to use to monitor theDeployablebeing deployed
-
-
Method Detail
-
deployed
public void deployed()
TheDeployablehas finished deploying.- Specified by:
deployedin interfaceDeployableMonitorListener
-
undeployed
public void undeployed()
TheDeployablehas finished undeploying.- Specified by:
undeployedin interfaceDeployableMonitorListener
-
watchForAvailability
public void watchForAvailability()
Wait till the monitored Deployable is made available or throw an exception if the timeout period is reached. Equivalent towatch(true).
-
watchForUnavailability
public void watchForUnavailability()
Wait till the monitored Deployable is made unavailable or throw an exception if the timeout period is reached. Equivalent towatch(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
-
-