public class ProgressObjectImpl extends DFProgressObject
Modifier and Type | Field and Description |
---|---|
protected Object[] |
args |
protected javax.enterprise.deploy.shared.CommandType |
commandType |
protected Vector |
deliveredEvents |
protected boolean |
deployActionCompleted |
protected DeploymentStatusImpl |
deploymentStatus |
protected DFDeploymentStatus |
finalDeploymentStatus |
protected String |
moduleID |
protected javax.enterprise.deploy.shared.ModuleType |
moduleType |
protected TargetImpl |
target |
protected javax.enterprise.deploy.spi.TargetModuleID[] |
targetModuleIDs |
protected TargetImpl[] |
targetsList |
protected String |
warningMessages |
Constructor and Description |
---|
ProgressObjectImpl(javax.enterprise.deploy.spi.Target target) |
ProgressObjectImpl(javax.enterprise.deploy.spi.Target[] targets) |
ProgressObjectImpl(TargetImpl target)
Creates a new instance of ProgressObjectImpl
|
ProgressObjectImpl(TargetImpl[] targets) |
Modifier and Type | Method and Description |
---|---|
void |
addProgressListener(javax.enterprise.deploy.spi.status.ProgressListener pol)
Add a listener to receive Progress events on deployment
actions.
|
void |
cancel()
(optional)
A cancel request on an in-process operation
stops all further processing of the operation and returns
the environment to it original state before the operation
was executed.
|
boolean |
checkStatusAndAddStage(TargetImpl aTarget,
String action,
DFDeploymentStatus currentStatus)
Given a Deployment status, this checks if the status is success
|
protected void |
fireProgressEvent(javax.enterprise.deploy.spi.status.ProgressEvent progressEvent)
Notifies all listeners that have registered interest for ProgressEvent notification.
|
protected void |
fireProgressEvent(javax.enterprise.deploy.shared.StateType state,
String message)
Notifies all listeners that have registered interest for ProgressEvent notification.
|
protected void |
fireProgressEvent(javax.enterprise.deploy.shared.StateType state,
String message,
TargetImpl aTarget)
Notifies all listeners that have registered interest for ProgressEvent notification.
|
javax.enterprise.deploy.spi.status.ClientConfiguration |
getClientConfiguration(javax.enterprise.deploy.spi.TargetModuleID id)
Return the ClientConfiguration object associated with the
TargetModuleID.
|
DFDeploymentStatus |
getCompletedStatus()
Retrieve the final deployment status which has complete details for each stage
|
javax.enterprise.deploy.spi.status.DeploymentStatus |
getDeploymentStatus()
Retrieve the status of this activity.
|
javax.enterprise.deploy.shared.ModuleType |
getModuleType() |
javax.enterprise.deploy.spi.TargetModuleID[] |
getResultTargetModuleIDs()
Retrieve the list of TargetModuleIDs successfully
processed or created by the associated DeploymentManager
operation.
|
protected String |
getThrowableString(Throwable t)
Since DeploymentStatus only provides the ability to pass a String to the
ProgressListener, the following is a convenience method for allowing the
stack-trace from a Throwable to be converted to a String to send to the
ProgressListeners.
|
protected void |
initializeTargetModuleIDs(String moduleID)
initialize the target module IDs with the passed application moduleID
and the descriptors
|
boolean |
isCancelSupported()
Tests whether the vendor supports a cancel
opertation for deployment activities.
|
boolean |
isStopSupported()
Tests whether the vendor supports a stop
opertation for deployment activities.
|
void |
removeProgressListener(javax.enterprise.deploy.spi.status.ProgressListener pol)
Remove a ProgressObject listener.
|
void |
setCommand(javax.enterprise.deploy.shared.CommandType commandType,
Object[] args) |
void |
setModuleID(String id) |
void |
setModuleType(javax.enterprise.deploy.shared.ModuleType moduleType)
Sets the module type for this deployed module
|
void |
setupForAbnormalExit(String errorMsg,
TargetImpl aTarget) |
void |
setupForNormalExit(String message,
TargetImpl aTarget,
TargetModuleIDImpl[] tmids) |
void |
stop()
(optional)
A stop request on an in-process operation allows the
operation on the current TargetModuleID to run to completion but
does not process any of the remaining unprocessed TargetModuleID
objects.
|
static TargetImpl |
toTargetImpl(javax.enterprise.deploy.spi.Target target) |
static TargetImpl[] |
toTargetImpl(javax.enterprise.deploy.spi.Target[] targets) |
waitFor
protected javax.enterprise.deploy.shared.CommandType commandType
protected Object[] args
protected TargetImpl target
protected TargetImpl[] targetsList
protected String moduleID
protected javax.enterprise.deploy.shared.ModuleType moduleType
protected DeploymentStatusImpl deploymentStatus
protected javax.enterprise.deploy.spi.TargetModuleID[] targetModuleIDs
protected Vector deliveredEvents
protected DFDeploymentStatus finalDeploymentStatus
protected boolean deployActionCompleted
protected String warningMessages
public ProgressObjectImpl(TargetImpl target)
public ProgressObjectImpl(TargetImpl[] targets)
public ProgressObjectImpl(javax.enterprise.deploy.spi.Target[] targets)
public ProgressObjectImpl(javax.enterprise.deploy.spi.Target target)
public static TargetImpl toTargetImpl(javax.enterprise.deploy.spi.Target target)
public static TargetImpl[] toTargetImpl(javax.enterprise.deploy.spi.Target[] targets)
public void addProgressListener(javax.enterprise.deploy.spi.status.ProgressListener pol)
The
- listener to receive eventsProgressEvent
public void cancel() throws javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
- this optional command
is not supported by this implementation.public javax.enterprise.deploy.spi.status.ClientConfiguration getClientConfiguration(javax.enterprise.deploy.spi.TargetModuleID id)
public javax.enterprise.deploy.spi.status.DeploymentStatus getDeploymentStatus()
public DFDeploymentStatus getCompletedStatus()
getCompletedStatus
in class DFProgressObject
public javax.enterprise.deploy.spi.TargetModuleID[] getResultTargetModuleIDs()
public void setModuleID(String id)
protected void initializeTargetModuleIDs(String moduleID)
public boolean isCancelSupported()
true
if canceling an
activity is supported by this platform.public boolean isStopSupported()
true
if canceling an
activity is supported by this platform.public void removeProgressListener(javax.enterprise.deploy.spi.status.ProgressListener pol)
The
- listener being removedProgressEvent
public void stop() throws javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
- this optional command
is not supported by this implementation.public void setCommand(javax.enterprise.deploy.shared.CommandType commandType, Object[] args)
protected void fireProgressEvent(javax.enterprise.deploy.spi.status.ProgressEvent progressEvent)
protected void fireProgressEvent(javax.enterprise.deploy.shared.StateType state, String message)
protected void fireProgressEvent(javax.enterprise.deploy.shared.StateType state, String message, TargetImpl aTarget)
public void setModuleType(javax.enterprise.deploy.shared.ModuleType moduleType)
the
- module typepublic javax.enterprise.deploy.shared.ModuleType getModuleType()
protected String getThrowableString(Throwable t)
public void setupForNormalExit(String message, TargetImpl aTarget, TargetModuleIDImpl[] tmids)
public void setupForAbnormalExit(String errorMsg, TargetImpl aTarget)
public boolean checkStatusAndAddStage(TargetImpl aTarget, String action, DFDeploymentStatus currentStatus)
Copyright © 2019. All rights reserved.