Class InstanceSpecPlanExecution

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class InstanceSpecPlanExecution
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    There are two ways a plan execution can be triggered: 1) indirectly through update of a corresponding parameter in the InstanceSpec.Parameters map 2) directly through setting of the InstanceSpec.PlanExecution.PlanName field While indirect (1) triggers happens every time a user changes a parameter, a directly (2) triggered plan is reserved for the situations when parameters doesn't change e.g. a periodic backup is triggered overriding the existing backup file. Additionally, this opens room for canceling and overriding currently running plans in the future. Note: PlanExecution field defines plan name and corresponding parameters that IS CURRENTLY executed. Once the instance controller (IC) is done with the execution, this field will be cleared. Each plan execution has a unique UID so should the same plan be re-triggered it will have a new UID
    • Constructor Detail

      • InstanceSpecPlanExecution

        public InstanceSpecPlanExecution​(java.lang.String planName,
                                         java.lang.String status,
                                         java.lang.String uid)
      • InstanceSpecPlanExecution

        public InstanceSpecPlanExecution()
    • Method Detail

      • getPlanName

        public java.lang.String getPlanName()
      • getStatus

        public java.lang.String getStatus()
        ExecutionStatus captures the state of the rollout.
      • getUid

        public java.lang.String getUid()
        UID is a type that holds unique ID values, including UUIDs. Because we don't ONLY use UUIDs, this is an alias to string. Being a type captures intent and helps make sure that UIDs and names do not get conflated.
      • setPlanName

        public void setPlanName​(java.lang.String planName)
      • setStatus

        public void setStatus​(java.lang.String status)
        ExecutionStatus captures the state of the rollout.
      • setUid

        public void setUid​(java.lang.String uid)
        UID is a type that holds unique ID values, including UUIDs. Because we don't ONLY use UUIDs, this is an alias to string. Being a type captures intent and helps make sure that UIDs and names do not get conflated.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object