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 aDeployable
is 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 String
getDeployableName()
void
monitor()
Check the deployment status of the associatedDeployable
and tell the registeredDeployableMonitorListener
about 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 theDeployable
is deployed
-
URLDeployableMonitor
public URLDeployableMonitor(URL pingURL, long timeout)
- Parameters:
pingURL
- the URL to be pinged and which will tell when theDeployable
is 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 theDeployable
is 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 associatedDeployable
and tell the registeredDeployableMonitorListener
about the status.
-
-