public class MesosAgentSpecTemplate extends hudson.model.AbstractDescribableImpl<MesosAgentSpecTemplate>
| Modifier and Type | Class and Description |
|---|---|
static class |
MesosAgentSpecTemplate.ContainerInfo |
static class |
MesosAgentSpecTemplate.DescriptorImpl |
static class |
MesosAgentSpecTemplate.Volume |
| Constructor and Description |
|---|
MesosAgentSpecTemplate(java.lang.String label,
hudson.model.Node.Mode mode,
java.lang.String cpus,
java.lang.String mem,
int idleTerminationMinutes,
int minExecutors,
int maxExecutors,
java.lang.String disk,
java.lang.String jnlpArgs,
java.lang.String agentAttributes,
java.util.List<MesosSlaveInfo.URI> additionalURIs,
MesosAgentSpecTemplate.ContainerInfo containerInfo,
LaunchCommandBuilder.AgentCommandStyle agentCommandStyle,
DomainFilterModel domainFilterModel) |
| Modifier and Type | Method and Description |
|---|---|
com.mesosphere.usi.core.models.commands.LaunchPod |
buildLaunchCommand(java.net.URL jenkinsUrl,
java.lang.String name,
java.lang.String role)
Creates a LaunchPod command to to create a new Jenkins agent via USI
|
java.lang.String |
generateName()
Generate a new unique name for a new agent.
|
java.util.List<MesosSlaveInfo.URI> |
getAdditionalURIs() |
java.lang.String |
getAgentAttributes() |
LaunchCommandBuilder.AgentCommandStyle |
getAgentCommandStyle() |
MesosAgentSpecTemplate.ContainerInfo |
getContainerInfo() |
double |
getCpus() |
double |
getDisk() |
DomainFilterModel |
getDomainFilterModel() |
int |
getIdleTerminationMinutes() |
java.lang.String |
getJnlpArgs() |
java.lang.String |
getLabel() |
java.util.Set<hudson.model.labels.LabelAtom> |
getLabelSet() |
int |
getMaxExecutors() |
int |
getMem() |
int |
getMinExecutors() |
hudson.model.Node.Mode |
getMode() |
boolean |
getReusable() |
@DataBoundConstructor
public MesosAgentSpecTemplate(java.lang.String label,
hudson.model.Node.Mode mode,
java.lang.String cpus,
java.lang.String mem,
int idleTerminationMinutes,
int minExecutors,
int maxExecutors,
java.lang.String disk,
java.lang.String jnlpArgs,
java.lang.String agentAttributes,
java.util.List<MesosSlaveInfo.URI> additionalURIs,
MesosAgentSpecTemplate.ContainerInfo containerInfo,
LaunchCommandBuilder.AgentCommandStyle agentCommandStyle,
DomainFilterModel domainFilterModel)
public com.mesosphere.usi.core.models.commands.LaunchPod buildLaunchCommand(java.net.URL jenkinsUrl,
java.lang.String name,
java.lang.String role)
throws java.net.MalformedURLException,
java.net.URISyntaxException
jenkinsUrl - the URL of the jenkins master.name - The name of the node to launch.role - The Mesos role for the task.java.net.MalformedURLException - If a fetch URL is not well formed.java.net.URISyntaxException - IF the fetch URL cannot be converted into a proper URI.public java.lang.String getLabel()
public java.util.Set<hudson.model.labels.LabelAtom> getLabelSet()
public hudson.model.Node.Mode getMode()
public java.lang.String generateName()
public double getCpus()
public double getDisk()
public int getMem()
public int getIdleTerminationMinutes()
public boolean getReusable()
public java.util.List<MesosSlaveInfo.URI> getAdditionalURIs()
public int getMinExecutors()
public int getMaxExecutors()
public LaunchCommandBuilder.AgentCommandStyle getAgentCommandStyle()
public java.lang.String getJnlpArgs()
public java.lang.String getAgentAttributes()
public MesosAgentSpecTemplate.ContainerInfo getContainerInfo()
public DomainFilterModel getDomainFilterModel()