Package io.prestosql.memory
Class ClusterMemoryPool
- java.lang.Object
-
- io.prestosql.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 boolean
equals(Object o)
int
getAssignedQueries()
int
getBlockedNodes()
long
getFreeDistributedBytes()
MemoryPoolId
getId()
MemoryPoolInfo
getInfo()
int
getNodes()
Map<QueryId,Long>
getQueryMemoryReservations()
Map<QueryId,Long>
getQueryMemoryRevocableReservations()
long
getReservedDistributedBytes()
long
getReservedRevocableDistributedBytes()
long
getTotalDistributedBytes()
int
hashCode()
String
toString()
void
update(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)
-
-