public static final class Protos.CommandInfo.Builder extends <any> implements Protos.CommandInfoOrBuilder
Describes a command, executed via: '/bin/sh -c value'. Any URIs specified are fetched before executing the command. If the executable field for an uri is set, executable file permission is set on the downloaded file. Otherwise, if the downloaded file has a recognized archive extension (currently [compressed] tar and zip) it is extracted into the executor's working directory. This extraction can be disabled by setting `extract` to false. In addition, any environment variables are set before executing the command (so they can be used to "parameterize" your command).Protobuf type
mesos.CommandInfo| Modifier and Type | Method and Description |
|---|---|
Protos.CommandInfo.Builder |
addAllArguments(java.lang.Iterable<java.lang.String> values)
repeated string arguments = 7; |
Protos.CommandInfo.Builder |
addAllUris(java.lang.Iterable<? extends Protos.CommandInfo.URI> values)
repeated .mesos.CommandInfo.URI uris = 1; |
Protos.CommandInfo.Builder |
addArguments(java.lang.String value)
repeated string arguments = 7; |
Protos.CommandInfo.Builder |
addArgumentsBytes(com.google.protobuf.ByteString value)
repeated string arguments = 7; |
Protos.CommandInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.CommandInfo.Builder |
addUris(int index,
Protos.CommandInfo.URI.Builder builderForValue)
repeated .mesos.CommandInfo.URI uris = 1; |
Protos.CommandInfo.Builder |
addUris(int index,
Protos.CommandInfo.URI value)
repeated .mesos.CommandInfo.URI uris = 1; |
Protos.CommandInfo.Builder |
addUris(Protos.CommandInfo.URI.Builder builderForValue)
repeated .mesos.CommandInfo.URI uris = 1; |
Protos.CommandInfo.Builder |
addUris(Protos.CommandInfo.URI value)
repeated .mesos.CommandInfo.URI uris = 1; |
Protos.CommandInfo.URI.Builder |
addUrisBuilder()
repeated .mesos.CommandInfo.URI uris = 1; |
Protos.CommandInfo.URI.Builder |
addUrisBuilder(int index)
repeated .mesos.CommandInfo.URI uris = 1; |
Protos.CommandInfo |
build() |
Protos.CommandInfo |
buildPartial() |
Protos.CommandInfo.Builder |
clear() |
Protos.CommandInfo.Builder |
clearArguments()
repeated string arguments = 7; |
Protos.CommandInfo.Builder |
clearEnvironment()
optional .mesos.Environment environment = 2; |
Protos.CommandInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.CommandInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.CommandInfo.Builder |
clearShell()
There are two ways to specify the command:
1) If 'shell == true', the command will be launched via shell
(i.e., /bin/sh -c 'value').
|
Protos.CommandInfo.Builder |
clearUris()
repeated .mesos.CommandInfo.URI uris = 1; |
Protos.CommandInfo.Builder |
clearUser()
Enables executor and tasks to run as a specific user.
|
Protos.CommandInfo.Builder |
clearValue()
optional string value = 3; |
Protos.CommandInfo.Builder |
clone() |
java.lang.String |
getArguments(int index)
repeated string arguments = 7; |
com.google.protobuf.ByteString |
getArgumentsBytes(int index)
repeated string arguments = 7; |
int |
getArgumentsCount()
repeated string arguments = 7; |
com.google.protobuf.ProtocolStringList |
getArgumentsList()
repeated string arguments = 7; |
Protos.CommandInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Protos.Environment |
getEnvironment()
optional .mesos.Environment environment = 2; |
Protos.Environment.Builder |
getEnvironmentBuilder()
optional .mesos.Environment environment = 2; |
Protos.EnvironmentOrBuilder |
getEnvironmentOrBuilder()
optional .mesos.Environment environment = 2; |
boolean |
getShell()
There are two ways to specify the command:
1) If 'shell == true', the command will be launched via shell
(i.e., /bin/sh -c 'value').
|
Protos.CommandInfo.URI |
getUris(int index)
repeated .mesos.CommandInfo.URI uris = 1; |
Protos.CommandInfo.URI.Builder |
getUrisBuilder(int index)
repeated .mesos.CommandInfo.URI uris = 1; |
java.util.List<Protos.CommandInfo.URI.Builder> |
getUrisBuilderList()
repeated .mesos.CommandInfo.URI uris = 1; |
int |
getUrisCount()
repeated .mesos.CommandInfo.URI uris = 1; |
java.util.List<Protos.CommandInfo.URI> |
getUrisList()
repeated .mesos.CommandInfo.URI uris = 1; |
Protos.CommandInfo.URIOrBuilder |
getUrisOrBuilder(int index)
repeated .mesos.CommandInfo.URI uris = 1; |
java.util.List<? extends Protos.CommandInfo.URIOrBuilder> |
getUrisOrBuilderList()
repeated .mesos.CommandInfo.URI uris = 1; |
java.lang.String |
getUser()
Enables executor and tasks to run as a specific user.
|
com.google.protobuf.ByteString |
getUserBytes()
Enables executor and tasks to run as a specific user.
|
java.lang.String |
getValue()
optional string value = 3; |
com.google.protobuf.ByteString |
getValueBytes()
optional string value = 3; |
boolean |
hasEnvironment()
optional .mesos.Environment environment = 2; |
boolean |
hasShell()
There are two ways to specify the command:
1) If 'shell == true', the command will be launched via shell
(i.e., /bin/sh -c 'value').
|
boolean |
hasUser()
Enables executor and tasks to run as a specific user.
|
boolean |
hasValue()
optional string value = 3; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.CommandInfo.Builder |
mergeEnvironment(Protos.Environment value)
optional .mesos.Environment environment = 2; |
Protos.CommandInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.CommandInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.CommandInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.CommandInfo.Builder |
removeUris(int index)
repeated .mesos.CommandInfo.URI uris = 1; |
Protos.CommandInfo.Builder |
setArguments(int index,
java.lang.String value)
repeated string arguments = 7; |
Protos.CommandInfo.Builder |
setEnvironment(Protos.Environment.Builder builderForValue)
optional .mesos.Environment environment = 2; |
Protos.CommandInfo.Builder |
setEnvironment(Protos.Environment value)
optional .mesos.Environment environment = 2; |
Protos.CommandInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.CommandInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.CommandInfo.Builder |
setShell(boolean value)
There are two ways to specify the command:
1) If 'shell == true', the command will be launched via shell
(i.e., /bin/sh -c 'value').
|
Protos.CommandInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.CommandInfo.Builder |
setUris(int index,
Protos.CommandInfo.URI.Builder builderForValue)
repeated .mesos.CommandInfo.URI uris = 1; |
Protos.CommandInfo.Builder |
setUris(int index,
Protos.CommandInfo.URI value)
repeated .mesos.CommandInfo.URI uris = 1; |
Protos.CommandInfo.Builder |
setUser(java.lang.String value)
Enables executor and tasks to run as a specific user.
|
Protos.CommandInfo.Builder |
setUserBytes(com.google.protobuf.ByteString value)
Enables executor and tasks to run as a specific user.
|
Protos.CommandInfo.Builder |
setValue(java.lang.String value)
optional string value = 3; |
Protos.CommandInfo.Builder |
setValueBytes(com.google.protobuf.ByteString value)
optional string value = 3; |
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.CommandInfo.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.CommandInfo getDefaultInstanceForType()
public Protos.CommandInfo build()
public Protos.CommandInfo buildPartial()
public Protos.CommandInfo.Builder clone()
public Protos.CommandInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.CommandInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.CommandInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.CommandInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.CommandInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.CommandInfo.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.CommandInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic java.util.List<Protos.CommandInfo.URI> getUrisList()
repeated .mesos.CommandInfo.URI uris = 1;getUrisList in interface Protos.CommandInfoOrBuilderpublic int getUrisCount()
repeated .mesos.CommandInfo.URI uris = 1;getUrisCount in interface Protos.CommandInfoOrBuilderpublic Protos.CommandInfo.URI getUris(int index)
repeated .mesos.CommandInfo.URI uris = 1;getUris in interface Protos.CommandInfoOrBuilderpublic Protos.CommandInfo.Builder setUris(int index, Protos.CommandInfo.URI value)
repeated .mesos.CommandInfo.URI uris = 1;public Protos.CommandInfo.Builder setUris(int index, Protos.CommandInfo.URI.Builder builderForValue)
repeated .mesos.CommandInfo.URI uris = 1;public Protos.CommandInfo.Builder addUris(Protos.CommandInfo.URI value)
repeated .mesos.CommandInfo.URI uris = 1;public Protos.CommandInfo.Builder addUris(int index, Protos.CommandInfo.URI value)
repeated .mesos.CommandInfo.URI uris = 1;public Protos.CommandInfo.Builder addUris(Protos.CommandInfo.URI.Builder builderForValue)
repeated .mesos.CommandInfo.URI uris = 1;public Protos.CommandInfo.Builder addUris(int index, Protos.CommandInfo.URI.Builder builderForValue)
repeated .mesos.CommandInfo.URI uris = 1;public Protos.CommandInfo.Builder addAllUris(java.lang.Iterable<? extends Protos.CommandInfo.URI> values)
repeated .mesos.CommandInfo.URI uris = 1;public Protos.CommandInfo.Builder clearUris()
repeated .mesos.CommandInfo.URI uris = 1;public Protos.CommandInfo.Builder removeUris(int index)
repeated .mesos.CommandInfo.URI uris = 1;public Protos.CommandInfo.URI.Builder getUrisBuilder(int index)
repeated .mesos.CommandInfo.URI uris = 1;public Protos.CommandInfo.URIOrBuilder getUrisOrBuilder(int index)
repeated .mesos.CommandInfo.URI uris = 1;getUrisOrBuilder in interface Protos.CommandInfoOrBuilderpublic java.util.List<? extends Protos.CommandInfo.URIOrBuilder> getUrisOrBuilderList()
repeated .mesos.CommandInfo.URI uris = 1;getUrisOrBuilderList in interface Protos.CommandInfoOrBuilderpublic Protos.CommandInfo.URI.Builder addUrisBuilder()
repeated .mesos.CommandInfo.URI uris = 1;public Protos.CommandInfo.URI.Builder addUrisBuilder(int index)
repeated .mesos.CommandInfo.URI uris = 1;public java.util.List<Protos.CommandInfo.URI.Builder> getUrisBuilderList()
repeated .mesos.CommandInfo.URI uris = 1;public boolean hasEnvironment()
optional .mesos.Environment environment = 2;hasEnvironment in interface Protos.CommandInfoOrBuilderpublic Protos.Environment getEnvironment()
optional .mesos.Environment environment = 2;getEnvironment in interface Protos.CommandInfoOrBuilderpublic Protos.CommandInfo.Builder setEnvironment(Protos.Environment value)
optional .mesos.Environment environment = 2;public Protos.CommandInfo.Builder setEnvironment(Protos.Environment.Builder builderForValue)
optional .mesos.Environment environment = 2;public Protos.CommandInfo.Builder mergeEnvironment(Protos.Environment value)
optional .mesos.Environment environment = 2;public Protos.CommandInfo.Builder clearEnvironment()
optional .mesos.Environment environment = 2;public Protos.Environment.Builder getEnvironmentBuilder()
optional .mesos.Environment environment = 2;public Protos.EnvironmentOrBuilder getEnvironmentOrBuilder()
optional .mesos.Environment environment = 2;getEnvironmentOrBuilder in interface Protos.CommandInfoOrBuilderpublic boolean hasShell()
There are two ways to specify the command:
1) If 'shell == true', the command will be launched via shell
(i.e., /bin/sh -c 'value'). The 'value' specified will be
treated as the shell command. The 'arguments' will be ignored.
2) If 'shell == false', the command will be launched by passing
arguments to an executable. The 'value' specified will be
treated as the filename of the executable. The 'arguments'
will be treated as the arguments to the executable. This is
similar to how POSIX exec families launch processes (i.e.,
execlp(value, arguments(0), arguments(1), ...)).
NOTE: The field 'value' is changed from 'required' to 'optional'
in 0.20.0. It will only cause issues if a new framework is
connecting to an old master.
optional bool shell = 6 [default = true];hasShell in interface Protos.CommandInfoOrBuilderpublic boolean getShell()
There are two ways to specify the command:
1) If 'shell == true', the command will be launched via shell
(i.e., /bin/sh -c 'value'). The 'value' specified will be
treated as the shell command. The 'arguments' will be ignored.
2) If 'shell == false', the command will be launched by passing
arguments to an executable. The 'value' specified will be
treated as the filename of the executable. The 'arguments'
will be treated as the arguments to the executable. This is
similar to how POSIX exec families launch processes (i.e.,
execlp(value, arguments(0), arguments(1), ...)).
NOTE: The field 'value' is changed from 'required' to 'optional'
in 0.20.0. It will only cause issues if a new framework is
connecting to an old master.
optional bool shell = 6 [default = true];getShell in interface Protos.CommandInfoOrBuilderpublic Protos.CommandInfo.Builder setShell(boolean value)
There are two ways to specify the command:
1) If 'shell == true', the command will be launched via shell
(i.e., /bin/sh -c 'value'). The 'value' specified will be
treated as the shell command. The 'arguments' will be ignored.
2) If 'shell == false', the command will be launched by passing
arguments to an executable. The 'value' specified will be
treated as the filename of the executable. The 'arguments'
will be treated as the arguments to the executable. This is
similar to how POSIX exec families launch processes (i.e.,
execlp(value, arguments(0), arguments(1), ...)).
NOTE: The field 'value' is changed from 'required' to 'optional'
in 0.20.0. It will only cause issues if a new framework is
connecting to an old master.
optional bool shell = 6 [default = true];public Protos.CommandInfo.Builder clearShell()
There are two ways to specify the command:
1) If 'shell == true', the command will be launched via shell
(i.e., /bin/sh -c 'value'). The 'value' specified will be
treated as the shell command. The 'arguments' will be ignored.
2) If 'shell == false', the command will be launched by passing
arguments to an executable. The 'value' specified will be
treated as the filename of the executable. The 'arguments'
will be treated as the arguments to the executable. This is
similar to how POSIX exec families launch processes (i.e.,
execlp(value, arguments(0), arguments(1), ...)).
NOTE: The field 'value' is changed from 'required' to 'optional'
in 0.20.0. It will only cause issues if a new framework is
connecting to an old master.
optional bool shell = 6 [default = true];public boolean hasValue()
optional string value = 3;hasValue in interface Protos.CommandInfoOrBuilderpublic java.lang.String getValue()
optional string value = 3;getValue in interface Protos.CommandInfoOrBuilderpublic com.google.protobuf.ByteString getValueBytes()
optional string value = 3;getValueBytes in interface Protos.CommandInfoOrBuilderpublic Protos.CommandInfo.Builder setValue(java.lang.String value)
optional string value = 3;public Protos.CommandInfo.Builder clearValue()
optional string value = 3;public Protos.CommandInfo.Builder setValueBytes(com.google.protobuf.ByteString value)
optional string value = 3;public com.google.protobuf.ProtocolStringList getArgumentsList()
repeated string arguments = 7;getArgumentsList in interface Protos.CommandInfoOrBuilderpublic int getArgumentsCount()
repeated string arguments = 7;getArgumentsCount in interface Protos.CommandInfoOrBuilderpublic java.lang.String getArguments(int index)
repeated string arguments = 7;getArguments in interface Protos.CommandInfoOrBuilderpublic com.google.protobuf.ByteString getArgumentsBytes(int index)
repeated string arguments = 7;getArgumentsBytes in interface Protos.CommandInfoOrBuilderpublic Protos.CommandInfo.Builder setArguments(int index, java.lang.String value)
repeated string arguments = 7;public Protos.CommandInfo.Builder addArguments(java.lang.String value)
repeated string arguments = 7;public Protos.CommandInfo.Builder addAllArguments(java.lang.Iterable<java.lang.String> values)
repeated string arguments = 7;public Protos.CommandInfo.Builder clearArguments()
repeated string arguments = 7;public Protos.CommandInfo.Builder addArgumentsBytes(com.google.protobuf.ByteString value)
repeated string arguments = 7;public boolean hasUser()
Enables executor and tasks to run as a specific user. If the user field is present both in FrameworkInfo and here, the CommandInfo user value takes precedence.
optional string user = 5;hasUser in interface Protos.CommandInfoOrBuilderpublic java.lang.String getUser()
Enables executor and tasks to run as a specific user. If the user field is present both in FrameworkInfo and here, the CommandInfo user value takes precedence.
optional string user = 5;getUser in interface Protos.CommandInfoOrBuilderpublic com.google.protobuf.ByteString getUserBytes()
Enables executor and tasks to run as a specific user. If the user field is present both in FrameworkInfo and here, the CommandInfo user value takes precedence.
optional string user = 5;getUserBytes in interface Protos.CommandInfoOrBuilderpublic Protos.CommandInfo.Builder setUser(java.lang.String value)
Enables executor and tasks to run as a specific user. If the user field is present both in FrameworkInfo and here, the CommandInfo user value takes precedence.
optional string user = 5;public Protos.CommandInfo.Builder clearUser()
Enables executor and tasks to run as a specific user. If the user field is present both in FrameworkInfo and here, the CommandInfo user value takes precedence.
optional string user = 5;public Protos.CommandInfo.Builder setUserBytes(com.google.protobuf.ByteString value)
Enables executor and tasks to run as a specific user. If the user field is present both in FrameworkInfo and here, the CommandInfo user value takes precedence.
optional string user = 5;public final Protos.CommandInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.CommandInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)