Class Scheduling

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

    public class Scheduling
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Scheduling.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      Scheduling()  
      Scheduling​(java.util.Map<java.lang.String,​java.lang.String> nodeSelector, java.util.List<Toleration> tolerations)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Scheduling.Builder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.util.Map<java.lang.String,​java.lang.String> getNodeSelector()
      nodeSelector lists labels that must be present on nodes that support this RuntimeClass.
      java.util.List<Toleration> getTolerations()
      tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.
      int hashCode()  
      void setNodeSelector​(java.util.Map<java.lang.String,​java.lang.String> nodeSelector)
      nodeSelector lists labels that must be present on nodes that support this RuntimeClass.
      void setTolerations​(java.util.List<Toleration> tolerations)
      tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.
      Scheduling.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Scheduling

        public Scheduling​(java.util.Map<java.lang.String,​java.lang.String> nodeSelector,
                          java.util.List<Toleration> tolerations)
      • Scheduling

        public Scheduling()
    • Method Detail

      • getNodeSelector

        public java.util.Map<java.lang.String,​java.lang.String> getNodeSelector()
        nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.
      • getTolerations

        public java.util.List<Toleration> getTolerations()
        tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.
      • setNodeSelector

        public void setNodeSelector​(java.util.Map<java.lang.String,​java.lang.String> nodeSelector)
        nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.
      • setTolerations

        public void setTolerations​(java.util.List<Toleration> tolerations)
        tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.
      • 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