Package io.trino.server
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 Summary
ConstructorsConstructorDescriptionResourceGroupInfo(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 aResourceGroupInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionio.airlift.units.DurationcpuUsage()Returns the value of thecpuUsagerecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thehardConcurrencyLimitrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.intReturns the value of themaxQueuedQueriesrecord component.io.airlift.units.DataSizeReturns the value of thememoryUsagerecord component.intReturns the value of thenumEligibleSubGroupsrecord component.intReturns the value of thenumQueuedQueriesrecord component.intReturns the value of thenumRunningQueriesrecord component.Returns the value of therunningQueriesrecord component.Returns the value of theschedulingPolicyrecord component.intReturns the value of theschedulingWeightrecord component.intReturns the value of thesoftConcurrencyLimitrecord component.io.airlift.units.DataSizeReturns the value of thesoftMemoryLimitrecord component.state()Returns the value of thestaterecord component.Returns the value of thesubGroupsrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aResourceGroupInforecord class.- Parameters:
id- the value for theidrecord componentstate- the value for thestaterecord componentschedulingPolicy- the value for theschedulingPolicyrecord componentschedulingWeight- the value for theschedulingWeightrecord componentsoftMemoryLimit- the value for thesoftMemoryLimitrecord componentsoftConcurrencyLimit- the value for thesoftConcurrencyLimitrecord componenthardConcurrencyLimit- the value for thehardConcurrencyLimitrecord componentmaxQueuedQueries- the value for themaxQueuedQueriesrecord componentmemoryUsage- the value for thememoryUsagerecord componentcpuUsage- the value for thecpuUsagerecord componentnumQueuedQueries- the value for thenumQueuedQueriesrecord componentnumRunningQueries- the value for thenumRunningQueriesrecord componentnumEligibleSubGroups- the value for thenumEligibleSubGroupsrecord componentsubGroups- the value for thesubGroupsrecord componentrunningQueries- the value for therunningQueriesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
schedulingPolicy
Returns the value of theschedulingPolicyrecord component.- Returns:
- the value of the
schedulingPolicyrecord component
-
schedulingWeight
public int schedulingWeight()Returns the value of theschedulingWeightrecord component.- Returns:
- the value of the
schedulingWeightrecord component
-
softMemoryLimit
public io.airlift.units.DataSize softMemoryLimit()Returns the value of thesoftMemoryLimitrecord component.- Returns:
- the value of the
softMemoryLimitrecord component
-
softConcurrencyLimit
public int softConcurrencyLimit()Returns the value of thesoftConcurrencyLimitrecord component.- Returns:
- the value of the
softConcurrencyLimitrecord component
-
hardConcurrencyLimit
public int hardConcurrencyLimit()Returns the value of thehardConcurrencyLimitrecord component.- Returns:
- the value of the
hardConcurrencyLimitrecord component
-
maxQueuedQueries
public int maxQueuedQueries()Returns the value of themaxQueuedQueriesrecord component.- Returns:
- the value of the
maxQueuedQueriesrecord component
-
memoryUsage
public io.airlift.units.DataSize memoryUsage()Returns the value of thememoryUsagerecord component.- Returns:
- the value of the
memoryUsagerecord component
-
cpuUsage
public io.airlift.units.Duration cpuUsage()Returns the value of thecpuUsagerecord component.- Returns:
- the value of the
cpuUsagerecord component
-
numQueuedQueries
public int numQueuedQueries()Returns the value of thenumQueuedQueriesrecord component.- Returns:
- the value of the
numQueuedQueriesrecord component
-
numRunningQueries
public int numRunningQueries()Returns the value of thenumRunningQueriesrecord component.- Returns:
- the value of the
numRunningQueriesrecord component
-
numEligibleSubGroups
public int numEligibleSubGroups()Returns the value of thenumEligibleSubGroupsrecord component.- Returns:
- the value of the
numEligibleSubGroupsrecord component
-
subGroups
Returns the value of thesubGroupsrecord component.- Returns:
- the value of the
subGroupsrecord component
-
runningQueries
Returns the value of therunningQueriesrecord component.- Returns:
- the value of the
runningQueriesrecord component
-