org.jenkinsci.plugins.mesos
Class Mesos

java.lang.Object
  extended by org.jenkinsci.plugins.mesos.Mesos
Direct Known Subclasses:
Mesos.MesosImpl

public abstract class Mesos
extends Object


Nested Class Summary
static class Mesos.JenkinsSlave
           
static class Mesos.MesosImpl
           
static class Mesos.SlaveRequest
           
 
Constructor Summary
Mesos()
           
 
Method Summary
static Mesos getInstance()
           
abstract  org.apache.mesos.Scheduler getScheduler()
           
abstract  boolean isSchedulerRunning()
           
abstract  void startJenkinsSlave(Mesos.SlaveRequest request, org.jenkinsci.plugins.mesos.Mesos.SlaveResult result)
          Starts a jenkins slave asynchronously in the mesos cluster.
abstract  void startScheduler(String jenkinsMaster, MesosCloud mesosCloud)
           
abstract  void stopJenkinsSlave(String name)
          Stop a jenkins slave asynchronously in the mesos cluster.
abstract  void stopScheduler()
           
abstract  void updateScheduler(MesosCloud mesosCloud)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mesos

public Mesos()
Method Detail

startScheduler

public abstract void startScheduler(String jenkinsMaster,
                                    MesosCloud mesosCloud)

updateScheduler

public abstract void updateScheduler(MesosCloud mesosCloud)

isSchedulerRunning

public abstract boolean isSchedulerRunning()

stopScheduler

public abstract void stopScheduler()

getScheduler

public abstract org.apache.mesos.Scheduler getScheduler()

startJenkinsSlave

public abstract void startJenkinsSlave(Mesos.SlaveRequest request,
                                       org.jenkinsci.plugins.mesos.Mesos.SlaveResult result)
Starts a jenkins slave asynchronously in the mesos cluster.

Parameters:
request - slave request.
result - this callback will be called when the slave starts.

stopJenkinsSlave

public abstract void stopJenkinsSlave(String name)
Stop a jenkins slave asynchronously in the mesos cluster.

Parameters:
name - jenkins slave.

getInstance

public static Mesos getInstance()
Returns:
the mesos implementation instance


Copyright © 2004-2014. All Rights Reserved.