public class ProgressObjectImpl extends Object implements javax.enterprise.deploy.spi.status.ProgressObject
Constructor and Description |
---|
ProgressObjectImpl(javax.enterprise.deploy.spi.status.DeploymentStatus deploymentStatus,
javax.enterprise.deploy.spi.TargetModuleID[] targetModules) |
Modifier and Type | Method and Description |
---|---|
void |
addProgressListener(javax.enterprise.deploy.spi.status.ProgressListener listener)
Add a progress listener
|
void |
cancel()
Cancels the deployment
|
javax.enterprise.deploy.spi.status.ClientConfiguration |
getClientConfiguration(javax.enterprise.deploy.spi.TargetModuleID id)
Return the client configuration associated with the module
|
javax.enterprise.deploy.spi.status.DeploymentStatus |
getDeploymentStatus()
Retrieve the status of the deployment
|
javax.enterprise.deploy.spi.TargetModuleID[] |
getResultTargetModuleIDs()
Retrieve the resulting target module ids
|
boolean |
isCancelSupported()
Is cancel supported
|
boolean |
isStopSupported()
Is stop supported
|
void |
removeProgressListener(javax.enterprise.deploy.spi.status.ProgressListener listener)
Remove a progress listener
|
void |
sendProgressEvent(javax.enterprise.deploy.shared.StateType stateType,
String message,
javax.enterprise.deploy.spi.TargetModuleID moduleID)
Set the current deployment status
|
void |
stop()
Stops the deployment
|
String |
toString() |
public ProgressObjectImpl(javax.enterprise.deploy.spi.status.DeploymentStatus deploymentStatus, javax.enterprise.deploy.spi.TargetModuleID[] targetModules)
public void sendProgressEvent(javax.enterprise.deploy.shared.StateType stateType, String message, javax.enterprise.deploy.spi.TargetModuleID moduleID)
public javax.enterprise.deploy.spi.status.DeploymentStatus getDeploymentStatus()
getDeploymentStatus
in interface javax.enterprise.deploy.spi.status.ProgressObject
public javax.enterprise.deploy.spi.TargetModuleID[] getResultTargetModuleIDs()
getResultTargetModuleIDs
in interface javax.enterprise.deploy.spi.status.ProgressObject
public javax.enterprise.deploy.spi.status.ClientConfiguration getClientConfiguration(javax.enterprise.deploy.spi.TargetModuleID id)
getClientConfiguration
in interface javax.enterprise.deploy.spi.status.ProgressObject
id
- the module idpublic boolean isCancelSupported()
isCancelSupported
in interface javax.enterprise.deploy.spi.status.ProgressObject
public void cancel() throws javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
cancel
in interface javax.enterprise.deploy.spi.status.ProgressObject
javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
- when cancel is not supportedpublic boolean isStopSupported()
isStopSupported
in interface javax.enterprise.deploy.spi.status.ProgressObject
public void stop() throws javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
stop
in interface javax.enterprise.deploy.spi.status.ProgressObject
javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
- when stop is not supportedpublic void addProgressListener(javax.enterprise.deploy.spi.status.ProgressListener listener)
addProgressListener
in interface javax.enterprise.deploy.spi.status.ProgressObject
listener
- the listenerpublic void removeProgressListener(javax.enterprise.deploy.spi.status.ProgressListener listener)
removeProgressListener
in interface javax.enterprise.deploy.spi.status.ProgressObject
listener
- the listenerCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.