Package io.trino.execution.scheduler
Class FixedCountNodeAllocator
- java.lang.Object
-
- io.trino.execution.scheduler.FixedCountNodeAllocator
-
- All Implemented Interfaces:
NodeAllocator,Closeable,AutoCloseable
public class FixedCountNodeAllocator extends Object implements NodeAllocator
-
-
Constructor Summary
Constructors Constructor Description FixedCountNodeAllocator(NodeScheduler nodeScheduler, Session session, int maximumAllocationsPerNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<InternalNode>acquire(NodeRequirements requirements)voidclose()voidrelease(InternalNode node)voidupdateNodes()
-
-
-
Constructor Detail
-
FixedCountNodeAllocator
public FixedCountNodeAllocator(NodeScheduler nodeScheduler, Session session, int maximumAllocationsPerNode)
-
-
Method Detail
-
acquire
public com.google.common.util.concurrent.ListenableFuture<InternalNode> acquire(NodeRequirements requirements)
- Specified by:
acquirein interfaceNodeAllocator
-
release
public void release(InternalNode node)
- Specified by:
releasein interfaceNodeAllocator
-
updateNodes
public void updateNodes()
- Specified by:
updateNodesin interfaceNodeAllocator
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceNodeAllocator
-
-