Class StatefulSetStatus

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

    public class StatefulSetStatus
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    StatefulSetStatus represents the current state of a StatefulSet.
    • Constructor Summary

      Constructors 
      Constructor Description
      StatefulSetStatus()  
      StatefulSetStatus​(java.lang.Number collisionCount, java.util.List<StatefulSetCondition> conditions, java.lang.Number currentReplicas, java.lang.String currentRevision, java.lang.Number observedGeneration, java.lang.Number readyReplicas, @NonNull java.lang.Number replicas, java.lang.String updateRevision, java.lang.Number updatedReplicas)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static StatefulSetStatus.Builder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.lang.Number getCollisionCount()
      collisionCount is the count of hash collisions for the StatefulSet.
      java.util.List<StatefulSetCondition> getConditions()
      Represents the latest available observations of a statefulset's current state.
      java.lang.Number getCurrentReplicas()
      currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.
      java.lang.String getCurrentRevision()
      currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).
      java.lang.Number getObservedGeneration()
      observedGeneration is the most recent generation observed for this StatefulSet.
      java.lang.Number getReadyReplicas()
      readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.
      @NonNull java.lang.Number getReplicas()
      replicas is the number of Pods created by the StatefulSet controller.
      java.lang.Number getUpdatedReplicas()
      updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.
      java.lang.String getUpdateRevision()
      updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)
      int hashCode()  
      void setCollisionCount​(java.lang.Number collisionCount)
      collisionCount is the count of hash collisions for the StatefulSet.
      void setConditions​(java.util.List<StatefulSetCondition> conditions)
      Represents the latest available observations of a statefulset's current state.
      void setCurrentReplicas​(java.lang.Number currentReplicas)
      currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.
      void setCurrentRevision​(java.lang.String currentRevision)
      currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).
      void setObservedGeneration​(java.lang.Number observedGeneration)
      observedGeneration is the most recent generation observed for this StatefulSet.
      void setReadyReplicas​(java.lang.Number readyReplicas)
      readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.
      void setReplicas​(@NonNull java.lang.Number replicas)
      replicas is the number of Pods created by the StatefulSet controller.
      void setUpdatedReplicas​(java.lang.Number updatedReplicas)
      updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.
      void setUpdateRevision​(java.lang.String updateRevision)
      updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)
      StatefulSetStatus.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • StatefulSetStatus

        public StatefulSetStatus​(java.lang.Number collisionCount,
                                 java.util.List<StatefulSetCondition> conditions,
                                 java.lang.Number currentReplicas,
                                 java.lang.String currentRevision,
                                 java.lang.Number observedGeneration,
                                 java.lang.Number readyReplicas,
                                 @NonNull
                                 @NonNull java.lang.Number replicas,
                                 java.lang.String updateRevision,
                                 java.lang.Number updatedReplicas)
      • StatefulSetStatus

        public StatefulSetStatus()
    • Method Detail

      • getCollisionCount

        public java.lang.Number getCollisionCount()
        collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.
      • getConditions

        public java.util.List<StatefulSetCondition> getConditions()
        Represents the latest available observations of a statefulset's current state.
      • getCurrentReplicas

        public java.lang.Number getCurrentReplicas()
        currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.
      • getCurrentRevision

        public java.lang.String getCurrentRevision()
        currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).
      • getObservedGeneration

        public java.lang.Number getObservedGeneration()
        observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.
      • getReadyReplicas

        public java.lang.Number getReadyReplicas()
        readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.
      • getReplicas

        @NonNull
        public @NonNull java.lang.Number getReplicas()
        replicas is the number of Pods created by the StatefulSet controller.
      • getUpdateRevision

        public java.lang.String getUpdateRevision()
        updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)
      • getUpdatedReplicas

        public java.lang.Number getUpdatedReplicas()
        updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.
      • setCollisionCount

        public void setCollisionCount​(java.lang.Number collisionCount)
        collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.
      • setConditions

        public void setConditions​(java.util.List<StatefulSetCondition> conditions)
        Represents the latest available observations of a statefulset's current state.
      • setCurrentReplicas

        public void setCurrentReplicas​(java.lang.Number currentReplicas)
        currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.
      • setCurrentRevision

        public void setCurrentRevision​(java.lang.String currentRevision)
        currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).
      • setObservedGeneration

        public void setObservedGeneration​(java.lang.Number observedGeneration)
        observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.
      • setReadyReplicas

        public void setReadyReplicas​(java.lang.Number readyReplicas)
        readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.
      • setReplicas

        public void setReplicas​(@NonNull
                                @NonNull java.lang.Number replicas)
        replicas is the number of Pods created by the StatefulSet controller.
      • setUpdateRevision

        public void setUpdateRevision​(java.lang.String updateRevision)
        updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)
      • setUpdatedReplicas

        public void setUpdatedReplicas​(java.lang.Number updatedReplicas)
        updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.
      • 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