Class AbstractDeployableMonitor
- java.lang.Object
-
- org.codehaus.cargo.util.log.LoggedObject
-
- org.codehaus.cargo.container.deployer.AbstractDeployableMonitor
-
- All Implemented Interfaces:
DeployableMonitor
,Loggable
- Direct Known Subclasses:
URLDeployableMonitor
,UrlPathDeployableMonitor
public abstract class AbstractDeployableMonitor extends LoggedObject implements DeployableMonitor
Common properties and configuration for deployable monitors.
-
-
Constructor Summary
Constructors Constructor Description AbstractDeployableMonitor()
Constructor with default 20s timeout.AbstractDeployableMonitor(long timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getTimeout()
protected void
notifyListeners(boolean isDeployed)
Notify listeners that deployable is deployed/undeployed.void
registerListener(DeployableMonitorListener listener)
Register a listener that we will warn about the deployment status of the associatedDeployable
.-
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.container.deployer.DeployableMonitor
getDeployableName, monitor
-
-
-
-
Method Detail
-
registerListener
public void registerListener(DeployableMonitorListener listener)
Register a listener that we will warn about the deployment status of the associatedDeployable
.- Specified by:
registerListener
in interfaceDeployableMonitor
- Parameters:
listener
- the listener to register
-
notifyListeners
protected void notifyListeners(boolean isDeployed)
Notify listeners that deployable is deployed/undeployed.- Parameters:
isDeployed
- True is deployable is deployed, false otherwise.
-
getTimeout
public long getTimeout()
- Specified by:
getTimeout
in interfaceDeployableMonitor
- Returns:
- the timeout after which we stop monitoring the
Deployable
-
-