Class UrlPathDeployableMonitor
- java.lang.Object
-
- org.codehaus.cargo.util.log.LoggedObject
-
- org.codehaus.cargo.container.deployer.AbstractDeployableMonitor
-
- org.codehaus.cargo.container.deployer.UrlPathDeployableMonitor
-
- All Implemented Interfaces:
DeployableMonitor
,Loggable
public class UrlPathDeployableMonitor extends AbstractDeployableMonitor
Monitor that verifies if aDeployable
is deployed by pinging a URL constructed from URL path (provided by the user) and other parameters provided by container configuration.
-
-
Constructor Summary
Constructors Constructor Description UrlPathDeployableMonitor(Configuration configuration, String pingUrlPath)
UrlPathDeployableMonitor(Configuration configuration, String pingUrlPath, long timeout)
-
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
-
UrlPathDeployableMonitor
public UrlPathDeployableMonitor(Configuration configuration, String pingUrlPath)
- Parameters:
configuration
- container configurationpingUrlPath
- the URL path to be pinged and which will tell when theDeployable
is deployed
-
UrlPathDeployableMonitor
public UrlPathDeployableMonitor(Configuration configuration, String pingUrlPath, long timeout)
- Parameters:
configuration
- container configurationpingUrlPath
- the URL path to be pinged and which will tell when theDeployable
is deployedtimeout
- the timeout after which we stop monitoring the deployment
-
-
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.
-
-