|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.appserv.management.helper.DeployNotificationListener
public class DeployNotificationListener
A NotificationListener designed to listen to the DeploymentMgr
.
Note that Notifications are not guaranteed to be delivered in order. Thus, it is theoretically possible for a DEPLOYMENT_COMPLETED_NOTIFICATION_TYPE to be received before a DEPLOYMENT_STARTED_NOTIFICATION_TYPE.
A subclass may choose to override deploymentStarted(javax.management.Notification)
,
deploymentProgress(javax.management.Notification, com.sun.appserv.management.deploy.DeploymentProgress)
and
Constructor Summary | |
---|---|
DeployNotificationListener(DeploymentMgr deploymentMgr,
Object deployID)
|
Method Summary | |
---|---|
void |
cleanup()
Clean things up. |
protected void |
deploymentAborted(Notification notif,
DeploymentStatus status)
Deployment has been cancelled. |
protected void |
deploymentDone(Notification notif,
DeploymentStatus status)
Deployment has finished. |
protected void |
deploymentProgress(Notification notif,
DeploymentProgress status)
Deployment progress. |
protected void |
deploymentStarted(Notification notif)
Deployment has begun. |
Object |
getDeployID()
|
DeploymentMgr |
getDeploymentMgr()
|
DeploymentProgress |
getDeploymentProgress()
|
DeploymentStatus |
getDeploymentStatus()
|
void |
handleNotification(Notification notif,
Object handback)
Callback for all Notifications occurring during deployment. |
boolean |
isCompleted()
Return true if deployment has finished. |
protected void |
realHandleNotification(Notification notif,
Object handback)
Handle a received Notification. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeployNotificationListener(DeploymentMgr deploymentMgr, Object deployID)
Method Detail |
---|
public DeploymentMgr getDeploymentMgr()
public Object getDeployID()
public boolean isCompleted()
public DeploymentStatus getDeploymentStatus()
public DeploymentProgress getDeploymentProgress()
public void handleNotification(Notification notif, Object handback)
handleNotification
in interface NotificationListener
protected void deploymentDone(Notification notif, DeploymentStatus status)
protected void deploymentAborted(Notification notif, DeploymentStatus status)
protected void deploymentProgress(Notification notif, DeploymentProgress status)
protected void deploymentStarted(Notification notif)
public void cleanup()
protected final void realHandleNotification(Notification notif, Object handback)
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.