public static final class Protos.CommandInfo extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
Protos.CommandInfo.Builder
Describes a command, executed via: '/bin/sh -c value'.
|
static class |
Protos.CommandInfo.URI
Protobuf type
mesos.CommandInfo.URI |
static interface |
Protos.CommandInfo.URIOrBuilder |
| Modifier and Type | Field and Description |
|---|---|
static int |
ARGUMENTS_FIELD_NUMBER |
static int |
ENVIRONMENT_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
static int |
SHELL_FIELD_NUMBER |
static int |
URIS_FIELD_NUMBER |
static int |
USER_FIELD_NUMBER |
static int |
VALUE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
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; |
static Protos.CommandInfo |
getDefaultInstance() |
Protos.CommandInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Protos.Environment |
getEnvironment()
optional .mesos.Environment environment = 2; |
Protos.EnvironmentOrBuilder |
getEnvironmentOrBuilder()
optional .mesos.Environment environment = 2; |
<any> |
getParserForType() |
int |
getSerializedSize() |
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').
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Protos.CommandInfo.URI |
getUris(int index)
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; |
int |
hashCode() |
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() |
static Protos.CommandInfo.Builder |
newBuilder() |
static Protos.CommandInfo.Builder |
newBuilder(Protos.CommandInfo prototype) |
Protos.CommandInfo.Builder |
newBuilderForType() |
protected Protos.CommandInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.CommandInfo |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.CommandInfo |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.CommandInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.CommandInfo |
parseFrom(java.nio.ByteBuffer data) |
static Protos.CommandInfo |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.CommandInfo |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.CommandInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.CommandInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.CommandInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.CommandInfo |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.CommandInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int URIS_FIELD_NUMBER
public static final int ENVIRONMENT_FIELD_NUMBER
public static final int SHELL_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
public static final int ARGUMENTS_FIELD_NUMBER
public static final int USER_FIELD_NUMBER
@Deprecated public static final <any> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public java.util.List<Protos.CommandInfo.URI> getUrisList()
repeated .mesos.CommandInfo.URI uris = 1;getUrisList in interface Protos.CommandInfoOrBuilderpublic java.util.List<? extends Protos.CommandInfo.URIOrBuilder> getUrisOrBuilderList()
repeated .mesos.CommandInfo.URI uris = 1;getUrisOrBuilderList 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.URIOrBuilder getUrisOrBuilder(int index)
repeated .mesos.CommandInfo.URI uris = 1;getUrisOrBuilder in interface Protos.CommandInfoOrBuilderpublic 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.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 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 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 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 final boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
java.io.IOExceptionpublic int getSerializedSize()
public boolean equals(java.lang.Object obj)
public int hashCode()
public static Protos.CommandInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.CommandInfo parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.CommandInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.CommandInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.CommandInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.CommandInfo parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.CommandInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.CommandInfo parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.CommandInfo parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.CommandInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Protos.CommandInfo.Builder newBuilderForType()
public static Protos.CommandInfo.Builder newBuilder()
public static Protos.CommandInfo.Builder newBuilder(Protos.CommandInfo prototype)
public Protos.CommandInfo.Builder toBuilder()
protected Protos.CommandInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.CommandInfo getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.CommandInfo getDefaultInstanceForType()