Record Class ResourceGroupInfo

java.lang.Object
java.lang.Record
io.trino.server.ResourceGroupInfo

public record ResourceGroupInfo(ResourceGroupId id, ResourceGroupState state, SchedulingPolicy schedulingPolicy, int schedulingWeight, io.airlift.units.DataSize softMemoryLimit, int softConcurrencyLimit, int hardConcurrencyLimit, int maxQueuedQueries, io.airlift.units.DataSize memoryUsage, io.airlift.units.Duration cpuUsage, int numQueuedQueries, int numRunningQueries, int numEligibleSubGroups, Optional<List<ResourceGroupInfo>> subGroups, Optional<List<QueryStateInfo>> runningQueries) extends Record
  • Constructor Details

    • ResourceGroupInfo

      public ResourceGroupInfo(ResourceGroupId id, ResourceGroupState state, SchedulingPolicy schedulingPolicy, int schedulingWeight, io.airlift.units.DataSize softMemoryLimit, int softConcurrencyLimit, int hardConcurrencyLimit, int maxQueuedQueries, io.airlift.units.DataSize memoryUsage, io.airlift.units.Duration cpuUsage, int numQueuedQueries, int numRunningQueries, int numEligibleSubGroups, Optional<List<ResourceGroupInfo>> subGroups, Optional<List<QueryStateInfo>> runningQueries)
      Creates an instance of a ResourceGroupInfo record class.
      Parameters:
      id - the value for the id record component
      state - the value for the state record component
      schedulingPolicy - the value for the schedulingPolicy record component
      schedulingWeight - the value for the schedulingWeight record component
      softMemoryLimit - the value for the softMemoryLimit record component
      softConcurrencyLimit - the value for the softConcurrencyLimit record component
      hardConcurrencyLimit - the value for the hardConcurrencyLimit record component
      maxQueuedQueries - the value for the maxQueuedQueries record component
      memoryUsage - the value for the memoryUsage record component
      cpuUsage - the value for the cpuUsage record component
      numQueuedQueries - the value for the numQueuedQueries record component
      numRunningQueries - the value for the numRunningQueries record component
      numEligibleSubGroups - the value for the numEligibleSubGroups record component
      subGroups - the value for the subGroups record component
      runningQueries - the value for the runningQueries record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public ResourceGroupId id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • state

      public ResourceGroupState state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • schedulingPolicy

      public SchedulingPolicy schedulingPolicy()
      Returns the value of the schedulingPolicy record component.
      Returns:
      the value of the schedulingPolicy record component
    • schedulingWeight

      public int schedulingWeight()
      Returns the value of the schedulingWeight record component.
      Returns:
      the value of the schedulingWeight record component
    • softMemoryLimit

      public io.airlift.units.DataSize softMemoryLimit()
      Returns the value of the softMemoryLimit record component.
      Returns:
      the value of the softMemoryLimit record component
    • softConcurrencyLimit

      public int softConcurrencyLimit()
      Returns the value of the softConcurrencyLimit record component.
      Returns:
      the value of the softConcurrencyLimit record component
    • hardConcurrencyLimit

      public int hardConcurrencyLimit()
      Returns the value of the hardConcurrencyLimit record component.
      Returns:
      the value of the hardConcurrencyLimit record component
    • maxQueuedQueries

      public int maxQueuedQueries()
      Returns the value of the maxQueuedQueries record component.
      Returns:
      the value of the maxQueuedQueries record component
    • memoryUsage

      public io.airlift.units.DataSize memoryUsage()
      Returns the value of the memoryUsage record component.
      Returns:
      the value of the memoryUsage record component
    • cpuUsage

      public io.airlift.units.Duration cpuUsage()
      Returns the value of the cpuUsage record component.
      Returns:
      the value of the cpuUsage record component
    • numQueuedQueries

      public int numQueuedQueries()
      Returns the value of the numQueuedQueries record component.
      Returns:
      the value of the numQueuedQueries record component
    • numRunningQueries

      public int numRunningQueries()
      Returns the value of the numRunningQueries record component.
      Returns:
      the value of the numRunningQueries record component
    • numEligibleSubGroups

      public int numEligibleSubGroups()
      Returns the value of the numEligibleSubGroups record component.
      Returns:
      the value of the numEligibleSubGroups record component
    • subGroups

      public Optional<List<ResourceGroupInfo>> subGroups()
      Returns the value of the subGroups record component.
      Returns:
      the value of the subGroups record component
    • runningQueries

      public Optional<List<QueryStateInfo>> runningQueries()
      Returns the value of the runningQueries record component.
      Returns:
      the value of the runningQueries record component