public class ProgressObjectImpl extends DFProgressObject
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 listener) |
void |
cancel()
Always throws
OperationUnsupportedException |
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.
|
javax.enterprise.deploy.spi.status.ClientConfiguration |
getClientConfiguration(javax.enterprise.deploy.spi.TargetModuleID id) |
javax.enterprise.deploy.shared.CommandType |
getCommandType() |
DFDeploymentStatus |
getCompletedStatus()
Returns null until final deployment status available.
|
javax.enterprise.deploy.spi.status.DeploymentStatus |
getDeploymentStatus() |
javax.enterprise.deploy.shared.ModuleType |
getModuleType() |
javax.enterprise.deploy.spi.TargetModuleID[] |
getResultTargetModuleIDs() |
boolean |
isCancelSupported()
Always returns false
|
boolean |
isStopSupported()
Always returns true
|
void |
removeProgressListener(javax.enterprise.deploy.spi.status.ProgressListener listener)
Remove a ProgressObject listener.
|
void |
setCommand(javax.enterprise.deploy.shared.CommandType commandType)
Sets the command type.
|
void |
setModuleID(String moduleId)
Sets the ID of the module.
|
void |
setModuleType(javax.enterprise.deploy.shared.ModuleType moduleType)
Sets the module type for this deployed module
|
void |
setupForAbnormalExit(String errorMsg,
TargetImpl aTarget)
Notifies listeners about the action failure.
|
void |
setupForNormalExit(String message,
TargetImpl aTarget,
TargetModuleIDImpl[] tmids)
Notifies listeners about an action success (even with warning).
|
void |
stop()
Always throws OperationUnsupportedException
|
static TargetImpl |
toTargetImpl(javax.enterprise.deploy.spi.Target target) |
waitFor
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 void addProgressListener(javax.enterprise.deploy.spi.status.ProgressListener listener)
public javax.enterprise.deploy.shared.CommandType getCommandType()
CommandType
, may be null.public void setCommand(javax.enterprise.deploy.shared.CommandType commandType)
commandType
- CommandType
public void setModuleID(String moduleId)
moduleId
- public void setModuleType(javax.enterprise.deploy.shared.ModuleType moduleType)
moduleType
- the module typepublic javax.enterprise.deploy.shared.ModuleType getModuleType()
public void cancel() throws javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
OperationUnsupportedException
javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
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 boolean isCancelSupported()
false
public boolean isStopSupported()
true
public void removeProgressListener(javax.enterprise.deploy.spi.status.ProgressListener listener)
listener
- 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.protected void fireProgressEvent(javax.enterprise.deploy.spi.status.ProgressEvent progressEvent)
progressEvent
- ProgressEvent
public void setupForNormalExit(String message, TargetImpl aTarget, TargetModuleIDImpl[] tmids)
message
- aTarget
- tmids
- public void setupForAbnormalExit(String errorMsg, TargetImpl aTarget)
errorMsg
- aTarget
- public boolean checkStatusAndAddStage(TargetImpl aTarget, String action, DFDeploymentStatus currentStatus)
setupForAbnormalExit(String, TargetImpl)
aTarget
- action
- currentStatus
- Copyright © 2020. All rights reserved.