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 void
finalize()
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.long
getGracefulShutdownTimeout()
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.UUID
getId()
Gets the unique id of the plan.boolean
isGlobalRollback()
Gets whether alldeploy
,undeploy
,replace
orremove
operations associated with the deployment plan should be rolled back in case of a failure in any of them.boolean
isGracefulShutdown()
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.boolean
isShutdown()
Gets whether the deployment plan is organized around a shutdown of the server.
-
-
-
Method Detail
-
getId
public UUID getId()
Description copied from interface:DeploymentPlan
Gets the unique id of the plan.- Specified by:
getId
in interfaceDeploymentPlan
- Returns:
- the id. Will not be
null
-
getDeploymentActions
public List<DeploymentAction> getDeploymentActions()
Description copied from interface:DeploymentPlan
Gets 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:
getDeploymentActions
in interfaceDeploymentPlan
- Returns:
- the actions. Will not be
null
-
isGlobalRollback
public boolean isGlobalRollback()
Description copied from interface:DeploymentPlan
Gets whether alldeploy
,undeploy
,replace
orremove
operations associated with the deployment plan should be rolled back in case of a failure in any of them.- Specified by:
isGlobalRollback
in interfaceDeploymentPlan
- Returns:
true
if all operations should be rolled back if any of them fail
-
getGracefulShutdownTimeout
public long getGracefulShutdownTimeout()
Description copied from interface:DeploymentPlan
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.- Specified by:
getGracefulShutdownTimeout
in interfaceDeploymentPlan
- Returns:
- the period in ms, or
-1
ifDeploymentPlan.isGracefulShutdown()
would returntrue
-
isGracefulShutdown
public boolean isGracefulShutdown()
Description copied from interface:DeploymentPlan
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.- Specified by:
isGracefulShutdown
in interfaceDeploymentPlan
- Returns:
true
if the plan will be organized around a graceful shutdown,false
otherwise
-
isShutdown
public boolean isShutdown()
Description copied from interface:DeploymentPlan
Gets whether the deployment plan is organized around a shutdown of the server.- Specified by:
isShutdown
in interfaceDeploymentPlan
- Returns:
true
if the plan will be organized around a shutdown,false
otherwise
-
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
-
-