Class ResourceClaimStatus

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

    public class ResourceClaimStatus
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.
    • Constructor Detail

      • ResourceClaimStatus

        public ResourceClaimStatus()
    • Method Detail

      • getDeallocationRequested

        public java.lang.Boolean getDeallocationRequested()
        DeallocationRequested indicates that a ResourceClaim is to be deallocated.


        The driver then must deallocate this claim and reset the field together with clearing the Allocation field.


        While DeallocationRequested is set, no new consumers may be added to ReservedFor.

      • getDriverName

        public java.lang.String getDriverName()
        DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.
      • getReservedFor

        public java.util.List<ResourceClaimConsumerReference> getReservedFor()
        ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started.


        There can be at most 32 such reservations. This may get increased in the future, but not reduced.

      • setDeallocationRequested

        public void setDeallocationRequested​(java.lang.Boolean deallocationRequested)
        DeallocationRequested indicates that a ResourceClaim is to be deallocated.


        The driver then must deallocate this claim and reset the field together with clearing the Allocation field.


        While DeallocationRequested is set, no new consumers may be added to ReservedFor.

      • setDriverName

        public void setDriverName​(java.lang.String driverName)
        DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.
      • setReservedFor

        public void setReservedFor​(java.util.List<ResourceClaimConsumerReference> reservedFor)
        ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started.


        There can be at most 32 such reservations. This may get increased in the future, but not reduced.

      • 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