public class MesosCloud
extends hudson.slaves.Cloud
| Modifier and Type | Class and Description |
|---|---|
static class |
MesosCloud.DescriptorImpl |
| Modifier | Constructor and Description |
|---|---|
|
MesosCloud(String name,
MesosCloud source)
Copy constructor.
|
|
MesosCloud(String nativeLibraryPath,
String master,
String description,
String frameworkName,
String slavesUser,
String principal,
String secret,
List<MesosSlaveInfo> slaveInfos,
boolean checkpoint,
boolean onDemandRegistration,
String jenkinsURL) |
protected |
MesosCloud(String cloudName,
String nativeLibraryPath,
String master,
String description,
String frameworkName,
String slavesUser,
String principal,
String secret,
List<MesosSlaveInfo> slaveInfos,
boolean checkpoint,
boolean onDemandRegistration,
String jenkinsURL)
Constructor, which also allows to specify a custom name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProvision(hudson.model.Label label) |
boolean |
equals(Object o) |
static MesosCloud |
get() |
com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials |
getCredentials()
Returns the credentials object associated with the stored credentialsId.
|
String |
getCredentialsId() |
String |
getDescription() |
MesosCloud.DescriptorImpl |
getDescriptor() |
String |
getFrameworkName() |
String |
getJenkinsURL() |
String |
getMaster() |
String |
getNativeLibraryPath() |
String |
getPrincipal()
Deprecated.
Use MesosCloud#getCredentials().getUsername() instead.
|
String |
getSecret()
Deprecated.
Use MesosCloud#getCredentials().getPassword() instead.
|
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) |
protected Object |
readResolve() |
void |
restartMesos() |
void |
setCredentialsId(String credentialsId) |
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)
Deprecated.
Define credentials and use MesosCloud#setCredentialsId instead.
|
void |
setSecret(String secret)
Deprecated.
Define credentials and use MesosCloud#setCredentialsId instead.
|
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
NumberFormatExceptionprotected MesosCloud(String cloudName, 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 - Numeric parameter parsing errorpublic MesosCloud(@Nonnull String name, @Nonnull MesosCloud source)
name - Name of the cloud to be createdsource - Source Mesos cloud implementation@Initializer(after=JOB_LOADED) public static void init()
public void restartMesos()
public com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials getCredentials()
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)
@Deprecated public String getPrincipal()
@Deprecated public void setPrincipal(String principal)
principal - public String getCredentialsId()
@DataBoundSetter public void setCredentialsId(String credentialsId)
@Deprecated public String getSecret()
@Deprecated public void setSecret(String secret)
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.protected Object readResolve()
public String getJenkinsURL()
public void setJenkinsURL(String jenkinsURL)
Copyright © 2004-2016. All Rights Reserved.