Class ResourceSpecification


  • public final class ResourceSpecification
    extends Object
    Represents the specifications of a resource.
    • Constructor Detail

      • ResourceSpecification

        public ResourceSpecification​(String containerType,
                                     int capacity,
                                     int memory)
      • ResourceSpecification

        public ResourceSpecification​(String containerType,
                                     int capacity,
                                     int memory,
                                     OptionalDouble maxOffheapRatio,
                                     OptionalInt poisonSec)
    • Method Detail

      • getContainerType

        public String getContainerType()
        Returns:
        The type of the container.
      • getCapacity

        public int getCapacity()
        Returns:
        The number of Tasks that can be run in this container.
      • getMemory

        public int getMemory()
        Returns:
        Allocated memory for the container, in megabytes.
      • getResourceSpecId

        public String getResourceSpecId()
      • getPoisonSec

        public OptionalInt getPoisonSec()
        Returns:
        -1 if this resource is not poisoned. (for all other normal cases) >= 0 the expected time to failure by poison. (for fault-handling tests)