Class DeploymentPlanImpl
- java.lang.Object
-
- org.jboss.as.controller.client.helpers.standalone.impl.DeploymentPlanImpl
-
- All Implemented Interfaces:
Serializable,DeploymentPlan
public class DeploymentPlanImpl extends Object implements DeploymentPlan
Describes a set of actions to take to change the deployment content available to and/or deployed in a standalone server.- Author:
- Brian Stansberry
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()List<DeploymentActionImpl>getDeploymentActionImpls()Same asgetDeploymentActions()except the type of the list contents reflects the actual implementation class.List<DeploymentAction>getDeploymentActions()Gets the list of deployment actions that are part of the deployment plan, in the order in which they were added to the plan.longgetGracefulShutdownTimeout()Gets the maximum period, in ms, the deployment plan is configured to wait for potentially long-running in-process work ito complete before shutdown proceeds.UUIDgetId()Gets the unique id of the plan.booleanisGlobalRollback()Gets whether alldeploy,undeploy,replaceorremoveoperations associated with the deployment plan should be rolled back in case of a failure in any of them.booleanisGracefulShutdown()Gets whether the deployment plan is organized around a graceful shutdown of the server, where potentially long-running in-process work is given time to complete before shutdown proceeds.booleanisShutdown()Gets whether the deployment plan is organized around a shutdown of the server.
-
-
-
Method Detail
-
getId
public UUID getId()
Description copied from interface:DeploymentPlanGets the unique id of the plan.- Specified by:
getIdin interfaceDeploymentPlan- Returns:
- the id. Will not be
null
-
getDeploymentActions
public List<DeploymentAction> getDeploymentActions()
Description copied from interface:DeploymentPlanGets the list of deployment actions that are part of the deployment plan, in the order in which they were added to the plan.- Specified by:
getDeploymentActionsin interfaceDeploymentPlan- Returns:
- the actions. Will not be
null
-
isGlobalRollback
public boolean isGlobalRollback()
Description copied from interface:DeploymentPlanGets whether alldeploy,undeploy,replaceorremoveoperations associated with the deployment plan should be rolled back in case of a failure in any of them.- Specified by:
isGlobalRollbackin interfaceDeploymentPlan- Returns:
trueif all operations should be rolled back if any of them fail
-
getGracefulShutdownTimeout
public long getGracefulShutdownTimeout()
Description copied from interface:DeploymentPlanGets the maximum period, in ms, the deployment plan is configured to wait for potentially long-running in-process work ito complete before shutdown proceeds.- Specified by:
getGracefulShutdownTimeoutin interfaceDeploymentPlan- Returns:
- the period in ms, or
-1ifDeploymentPlan.isGracefulShutdown()would returntrue
-
isGracefulShutdown
public boolean isGracefulShutdown()
Description copied from interface:DeploymentPlanGets whether the deployment plan is organized around a graceful shutdown of the server, where potentially long-running in-process work is given time to complete before shutdown proceeds.- Specified by:
isGracefulShutdownin interfaceDeploymentPlan- Returns:
trueif the plan will be organized around a graceful shutdown,falseotherwise
-
isShutdown
public boolean isShutdown()
Description copied from interface:DeploymentPlanGets whether the deployment plan is organized around a shutdown of the server.- Specified by:
isShutdownin interfaceDeploymentPlan- Returns:
trueif the plan will be organized around a shutdown,falseotherwise
-
getDeploymentActionImpls
public List<DeploymentActionImpl> getDeploymentActionImpls()
Same asgetDeploymentActions()except the type of the list contents reflects the actual implementation class.- Returns:
- the actions. Will not be
null
-
-