org.apache.geronimo.messaging.admin.deployment
Class MultiProgressObject

java.lang.Object
  extended byorg.apache.geronimo.messaging.admin.deployment.MultiProgressObject
All Implemented Interfaces:
javax.enterprise.deploy.spi.status.ProgressObject

public class MultiProgressObject
extends Object
implements javax.enterprise.deploy.spi.status.ProgressObject

A ProgressObject which consolidates multiple ProgressObjects.

Version:
$Revision: 1.1 $ $Date: 2004/06/01 12:44:22 $

Constructor Summary
MultiProgressObject()
           
 
Method Summary
 void addProgressListener(javax.enterprise.deploy.spi.status.ProgressListener pol)
           
 void addProgressObject(javax.enterprise.deploy.spi.status.ProgressObject aProgObject)
          Adds a ProgressObject.
 void cancel()
           
 void consolidate()
          Consolidates the ProgressObject registered until now.
 javax.enterprise.deploy.spi.status.ClientConfiguration getClientConfiguration(javax.enterprise.deploy.spi.TargetModuleID id)
           
 javax.enterprise.deploy.spi.status.DeploymentStatus getDeploymentStatus()
          Gets the deployment status.
 javax.enterprise.deploy.spi.TargetModuleID[] getResultTargetModuleIDs()
           
 boolean isCancelSupported()
           
 boolean isStopSupported()
           
 void removeProgressListener(javax.enterprise.deploy.spi.status.ProgressListener pol)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiProgressObject

public MultiProgressObject()
Method Detail

consolidate

public void consolidate()
Consolidates the ProgressObject registered until now.
ProgressObjects can no more be added.


addProgressObject

public void addProgressObject(javax.enterprise.deploy.spi.status.ProgressObject aProgObject)
Adds a ProgressObject.

Parameters:
aProgObject - Progress to be added.

getDeploymentStatus

public javax.enterprise.deploy.spi.status.DeploymentStatus getDeploymentStatus()
Gets the deployment status.
If one of the contained ProgressObjects is failed, then the status is considered as failed.
If the contained ProgressObjects are completed, then the status is completed.
In all the other cases, the status is running.

Specified by:
getDeploymentStatus in interface javax.enterprise.deploy.spi.status.ProgressObject
Returns:
Deployment status.

getResultTargetModuleIDs

public javax.enterprise.deploy.spi.TargetModuleID[] getResultTargetModuleIDs()
Specified by:
getResultTargetModuleIDs in interface javax.enterprise.deploy.spi.status.ProgressObject

getClientConfiguration

public javax.enterprise.deploy.spi.status.ClientConfiguration getClientConfiguration(javax.enterprise.deploy.spi.TargetModuleID id)
Specified by:
getClientConfiguration in interface javax.enterprise.deploy.spi.status.ProgressObject

isCancelSupported

public boolean isCancelSupported()
Specified by:
isCancelSupported in interface javax.enterprise.deploy.spi.status.ProgressObject

cancel

public void cancel()
            throws javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
Specified by:
cancel in interface javax.enterprise.deploy.spi.status.ProgressObject
Throws:
javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException

isStopSupported

public boolean isStopSupported()
Specified by:
isStopSupported in interface javax.enterprise.deploy.spi.status.ProgressObject

stop

public void stop()
          throws javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
Specified by:
stop in interface javax.enterprise.deploy.spi.status.ProgressObject
Throws:
javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException

addProgressListener

public void addProgressListener(javax.enterprise.deploy.spi.status.ProgressListener pol)
Specified by:
addProgressListener in interface javax.enterprise.deploy.spi.status.ProgressObject

removeProgressListener

public void removeProgressListener(javax.enterprise.deploy.spi.status.ProgressListener pol)
Specified by:
removeProgressListener in interface javax.enterprise.deploy.spi.status.ProgressObject


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.