org.codehaus.cargo.container.deployer
Class URLDeployableMonitor
java.lang.Object
org.codehaus.cargo.util.log.LoggedObject
org.codehaus.cargo.container.deployer.URLDeployableMonitor
- All Implemented Interfaces:
- DeployableMonitor, Loggable
public class URLDeployableMonitor
- extends LoggedObject
- implements DeployableMonitor
Monitor that verifies if a Deployable
is
deployed by pinging a URL provided by the user.
- Version:
- $Id: URLDeployableMonitor.java 1705 2008-09-02 13:14:55Z adriana $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLDeployableMonitor
public URLDeployableMonitor(URL pingURL)
- Parameters:
pingURL
- the URL to be pinged and which will tell when the
Deployable
is deployed
URLDeployableMonitor
public URLDeployableMonitor(URL pingURL,
long timeout)
- Parameters:
pingURL
- the URL to be pinged and which will tell when the
Deployable
is deployedtimeout
- the timeout after which we stop monitoring the deployment
getDeployableName
public String getDeployableName()
-
- Specified by:
getDeployableName
in interface DeployableMonitor
- Returns:
- a string identifying the deployable that is monitored
- See Also:
DeployableMonitor.getDeployableName()
registerListener
public void registerListener(DeployableMonitorListener listener)
- Register a listener that we will warn about the deployment status of the associated
Deployable
.
- Specified by:
registerListener
in interface DeployableMonitor
- Parameters:
listener
- the listener to register- See Also:
DeployableMonitor.registerListener(DeployableMonitorListener)
monitor
public void monitor()
- Description copied from interface:
DeployableMonitor
- Check the deployment status of the associated
Deployable
and tell the registered
DeployableMonitorListener
about the status.
- Specified by:
monitor
in interface DeployableMonitor
- See Also:
DeployableMonitor.monitor()
getTimeout
public long getTimeout()
-
- Specified by:
getTimeout
in interface DeployableMonitor
- Returns:
- the timeout after which we stop monitoring the
Deployable
- See Also:
DeployableMonitor.getTimeout()
Copyright © 2004-2012 Codehaus. All Rights Reserved.