Class PodSchedulingSpec

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

    public class PodSchedulingSpec
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    PodSchedulingSpec describes where resources for the Pod are needed.
    • Constructor Summary

      Constructors 
      Constructor Description
      PodSchedulingSpec()  
      PodSchedulingSpec​(java.util.List<java.lang.String> potentialNodes, java.lang.String selectedNode)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static PodSchedulingSpec.Builder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.util.List<java.lang.String> getPotentialNodes()
      PotentialNodes lists nodes where the Pod might be able to run.
      java.lang.String getSelectedNode()
      SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
      int hashCode()  
      void setPotentialNodes​(java.util.List<java.lang.String> potentialNodes)
      PotentialNodes lists nodes where the Pod might be able to run.
      void setSelectedNode​(java.lang.String selectedNode)
      SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
      PodSchedulingSpec.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • PodSchedulingSpec

        public PodSchedulingSpec​(java.util.List<java.lang.String> potentialNodes,
                                 java.lang.String selectedNode)
      • PodSchedulingSpec

        public PodSchedulingSpec()
    • Method Detail

      • getPotentialNodes

        public java.util.List<java.lang.String> getPotentialNodes()
        PotentialNodes lists nodes where the Pod might be able to run.


        The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.

      • getSelectedNode

        public java.lang.String getSelectedNode()
        SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
      • setPotentialNodes

        public void setPotentialNodes​(java.util.List<java.lang.String> potentialNodes)
        PotentialNodes lists nodes where the Pod might be able to run.


        The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.

      • setSelectedNode

        public void setSelectedNode​(java.lang.String selectedNode)
        SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
      • 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