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 void
deployed()
TheDeployable
has finished deploying.void
undeployed()
TheDeployable
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
-
-
-
-
Constructor Detail
-
DeployerWatchdog
public DeployerWatchdog(DeployableMonitor monitor)
- Parameters:
monitor
- the monitor to use to monitor theDeployable
being deployed
-
-
Method Detail
-
deployed
public void deployed()
TheDeployable
has finished deploying.- Specified by:
deployed
in interfaceDeployableMonitorListener
-
undeployed
public void undeployed()
TheDeployable
has finished undeploying.- Specified by:
undeployed
in 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
-
-