public class LaunchCommandBuilder
extends java.lang.Object
LaunchPod for
Jenkins agents.| Modifier and Type | Class and Description |
|---|---|
static class |
LaunchCommandBuilder.AgentCommandStyle |
| Constructor and Description |
|---|
LaunchCommandBuilder() |
| Modifier and Type | Method and Description |
|---|---|
com.mesosphere.usi.core.models.commands.LaunchPod |
build() |
LaunchCommandBuilder |
withAdditionalFetchUris(java.util.List<com.mesosphere.usi.core.models.template.FetchUri> additionalFetchUris) |
LaunchCommandBuilder |
withAgentAttribute(java.lang.String agentAttribute) |
LaunchCommandBuilder |
withAgentCommandStyle(java.util.Optional<LaunchCommandBuilder.AgentCommandStyle> maybeStyle) |
LaunchCommandBuilder |
withContainerInfo(java.util.Optional<MesosAgentSpecTemplate.ContainerInfo> containerInfo) |
LaunchCommandBuilder |
withCpu(java.lang.Double cpus) |
LaunchCommandBuilder |
withDisk(java.lang.Double disk) |
LaunchCommandBuilder |
withDomainInfoFilter(java.util.Optional<com.mesosphere.usi.core.models.faultdomain.DomainFilter> domainInfoFilter) |
LaunchCommandBuilder |
withJenkinsUrl(java.net.URL url) |
LaunchCommandBuilder |
withJnlpArguments(java.lang.String args) |
LaunchCommandBuilder |
withMemory(int memory)
Sets the maximum memory pool for the JVM aka Xmx.
|
LaunchCommandBuilder |
withName(java.lang.String name)
Sets the name of the Mesos task.
|
LaunchCommandBuilder |
withRole(java.lang.String role) |
public LaunchCommandBuilder withName(java.lang.String name)
name - Unique name of Mesos task.public LaunchCommandBuilder withCpu(java.lang.Double cpus)
public LaunchCommandBuilder withMemory(int memory)
JVM_XMX more memory allocated.memory - Memory in megabyte.public LaunchCommandBuilder withDisk(java.lang.Double disk)
public LaunchCommandBuilder withJenkinsUrl(java.net.URL url)
public LaunchCommandBuilder withRole(java.lang.String role)
public LaunchCommandBuilder withContainerInfo(java.util.Optional<MesosAgentSpecTemplate.ContainerInfo> containerInfo)
public LaunchCommandBuilder withDomainInfoFilter(java.util.Optional<com.mesosphere.usi.core.models.faultdomain.DomainFilter> domainInfoFilter)
public LaunchCommandBuilder withAdditionalFetchUris(java.util.List<com.mesosphere.usi.core.models.template.FetchUri> additionalFetchUris)
public LaunchCommandBuilder withAgentCommandStyle(java.util.Optional<LaunchCommandBuilder.AgentCommandStyle> maybeStyle)
public LaunchCommandBuilder withJnlpArguments(java.lang.String args)
public LaunchCommandBuilder withAgentAttribute(java.lang.String agentAttribute)
public com.mesosphere.usi.core.models.commands.LaunchPod build()
throws java.net.MalformedURLException,
java.net.URISyntaxException
java.net.MalformedURLExceptionjava.net.URISyntaxException