Class DefaultScheduler
- java.lang.Object
-
- uk.co.ractf.polaris.controller.scheduler.DefaultScheduler
-
-
Constructor Summary
Constructors Constructor Description DefaultScheduler(SchedulingAlgorithm schedulingAlgorithm, ClusterState clusterState, java.util.Set<InstanceDecoratorPlugin> instanceDecoratorPlugins, com.codahale.metrics.MetricRegistry metricRegistry, NotificationFacade notifications)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deschedule(uk.co.ractf.polaris.api.task.Task task)
uk.co.ractf.polaris.api.instance.Instance
schedule(uk.co.ractf.polaris.api.task.Task task)
void
start()
void
stop()
-
-
-
Constructor Detail
-
DefaultScheduler
@Inject public DefaultScheduler(SchedulingAlgorithm schedulingAlgorithm, ClusterState clusterState, java.util.Set<InstanceDecoratorPlugin> instanceDecoratorPlugins, com.codahale.metrics.MetricRegistry metricRegistry, NotificationFacade notifications)
-
-
Method Detail
-
start
public void start()
- Specified by:
start
in interfaceio.dropwizard.lifecycle.Managed
-
schedule
@CanIgnoreReturnValue public uk.co.ractf.polaris.api.instance.Instance schedule(uk.co.ractf.polaris.api.task.Task task)
-
deschedule
public void deschedule(uk.co.ractf.polaris.api.task.Task task)
- Specified by:
deschedule
in interfaceScheduler
-
stop
public void stop()
- Specified by:
stop
in interfaceio.dropwizard.lifecycle.Managed
-
-