public class DeployerWatchdog extends org.codehaus.cargo.util.log.LoggedObject implements DeployableMonitorListener
Constructor and Description |
---|
DeployerWatchdog(DeployableMonitor monitor) |
Modifier and Type | Method and Description |
---|---|
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.
|
public DeployerWatchdog(DeployableMonitor monitor)
monitor
- the monitor to use to monitor the
Deployable
being deployedpublic void deployed()
DeployableMonitorListener
Deployable
has finished deploying.deployed
in interface DeployableMonitorListener
DeployableMonitorListener.deployed()
public void undeployed()
DeployableMonitorListener
Deployable
has finished undeploying.undeployed
in interface DeployableMonitorListener
DeployableMonitorListener.undeployed()
public void watchForAvailability()
watch(true)
.public void watchForUnavailability()
watch(false)
.public void watch(boolean shouldWatchForAvailability)
shouldWatchForAvailability
- if true then wait till Deployable is made available, if
false wait till the Deployable is made unavailableCopyright © 2004-2013 Codehaus. All Rights Reserved.