public class MesosImpl extends Mesos
Mesos.GarbageCollectorImpl, Mesos.JenkinsSlave, Mesos.SlaveRequest| Constructor and Description |
|---|
MesosImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.mesos.Scheduler |
getScheduler() |
boolean |
isSchedulerRunning() |
void |
startJenkinsSlave(Mesos.SlaveRequest request,
org.jenkinsci.plugins.mesos.Mesos.SlaveResult result)
Starts a jenkins slave asynchronously in the mesos cluster.
|
void |
startScheduler(String jenkinsMaster,
MesosCloud mesosCloud) |
void |
stopJenkinsSlave(String name)
Stop a jenkins slave asynchronously in the mesos cluster.
|
boolean |
stopScheduler(boolean force)
Stops the scheduler.
|
void |
updateScheduler(String jenkinsMaster,
MesosCloud mesosCloud) |
getAllClouds, getInstance, stopSchedulerpublic void startScheduler(String jenkinsMaster, MesosCloud mesosCloud)
startScheduler in class Mesospublic boolean isSchedulerRunning()
isSchedulerRunning in class Mesospublic boolean stopScheduler(boolean force)
MesosstopScheduler in class Mesosforce - false to stop the scheduler gracefully, true to force stoptrue if the scheduler is stopped after the call, false otherwise.public void startJenkinsSlave(Mesos.SlaveRequest request, org.jenkinsci.plugins.mesos.Mesos.SlaveResult result)
MesosstartJenkinsSlave in class Mesosrequest - slave request.result - this callback will be called when the slave starts.public void stopJenkinsSlave(String name)
MesosstopJenkinsSlave in class Mesosname - jenkins slave.public void updateScheduler(String jenkinsMaster, MesosCloud mesosCloud)
updateScheduler in class Mesospublic org.apache.mesos.Scheduler getScheduler()
getScheduler in class MesosCopyright © 2016. All rights reserved.