public class MesosCloud
extends hudson.slaves.Cloud
| Modifier and Type | Class and Description |
|---|---|
static class |
MesosCloud.DescriptorImpl |
| Constructor and Description |
|---|
MesosCloud(String nativeLibraryPath,
String master,
String description,
String frameworkName,
List<MesosSlaveInfo> slaveInfos,
boolean checkpoint,
boolean onDemandRegistration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProvision(hudson.model.Label label) |
static MesosCloud |
get() |
String |
getDescription() |
MesosCloud.DescriptorImpl |
getDescriptor() |
String |
getFrameworkName() |
String |
getMaster() |
String |
getNativeLibraryPath() |
net.sf.json.JSONObject |
getSlaveAttributeForLabel(String labelName)
Retrieves the slaveattribute corresponding to label name.
|
List<MesosSlaveInfo> |
getSlaveInfos() |
static void |
init()
We want to start the Mesos scheduler as part of the initialization of Jenkins
and after the cloud class values have been restored from persistence.If this is
the very first time, this method will be NOOP as MesosCloud is not registered yet.
|
boolean |
isCheckpoint() |
boolean |
isOnDemandRegistration() |
Collection<hudson.slaves.NodeProvisioner.PlannedNode> |
provision(hudson.model.Label label,
int excessWorkload) |
void |
restartMesos() |
void |
setDescription(String description) |
void |
setFrameworkName(String frameworkName) |
void |
setMaster(String master) |
void |
setNativeLibraryPath(String nativeLibraryPath) |
void |
setOnDemandRegistration(boolean onDemandRegistration) |
void |
setSlaveInfos(List<MesosSlaveInfo> slaveInfos) |
all, checkPermission, getACL, getDisplayName, getSearchUrl, hasPermission@DataBoundConstructor public MesosCloud(String nativeLibraryPath, String master, String description, String frameworkName, List<MesosSlaveInfo> slaveInfos, boolean checkpoint, boolean onDemandRegistration) throws NumberFormatException
NumberFormatException@Initializer(after=JOB_LOADED) public static void init()
public void restartMesos()
public Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int excessWorkload)
provision in class hudson.slaves.Cloudpublic List<MesosSlaveInfo> getSlaveInfos()
public void setSlaveInfos(List<MesosSlaveInfo> slaveInfos)
public boolean canProvision(hudson.model.Label label)
canProvision in class hudson.slaves.Cloudpublic String getNativeLibraryPath()
public void setNativeLibraryPath(String nativeLibraryPath)
public String getMaster()
public void setMaster(String master)
public String getDescription()
public void setDescription(String description)
public String getFrameworkName()
public void setFrameworkName(String frameworkName)
public boolean isOnDemandRegistration()
public void setOnDemandRegistration(boolean onDemandRegistration)
public MesosCloud.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.slaves.Cloud>getDescriptor in class hudson.slaves.Cloudpublic static MesosCloud get()
public boolean isCheckpoint()
public net.sf.json.JSONObject getSlaveAttributeForLabel(String labelName)
Jenkins - label name.Copyright © 2004-2014. All Rights Reserved.