public static final class Protos.CommandInfo extends com.google.protobuf.GeneratedMessage implements Protos.CommandInfoOrBuilder
mesos.v1.CommandInfo
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).
Modifier and Type | Class and Description |
---|---|
static class |
Protos.CommandInfo.Builder
Protobuf type
mesos.v1.CommandInfo |
static class |
Protos.CommandInfo.URI
Protobuf type
mesos.v1.CommandInfo.URI |
static interface |
Protos.CommandInfo.URIOrBuilder |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>
Modifier and Type | Field and Description |
---|---|
static int |
ARGUMENTS_FIELD_NUMBER |
static int |
ENVIRONMENT_FIELD_NUMBER |
static com.google.protobuf.Parser<Protos.CommandInfo> |
PARSER |
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 |
---|---|
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.v1.Environment environment = 2; |
Protos.EnvironmentOrBuilder |
getEnvironmentOrBuilder()
optional .mesos.v1.Environment environment = 2; |
com.google.protobuf.Parser<Protos.CommandInfo> |
getParserForType() |
int |
getSerializedSize() |
boolean |
getShell()
optional bool shell = 6 [default = true]; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Protos.CommandInfo.URI |
getUris(int index)
repeated .mesos.v1.CommandInfo.URI uris = 1; |
int |
getUrisCount()
repeated .mesos.v1.CommandInfo.URI uris = 1; |
List<Protos.CommandInfo.URI> |
getUrisList()
repeated .mesos.v1.CommandInfo.URI uris = 1; |
Protos.CommandInfo.URIOrBuilder |
getUrisOrBuilder(int index)
repeated .mesos.v1.CommandInfo.URI uris = 1; |
List<? extends Protos.CommandInfo.URIOrBuilder> |
getUrisOrBuilderList()
repeated .mesos.v1.CommandInfo.URI uris = 1; |
String |
getUser()
optional string user = 5; |
com.google.protobuf.ByteString |
getUserBytes()
optional string user = 5; |
String |
getValue()
optional string value = 3; |
com.google.protobuf.ByteString |
getValueBytes()
optional string value = 3; |
boolean |
hasEnvironment()
optional .mesos.v1.Environment environment = 2; |
boolean |
hasShell()
optional bool shell = 6 [default = true]; |
boolean |
hasUser()
optional string user = 5; |
boolean |
hasValue()
optional string value = 3; |
protected com.google.protobuf.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) |
static Protos.CommandInfo |
parseDelimitedFrom(InputStream input) |
static Protos.CommandInfo |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.CommandInfo |
parseFrom(byte[] data) |
static Protos.CommandInfo |
parseFrom(byte[] 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(InputStream input) |
static Protos.CommandInfo |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.CommandInfo.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static com.google.protobuf.Parser<Protos.CommandInfo> PARSER
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
public static Protos.CommandInfo getDefaultInstance()
public Protos.CommandInfo getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<Protos.CommandInfo> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public List<Protos.CommandInfo.URI> getUrisList()
repeated .mesos.v1.CommandInfo.URI uris = 1;
getUrisList
in interface Protos.CommandInfoOrBuilder
public List<? extends Protos.CommandInfo.URIOrBuilder> getUrisOrBuilderList()
repeated .mesos.v1.CommandInfo.URI uris = 1;
getUrisOrBuilderList
in interface Protos.CommandInfoOrBuilder
public int getUrisCount()
repeated .mesos.v1.CommandInfo.URI uris = 1;
getUrisCount
in interface Protos.CommandInfoOrBuilder
public Protos.CommandInfo.URI getUris(int index)
repeated .mesos.v1.CommandInfo.URI uris = 1;
getUris
in interface Protos.CommandInfoOrBuilder
public Protos.CommandInfo.URIOrBuilder getUrisOrBuilder(int index)
repeated .mesos.v1.CommandInfo.URI uris = 1;
getUrisOrBuilder
in interface Protos.CommandInfoOrBuilder
public boolean hasEnvironment()
optional .mesos.v1.Environment environment = 2;
hasEnvironment
in interface Protos.CommandInfoOrBuilder
public Protos.Environment getEnvironment()
optional .mesos.v1.Environment environment = 2;
getEnvironment
in interface Protos.CommandInfoOrBuilder
public Protos.EnvironmentOrBuilder getEnvironmentOrBuilder()
optional .mesos.v1.Environment environment = 2;
getEnvironmentOrBuilder
in interface Protos.CommandInfoOrBuilder
public boolean hasShell()
optional bool shell = 6 [default = true];
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.
hasShell
in interface Protos.CommandInfoOrBuilder
public boolean getShell()
optional bool shell = 6 [default = true];
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.
getShell
in interface Protos.CommandInfoOrBuilder
public boolean hasValue()
optional string value = 3;
hasValue
in interface Protos.CommandInfoOrBuilder
public String getValue()
optional string value = 3;
getValue
in interface Protos.CommandInfoOrBuilder
public com.google.protobuf.ByteString getValueBytes()
optional string value = 3;
getValueBytes
in interface Protos.CommandInfoOrBuilder
public com.google.protobuf.ProtocolStringList getArgumentsList()
repeated string arguments = 7;
getArgumentsList
in interface Protos.CommandInfoOrBuilder
public int getArgumentsCount()
repeated string arguments = 7;
getArgumentsCount
in interface Protos.CommandInfoOrBuilder
public String getArguments(int index)
repeated string arguments = 7;
getArguments
in interface Protos.CommandInfoOrBuilder
public com.google.protobuf.ByteString getArgumentsBytes(int index)
repeated string arguments = 7;
getArgumentsBytes
in interface Protos.CommandInfoOrBuilder
public boolean hasUser()
optional string user = 5;
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.
hasUser
in interface Protos.CommandInfoOrBuilder
public String getUser()
optional string user = 5;
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.
getUser
in interface Protos.CommandInfoOrBuilder
public com.google.protobuf.ByteString getUserBytes()
optional string user = 5;
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.
getUserBytes
in interface Protos.CommandInfoOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static Protos.CommandInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.CommandInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.CommandInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.CommandInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.CommandInfo parseFrom(InputStream input) throws IOException
IOException
public static Protos.CommandInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.CommandInfo parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Protos.CommandInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.CommandInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Protos.CommandInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.CommandInfo.Builder newBuilder()
public Protos.CommandInfo.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Protos.CommandInfo.Builder newBuilder(Protos.CommandInfo prototype)
public Protos.CommandInfo.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Protos.CommandInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2017 The Apache Software Foundation. All Rights Reserved.