Package io.trino.execution.scheduler
Class FixedCountNodeAllocatorService
java.lang.Object
io.trino.execution.scheduler.FixedCountNodeAllocatorService
- All Implemented Interfaces:
NodeAllocatorService
@ThreadSafe
public class FixedCountNodeAllocatorService
extends Object
implements NodeAllocatorService
A simplistic node allocation service which only limits number of allocations per node within each
FixedCountNodeAllocatorService.FixedCountNodeAllocator instance. Each allocator will allow each node to be acquired up to MAXIMUM_ALLOCATIONS_PER_NODE
times at the same time.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FixedCountNodeAllocatorService
-
-
Method Details
-
start
@PostConstruct public void start() -
stop
@PreDestroy public void stop() -
getNodeAllocator
- Specified by:
getNodeAllocatorin interfaceNodeAllocatorService
-