Class PreferredSchedulingTerm

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

    public class PreferredSchedulingTerm
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
    • Constructor Detail

      • PreferredSchedulingTerm

        public PreferredSchedulingTerm​(@NonNull
                                       @NonNull NodeSelectorTerm preference,
                                       @NonNull
                                       @NonNull java.lang.Number weight)
      • PreferredSchedulingTerm

        public PreferredSchedulingTerm()
    • Method Detail

      • getWeight

        @NonNull
        public @NonNull java.lang.Number getWeight()
        Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
      • setPreference

        public void setPreference​(@NonNull
                                  @NonNull NodeSelectorTerm preference)
      • setWeight

        public void setWeight​(@NonNull
                              @NonNull java.lang.Number weight)
        Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
      • 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