public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.mesos.Protos.Value.Range |
range(long begin,
long end)
Construct a range value.
|
static org.apache.mesos.Protos.Resource |
ranges(String name,
String role,
org.apache.mesos.Protos.Value.Range... ranges)
Construct a ranges resource value.
|
static org.apache.mesos.Protos.Resource |
scalar(String name,
String role,
double value)
Construct a scalar resource value.
|
static org.apache.mesos.Protos.CommandInfo.URI |
uri(MesosArtifactResolver resolver,
ContainerSpecification.Artifact artifact)
Construct a Mesos URI.
|
static org.apache.mesos.Protos.CommandInfo.URI |
uri(URL url,
boolean cacheable)
Construct a Mesos URI.
|
static org.apache.mesos.Protos.Environment.Variable |
variable(String name,
String value)
Construct a Mesos environment variable.
|
public static org.apache.mesos.Protos.Environment.Variable variable(String name, String value)
public static org.apache.mesos.Protos.CommandInfo.URI uri(URL url, boolean cacheable)
public static org.apache.mesos.Protos.CommandInfo.URI uri(MesosArtifactResolver resolver, ContainerSpecification.Artifact artifact)
public static org.apache.mesos.Protos.Resource scalar(String name, String role, double value)
public static org.apache.mesos.Protos.Value.Range range(long begin, long end)
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.