public class URLDeployableMonitor extends org.codehaus.cargo.util.log.LoggedObject implements DeployableMonitor
Deployable
is
deployed by pinging a URL provided by the user.Constructor and Description |
---|
URLDeployableMonitor(URL pingURL) |
URLDeployableMonitor(URL pingURL,
long timeout) |
Modifier and Type | Method and Description |
---|---|
String |
getDeployableName() |
long |
getTimeout() |
void |
monitor()
Check the deployment status of the associated
Deployable and tell the registered
DeployableMonitorListener about the status. |
void |
registerListener(DeployableMonitorListener listener)
Register a listener that we will warn about the deployment status of the associated
Deployable . |
public URLDeployableMonitor(URL pingURL)
pingURL
- the URL to be pinged and which will tell when the
Deployable
is deployedpublic URLDeployableMonitor(URL pingURL, long timeout)
pingURL
- the URL to be pinged and which will tell when the
Deployable
is deployedtimeout
- the timeout after which we stop monitoring the deploymentpublic String getDeployableName()
getDeployableName
in interface DeployableMonitor
DeployableMonitor.getDeployableName()
public void registerListener(DeployableMonitorListener listener)
Deployable
.registerListener
in interface DeployableMonitor
listener
- the listener to registerDeployableMonitor.registerListener(DeployableMonitorListener)
public void monitor()
DeployableMonitor
Deployable
and tell the registered
DeployableMonitorListener
about the status.monitor
in interface DeployableMonitor
DeployableMonitor.monitor()
public long getTimeout()
getTimeout
in interface DeployableMonitor
Deployable
DeployableMonitor.getTimeout()
Copyright © 2004-2013 Codehaus. All Rights Reserved.