|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.cargo.util.log.LoggedObject
org.codehaus.cargo.container.deployer.URLDeployableMonitor
public class URLDeployableMonitor
Monitor that verifies if a Deployable
is
deployed by pinging a URL provided by the user.
Constructor Summary | |
---|---|
URLDeployableMonitor(java.net.URL pingURL)
|
|
URLDeployableMonitor(java.net.URL pingURL,
long timeout)
|
Method Summary | |
---|---|
java.lang.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 . |
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject |
---|
getLogger, setLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.cargo.util.log.Loggable |
---|
getLogger, setLogger |
Constructor Detail |
---|
public URLDeployableMonitor(java.net.URL pingURL)
pingURL
- the URL to be pinged and which will tell when the
Deployable
is deployedpublic URLDeployableMonitor(java.net.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 deploymentMethod Detail |
---|
public java.lang.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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |