Class URLDeployableMonitor
- java.lang.Object
-
- org.codehaus.cargo.util.log.LoggedObject
-
- org.codehaus.cargo.container.deployer.AbstractDeployableMonitor
-
- org.codehaus.cargo.container.deployer.URLDeployableMonitor
-
- All Implemented Interfaces:
DeployableMonitor,Loggable
public class URLDeployableMonitor extends AbstractDeployableMonitor
Monitor that verifies if aDeployableis deployed by pinging a URL provided by the user.
-
-
Constructor Summary
Constructors Constructor Description URLDeployableMonitor(URL pingURL)URLDeployableMonitor(URL pingURL, long timeout)URLDeployableMonitor(URL pingURL, long timeout, String contains)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDeployableName()voidmonitor()Check the deployment status of the associatedDeployableand tell the registeredDeployableMonitorListenerabout the status.-
Methods inherited from class org.codehaus.cargo.container.deployer.AbstractDeployableMonitor
getTimeout, notifyListeners, registerListener
-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
-
-
-
-
Constructor Detail
-
URLDeployableMonitor
public URLDeployableMonitor(URL pingURL)
- Parameters:
pingURL- the URL to be pinged and which will tell when theDeployableis deployed
-
URLDeployableMonitor
public URLDeployableMonitor(URL pingURL, long timeout)
- Parameters:
pingURL- the URL to be pinged and which will tell when theDeployableis deployedtimeout- the timeout after which we stop monitoring the deployment
-
URLDeployableMonitor
public URLDeployableMonitor(URL pingURL, long timeout, String contains)
- Parameters:
pingURL- the URL to be pinged and which will tell when theDeployableis deployedtimeout- the timeout after which we stop monitoring the deploymentcontains- a string that must be contained
-
-
Method Detail
-
getDeployableName
public String getDeployableName()
- Returns:
- a string identifying the deployable that is monitored
-
monitor
public void monitor()
Check the deployment status of the associatedDeployableand tell the registeredDeployableMonitorListenerabout the status.
-
-