Constructor and Description |
---|
RoundRobinSlotScheduler(TopologyDetails td,
int slotsToUse,
Cluster cluster)
Create a new scheduler for a given topology.
|
Modifier and Type | Method and Description |
---|---|
boolean |
assignSlotTo(Node n)
Assign a slot to the given node.
|
public RoundRobinSlotScheduler(TopologyDetails td, int slotsToUse, Cluster cluster)
Create a new scheduler for a given topology.
td
- the topology to scheduleslotsToUse
- the number of slots to use for the executors left to schedule.cluster
- the cluster to schedule this on.public boolean assignSlotTo(Node n)
Assign a slot to the given node.
n
- the node to assign a slot to.Copyright © 2022 The Apache Software Foundation. All rights reserved.