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 voiddeschedule(uk.co.ractf.polaris.api.task.Task task)uk.co.ractf.polaris.api.instance.Instanceschedule(uk.co.ractf.polaris.api.task.Task task)voidstart()voidstop()
-
-
-
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:
startin 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:
deschedulein interfaceScheduler
-
stop
public void stop()
- Specified by:
stopin interfaceio.dropwizard.lifecycle.Managed
-
-