org.codehaus.cargo.container.deployer
Interface DeployableMonitor

All Superinterfaces:
org.codehaus.cargo.util.log.Loggable
All Known Implementing Classes:
URLDeployableMonitor

public interface DeployableMonitor
extends org.codehaus.cargo.util.log.Loggable

Monitor the deployment status of a Deployable.

Version:
$Id: DeployableMonitor.java 1093 2006-07-18 08:08:36Z vmassol $

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 interface org.codehaus.cargo.util.log.Loggable
getLogger, setLogger
 

Method Detail

getDeployableName

java.lang.String getDeployableName()
Returns:
a string identifying the deployable that is monitored

registerListener

void registerListener(DeployableMonitorListener listener)
Register a listener that we will warn about the deployment status of the associated Deployable.

Parameters:
listener - the listener to register

monitor

void monitor()
Check the deployment status of the associated Deployable and tell the registered DeployableMonitorListener about the status.


getTimeout

long getTimeout()
Returns:
the timeout after which we stop monitoring the Deployable


Copyright © 2004-2009 Codehaus. All Rights Reserved.