|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.deployment.client.DFProgressObject
org.glassfish.deployapi.ProgressObjectSink
public class ProgressObjectSink
This class acts as a sink for ProgressObject. It registers itself as ProgressObject listener for multiple deployment actions and tunnel all events to registered ProgressObject listener.
Whenever this class receives a progress event from one of its sources (one of the deploymentFacility actions) it forwards that event on to the sink's listeners, changing the state of the event to "running." Then, after the sink receives the completion or failure event from the last source, it forwards that event as running (as it had all earlier events) and then sends one final aggregate completion or failure event.
The sink always follows this pattern, even if it encapsulates only a single source. JSR88 clients should be aware of this behavior.
| Constructor Summary | |
|---|---|
ProgressObjectSink()
|
|
| Method Summary | |
|---|---|
void |
addProgressListener(ProgressListener progressListener)
Register a new ProgressListener |
void |
cancel()
|
ClientConfiguration |
getClientConfiguration(TargetModuleID targetModuleID)
|
DFDeploymentStatus |
getCompletedStatus()
Report completed status for deploytool. |
DeploymentStatus |
getDeploymentStatus()
|
TargetModuleID[] |
getResultTargetModuleIDs()
|
void |
handleProgressEvent(ProgressEvent progressEvent)
receives notification of a progress event from one of our registered interface. |
boolean |
isCancelSupported()
|
boolean |
isStopSupported()
|
void |
removeProgressListener(ProgressListener progressListener)
removes a ProgressListener from our list of listeners |
void |
sinkProgressObject(ProgressObject source)
register to a new ProgressObject for ProgressEvent notifications |
void |
stop()
|
| Methods inherited from class org.glassfish.deployment.client.DFProgressObject |
|---|
waitFor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProgressObjectSink()
| Method Detail |
|---|
public void sinkProgressObject(ProgressObject source)
public void handleProgressEvent(ProgressEvent progressEvent)
handleProgressEvent in interface ProgressListenerpublic void addProgressListener(ProgressListener progressListener)
addProgressListener in interface ProgressObjectthe - new listener instancepublic void removeProgressListener(ProgressListener progressListener)
removeProgressListener in interface ProgressObjectthe - ProgressListener to removepublic ClientConfiguration getClientConfiguration(TargetModuleID targetModuleID)
getClientConfiguration in interface ProgressObjectpublic DeploymentStatus getDeploymentStatus()
getDeploymentStatus in interface ProgressObjectpublic TargetModuleID[] getResultTargetModuleIDs()
getResultTargetModuleIDs in interface ProgressObjectpublic boolean isCancelSupported()
isCancelSupported in interface ProgressObjectpublic boolean isStopSupported()
isStopSupported in interface ProgressObject
public void cancel()
throws OperationUnsupportedException
cancel in interface ProgressObjectOperationUnsupportedException
public void stop()
throws OperationUnsupportedException
stop in interface ProgressObjectOperationUnsupportedExceptionpublic DFDeploymentStatus getCompletedStatus()
getCompletedStatus in class DFProgressObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||