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,
String slavesUser,
String principal,
String secret,
List<MesosSlaveInfo> slaveInfos,
boolean checkpoint,
boolean onDemandRegistration,
String jenkinsURL) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProvision(hudson.model.Label label) |
boolean |
equals(Object o) |
static MesosCloud |
get() |
String |
getDescription() |
MesosCloud.DescriptorImpl |
getDescriptor() |
String |
getFrameworkName() |
String |
getJenkinsURL() |
String |
getMaster() |
String |
getNativeLibraryPath() |
String |
getPrincipal() |
String |
getSecret() |
net.sf.json.JSONObject |
getSlaveAttributeForLabel(String labelName)
Retrieves the slaveattribute corresponding to label name.
|
List<MesosSlaveInfo> |
getSlaveInfos() |
String |
getSlavesUser() |
int |
hashCode() |
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 |
setJenkinsURL(String jenkinsURL) |
void |
setMaster(String master) |
void |
setNativeLibraryPath(String nativeLibraryPath) |
void |
setOnDemandRegistration(boolean onDemandRegistration) |
void |
setPrincipal(String principal) |
void |
setSecret(String secret) |
void |
setSlaveInfos(List<MesosSlaveInfo> slaveInfos) |
void |
setSlavesUser(String slavesUser) |
all, checkPermission, getACL, getDisplayName, getSearchUrl, hasPermission@DataBoundConstructor public MesosCloud(String nativeLibraryPath, String master, String description, String frameworkName, String slavesUser, String principal, String secret, List<MesosSlaveInfo> slaveInfos, boolean checkpoint, boolean onDemandRegistration, String jenkinsURL) 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 String getSlavesUser()
public void setSlavesUser(String slavesUser)
public String getPrincipal()
public void setPrincipal(String principal)
public String getSecret()
public void setSecret(String secret)
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)
labelName - The Jenkins label name.public String getJenkinsURL()
public void setJenkinsURL(String jenkinsURL)
Copyright © 2004-2015. All Rights Reserved.