|
||||||||||
| 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.ProgressObjectImpl
public class ProgressObjectImpl
Implementation of the Progress Object
| Field Summary | |
|---|---|
protected Object[] |
args
|
protected CommandType |
commandType
|
protected Vector |
deliveredEvents
|
protected boolean |
deployActionCompleted
|
protected DeploymentStatusImpl |
deploymentStatus
|
protected DFDeploymentStatus |
finalDeploymentStatus
|
protected String |
moduleID
|
protected ModuleType |
moduleType
|
protected TargetImpl |
target
|
protected TargetModuleID[] |
targetModuleIDs
|
protected TargetImpl[] |
targetsList
|
protected String |
warningMessages
|
| Constructor Summary | |
|---|---|
ProgressObjectImpl(Target target)
|
|
ProgressObjectImpl(Target[] targets)
|
|
ProgressObjectImpl(TargetImpl target)
Creates a new instance of ProgressObjectImpl |
|
ProgressObjectImpl(TargetImpl[] targets)
|
|
| Method Summary | |
|---|---|
void |
addProgressListener(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(ProgressEvent progressEvent)
Notifies all listeners that have registered interest for ProgressEvent notification. |
protected void |
fireProgressEvent(StateType state,
String message)
Notifies all listeners that have registered interest for ProgressEvent notification. |
protected void |
fireProgressEvent(StateType state,
String message,
TargetImpl aTarget)
Notifies all listeners that have registered interest for ProgressEvent notification. |
ClientConfiguration |
getClientConfiguration(TargetModuleID id)
Return the ClientConfiguration object associated with the TargetModuleID. |
DFDeploymentStatus |
getCompletedStatus()
Retrieve the final deployment status which has complete details for each stage |
DeploymentStatus |
getDeploymentStatus()
Retrieve the status of this activity. |
ModuleType |
getModuleType()
|
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(ProgressListener pol)
Remove a ProgressObject listener. |
void |
setCommand(CommandType commandType,
Object[] args)
|
void |
setModuleID(String id)
|
void |
setModuleType(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(Target target)
|
static TargetImpl[] |
toTargetImpl(Target[] targets)
|
| 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 |
| Field Detail |
|---|
protected CommandType commandType
protected Object[] args
protected TargetImpl target
protected TargetImpl[] targetsList
protected String moduleID
protected ModuleType moduleType
protected DeploymentStatusImpl deploymentStatus
protected TargetModuleID[] targetModuleIDs
protected Vector deliveredEvents
protected DFDeploymentStatus finalDeploymentStatus
protected boolean deployActionCompleted
protected String warningMessages
| Constructor Detail |
|---|
public ProgressObjectImpl(TargetImpl target)
public ProgressObjectImpl(TargetImpl[] targets)
public ProgressObjectImpl(Target[] targets)
public ProgressObjectImpl(Target target)
| Method Detail |
|---|
public static TargetImpl toTargetImpl(Target target)
public static TargetImpl[] toTargetImpl(Target[] targets)
public void addProgressListener(ProgressListener pol)
The - listener to receive eventsProgressEvent
public void cancel()
throws OperationUnsupportedException
OperationUnsupportedException - this optional command
is not supported by this implementation.public ClientConfiguration getClientConfiguration(TargetModuleID id)
public DeploymentStatus getDeploymentStatus()
public DFDeploymentStatus getCompletedStatus()
getCompletedStatus in class DFProgressObjectpublic 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(ProgressListener pol)
The - listener being removedProgressEvent
public void stop()
throws OperationUnsupportedException
OperationUnsupportedException - this optional command
is not supported by this implementation.
public void setCommand(CommandType commandType,
Object[] args)
protected void fireProgressEvent(ProgressEvent progressEvent)
protected void fireProgressEvent(StateType state,
String message)
protected void fireProgressEvent(StateType state,
String message,
TargetImpl aTarget)
public void setModuleType(ModuleType moduleType)
the - module typepublic 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||