public class DefaultSchedulerFactory extends Object implements SchedulerFactory
SchedulerFactory
.Constructor and Description |
---|
DefaultSchedulerFactory(SlotSelectionStrategy slotSelectionStrategy) |
Modifier and Type | Method and Description |
---|---|
Scheduler |
createScheduler(SlotPool slotPool)
Creates a new scheduler instance that uses the given
SlotPool to allocate slots. |
static DefaultSchedulerFactory |
fromConfiguration(Configuration configuration) |
public DefaultSchedulerFactory(@Nonnull SlotSelectionStrategy slotSelectionStrategy)
@Nonnull public Scheduler createScheduler(@Nonnull SlotPool slotPool)
SchedulerFactory
SlotPool
to allocate slots.createScheduler
in interface SchedulerFactory
public static DefaultSchedulerFactory fromConfiguration(@Nonnull Configuration configuration)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.