public class UninstallScheduler extends AbstractScheduler
configStore, schedulerConfig, stateStore, statusExecutor| Modifier | Constructor and Description |
|---|---|
|
UninstallScheduler(ServiceSpec serviceSpec,
StateStore stateStore,
ConfigStore<ServiceSpec> configStore,
SchedulerConfig schedulerConfig)
Creates a new
UninstallScheduler based on the provided API port and initialization timeout, and a
StateStore. |
protected |
UninstallScheduler(ServiceSpec serviceSpec,
StateStore stateStore,
ConfigStore<ServiceSpec> configStore,
SchedulerConfig schedulerConfig,
java.util.Optional<SecretsClient> customSecretsClientForTests) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<Scheduler> |
getMesosScheduler()
Returns a Mesos API
Scheduler object to be registered with Mesos, or an empty Optional if Mesos
registration should not be performed. |
java.util.Collection<java.lang.Object> |
getResources()
Returns a list of API resources to be served by the scheduler to the local cluster.
|
protected PlanCoordinator |
initialize(SchedulerDriver driver)
Performs any additional Scheduler initialization after registration has completed.
|
protected void |
processOffers(SchedulerDriver driver,
java.util.List<Protos.Offer> offers,
java.util.Collection<Step> steps)
The abstract scheduler will periodically call this method with a list of available offers, which may be empty.
|
protected void |
processStatusUpdate(Protos.TaskStatus status)
Handles a task status update which was received from Mesos.
|
awaitOffersProcessed, disableApiServer, disableThreading, getPlans, setOfferQueueSize, startpublic UninstallScheduler(ServiceSpec serviceSpec, StateStore stateStore, ConfigStore<ServiceSpec> configStore, SchedulerConfig schedulerConfig)
UninstallScheduler based on the provided API port and initialization timeout, and a
StateStore. The UninstallScheduler builds an uninstall Plan which will clean up the
service's reservations, TLS artifacts, zookeeper data, and any other artifacts from running the service.protected UninstallScheduler(ServiceSpec serviceSpec, StateStore stateStore, ConfigStore<ServiceSpec> configStore, SchedulerConfig schedulerConfig, java.util.Optional<SecretsClient> customSecretsClientForTests)
public java.util.Optional<Scheduler> getMesosScheduler()
AbstractSchedulerScheduler object to be registered with Mesos, or an empty Optional if Mesos
registration should not be performed.getMesosScheduler in class AbstractSchedulerpublic java.util.Collection<java.lang.Object> getResources()
AbstractSchedulerAbstractScheduler.initialize(SchedulerDriver) has been called.getResources in class AbstractSchedulerprotected PlanCoordinator initialize(SchedulerDriver driver) throws java.lang.InterruptedException
AbstractSchedulerSchedulerDriver may be used to talk to Mesos. Returns a PlanCoordinator which will be used to
select candidate workloads.initialize in class AbstractSchedulerjava.lang.InterruptedExceptionprotected void processOffers(SchedulerDriver driver,
java.util.List<Protos.Offer> offers,
java.util.Collection<Step> steps)
AbstractSchedulerprocessOffers in class AbstractSchedulerprotected void processStatusUpdate(Protos.TaskStatus status)
AbstractSchedulerprocessStatusUpdate in class AbstractScheduler