public class URLDeployableMonitor extends 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) |
URLDeployableMonitor(URL pingURL,
long timeout,
String contains) |
| 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. |
getLogger, setLoggerpublic 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 URLDeployableMonitor(URL pingURL, long timeout, String contains)
pingURL - the URL to be pinged and which will tell when the
Deployable is deployedtimeout - the timeout after which we stop monitoring the deploymentcontains - a string that must be containedpublic String getDeployableName()
getDeployableName in interface DeployableMonitorDeployableMonitor.getDeployableName()public void registerListener(DeployableMonitorListener listener)
Deployable.registerListener in interface DeployableMonitorlistener - the listener to registerDeployableMonitor.registerListener(DeployableMonitorListener)public void monitor()
DeployableMonitorDeployable and tell the registered
DeployableMonitorListener about the status.monitor in interface DeployableMonitorDeployableMonitor.monitor()public long getTimeout()
getTimeout in interface DeployableMonitorDeployableDeployableMonitor.getTimeout()Copyright © 2004-2013 Codehaus. All Rights Reserved.