Class DeploymentSetPlanImpl

java.lang.Object
org.jboss.as.controller.client.helpers.domain.impl.DeploymentSetPlanImpl
All Implemented Interfaces:
Serializable, DeploymentSetPlan

public class DeploymentSetPlanImpl extends Object implements DeploymentSetPlan, Serializable
TODO get rid of this class and put all logic in DeploymentPlanImpl
Author:
Brian Stansberry
See Also:
  • Method Details

    • getId

      public UUID getId()
      Description copied from interface: DeploymentSetPlan
      Gets the unique id of the deployment set plan.
      Specified by:
      getId in interface DeploymentSetPlan
      Returns:
      the id. Will not be null
    • getLastAction

      public DeploymentAction getLastAction()
    • getDeploymentActions

      public List<DeploymentAction> getDeploymentActions()
      Description copied from interface: DeploymentSetPlan
      Gets the list of deploy, replace and undeploy actions that are part of the deployment plan.
      Specified by:
      getDeploymentActions in interface DeploymentSetPlan
      Returns:
      the actions. Will not be null
    • isRollback

      public boolean isRollback()
      Description copied from interface: DeploymentSetPlan
      Gets whether all deploy, undeploy, replace or remove operations associated with the deployment set plan should be rolled back in case of a failure in any of them.
      Specified by:
      isRollback in interface DeploymentSetPlan
      Returns:
      true if all operations should be rolled back if any of them fail
    • getGracefulShutdownTimeout

      public long getGracefulShutdownTimeout()
      Description copied from interface: DeploymentSetPlan
      Gets the maximum period, in ms, the deployment set plan is configured to wait for potentially long-running in-process work ito complete before shutdown proceeds.
      Specified by:
      getGracefulShutdownTimeout in interface DeploymentSetPlan
      Returns:
      the period in ms, or -1 if DeploymentSetPlan.isGracefulShutdown() would return false
    • isGracefulShutdown

      public boolean isGracefulShutdown()
      Description copied from interface: DeploymentSetPlan
      Gets whether the deployment set 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 interface DeploymentSetPlan
      Returns:
      true if the plan will be organized around a graceful shutdown, false otherwise
    • isShutdown

      public boolean isShutdown()
      Description copied from interface: DeploymentSetPlan
      Gets whether the deployment set plan is organized around a shutdown of the server.
      Specified by:
      isShutdown in interface DeploymentSetPlan
      Returns:
      true if the plan will be organized around a shutdown, false otherwise
    • getServerGroupDeploymentPlans

      public List<Set<ServerGroupDeploymentPlan>> getServerGroupDeploymentPlans()
      Description copied from interface: DeploymentSetPlan
      Gets the configuration of how the deployment actions are to be applied to the server groups in the domain. Each ServerGroupDeploymentPlan in the returned data structure specifies how the actions are to be applied to the servers within a particular server group. The data structure itself is a list of sets of ServerGroupDeploymentPlans. Each set indicates a collection of server groups to which actions can be applied concurrently. Each element in the overall list delineates actions should be applied in series.

      So, for example, assume we the overall deployment set plan is intended to apply deployments to 3 server groups: A, B and C. Assume elements within curly braces represent and set and elements within brackets represent an item in a list:

      • [{A,B}],[{C}] would describe a plan to concurrently execute the deployment actions on server groups A and B and then when A and B are complete, continue on to server group C.
      • [{A}],[{B}],[{C}] would describe a plan to execute the deployment actions on server group A, and then when A is complete, continue on to server group B and then to C.
      • [{A,B,C}] would describe a plan to concurrently execute the deployment actions on server groups A and B and C.

      Specified by:
      getServerGroupDeploymentPlans in interface DeploymentSetPlan
      Returns:
      data structure representing how the deployment actions are to be applied to the server groups in the domain.