public interface DeploymentEventListener
extends java.util.EventListener
A registered listener will receive all deployment events fired by the event sender. Listeners should look at the deployment event's state to see if they are interested in the specific deployment event.
For example, a listener on the deployment server that only wants to know when deployments complete should have a deploymentEvent() method that looks something like:
public void deploymentEvent (DeploymentEvent pEvent) { if (pEvent.getNewState() == pEvent.DEPLOYMENT_COMPLETE) { Sytem.out.println("Yippee! Deployment "+pEvent.getDeploymentID()+" is over!"); } }Listeners can interrupt the deployment upon receiving an event by calling interrupt() on the event.
DeploymentEvent
,
DeploymentEventSender
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Modifier and Type | Method and Description |
---|---|
void |
deploymentEvent(DeploymentEvent pEvent)
Method called on a deployment event.
|
static final java.lang.String CLASS_VERSION
void deploymentEvent(DeploymentEvent pEvent)