public class NodeScheduler extends Object
| Constructor and Description |
|---|
NodeScheduler(NetworkLocationCache networkLocationCache,
NetworkTopology networkTopology,
InternalNodeManager nodeManager,
NodeSchedulerConfig config,
NodeTaskMap nodeTaskMap) |
NodeScheduler(NetworkTopology networkTopology,
InternalNodeManager nodeManager,
NodeSchedulerConfig config,
NodeTaskMap nodeTaskMap) |
| Modifier and Type | Method and Description |
|---|---|
static int |
calculateLowWatermark(int maxPendingSplitsPerTask) |
NodeSelector |
createNodeSelector(CatalogName catalogName) |
Map<String,io.airlift.stats.CounterStat> |
getTopologicalSplitCounters() |
static ResettableRandomizedIterator<InternalNode> |
randomizedNodes(NodeMap nodeMap,
boolean includeCoordinator,
Set<InternalNode> excludedNodes) |
static SplitPlacementResult |
selectDistributionNodes(NodeMap nodeMap,
NodeTaskMap nodeTaskMap,
int maxSplitsPerNode,
int maxPendingSplitsPerTask,
Set<Split> splits,
List<RemoteTask> existingTasks,
BucketNodeMap bucketNodeMap) |
static List<InternalNode> |
selectExactNodes(NodeMap nodeMap,
List<HostAddress> hosts,
boolean includeCoordinator) |
static List<InternalNode> |
selectNodes(int limit,
Iterator<InternalNode> candidates) |
void |
stop() |
static com.google.common.util.concurrent.ListenableFuture<?> |
toWhenHasSplitQueueSpaceFuture(List<RemoteTask> existingTasks,
int spaceThreshold) |
static com.google.common.util.concurrent.ListenableFuture<?> |
toWhenHasSplitQueueSpaceFuture(Set<InternalNode> blockedNodes,
List<RemoteTask> existingTasks,
int spaceThreshold) |
@Inject public NodeScheduler(NetworkTopology networkTopology, InternalNodeManager nodeManager, NodeSchedulerConfig config, NodeTaskMap nodeTaskMap)
public NodeScheduler(NetworkLocationCache networkLocationCache, NetworkTopology networkTopology, InternalNodeManager nodeManager, NodeSchedulerConfig config, NodeTaskMap nodeTaskMap)
@PreDestroy public void stop()
public Map<String,io.airlift.stats.CounterStat> getTopologicalSplitCounters()
public NodeSelector createNodeSelector(CatalogName catalogName)
public static List<InternalNode> selectNodes(int limit, Iterator<InternalNode> candidates)
public static ResettableRandomizedIterator<InternalNode> randomizedNodes(NodeMap nodeMap, boolean includeCoordinator, Set<InternalNode> excludedNodes)
public static List<InternalNode> selectExactNodes(NodeMap nodeMap, List<HostAddress> hosts, boolean includeCoordinator)
public static SplitPlacementResult selectDistributionNodes(NodeMap nodeMap, NodeTaskMap nodeTaskMap, int maxSplitsPerNode, int maxPendingSplitsPerTask, Set<Split> splits, List<RemoteTask> existingTasks, BucketNodeMap bucketNodeMap)
public static int calculateLowWatermark(int maxPendingSplitsPerTask)
public static com.google.common.util.concurrent.ListenableFuture<?> toWhenHasSplitQueueSpaceFuture(Set<InternalNode> blockedNodes, List<RemoteTask> existingTasks, int spaceThreshold)
public static com.google.common.util.concurrent.ListenableFuture<?> toWhenHasSplitQueueSpaceFuture(List<RemoteTask> existingTasks, int spaceThreshold)
Copyright © 2012–2019. All rights reserved.