public class LaunchCommandBuilder
extends java.lang.Object
LaunchPod for
Jenkins agents.| 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 |
withContainerInfo(java.util.Optional<MesosAgentSpecTemplate.ContainerInfo> containerInfo) |
LaunchCommandBuilder |
withCpu(java.lang.Double cpus) |
LaunchCommandBuilder |
withDisk(java.lang.Double disk) |
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 withAdditionalFetchUris(java.util.List<com.mesosphere.usi.core.models.template.FetchUri> additionalFetchUris)
public LaunchCommandBuilder withJnlpArguments(java.lang.String args)
public com.mesosphere.usi.core.models.commands.LaunchPod build()
throws java.net.MalformedURLException,
java.net.URISyntaxException
java.net.MalformedURLExceptionjava.net.URISyntaxException