Package io.trino.memory
Class ClusterMemoryPool
- java.lang.Object
-
- io.trino.memory.ClusterMemoryPool
-
@ThreadSafe public class ClusterMemoryPool extends Object
-
-
Constructor Summary
Constructors Constructor Description ClusterMemoryPool(MemoryPoolId id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetAssignedQueries()intgetBlockedNodes()longgetFreeDistributedBytes()MemoryPoolIdgetId()MemoryPoolInfogetInfo()intgetNodes()Map<QueryId,Long>getQueryMemoryReservations()Map<QueryId,Long>getQueryMemoryRevocableReservations()longgetReservedDistributedBytes()longgetReservedRevocableDistributedBytes()longgetTotalDistributedBytes()inthashCode()StringtoString()voidupdate(List<MemoryInfo> memoryInfos, int assignedQueries)
-
-
-
Constructor Detail
-
ClusterMemoryPool
public ClusterMemoryPool(MemoryPoolId id)
-
-
Method Detail
-
getInfo
public MemoryPoolInfo getInfo()
-
getId
public MemoryPoolId getId()
-
getTotalDistributedBytes
public long getTotalDistributedBytes()
-
getFreeDistributedBytes
public long getFreeDistributedBytes()
-
getReservedDistributedBytes
public long getReservedDistributedBytes()
-
getReservedRevocableDistributedBytes
public long getReservedRevocableDistributedBytes()
-
getNodes
public int getNodes()
-
getBlockedNodes
public int getBlockedNodes()
-
getAssignedQueries
public int getAssignedQueries()
-
update
public void update(List<MemoryInfo> memoryInfos, int assignedQueries)
-
-