This project has retired. For details please refer to its Attic page.
Protos.CommandInfo
JavaScript is disabled on your browser.
Skip navigation links
org.apache.mesos

Class Protos.CommandInfo

  • All Implemented Interfaces:
    Protos.CommandInfoOrBuilder
    Enclosing class:
    Protos


    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
    • Field Detail

      • ENVIRONMENT_FIELD_NUMBER

        public static final int ENVIRONMENT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PARSER

        @Deprecated
        public static final <any> PARSER
        Deprecated.
    • Method Detail

      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      • hasShell

        public 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];
        Specified by:
        hasShell in interface Protos.CommandInfoOrBuilder
      • getShell

        public 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];
        Specified by:
        getShell in interface Protos.CommandInfoOrBuilder
      • hasUser

        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;
        Specified by:
        hasUser in interface Protos.CommandInfoOrBuilder
      • getUser

        public 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;
        Specified by:
        getUser in interface Protos.CommandInfoOrBuilder
      • getUserBytes

        public 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;
        Specified by:
        getUserBytes in interface Protos.CommandInfoOrBuilder
      • isInitialized

        public final boolean isInitialized()
      • writeTo

        public void writeTo(com.google.protobuf.CodedOutputStream output)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
      • equals

        public boolean equals(java.lang.Object obj)
      • hashCode

        public int hashCode()
      • parseFrom

        public static Protos.CommandInfo parseFrom(java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.CommandInfo parseFrom(java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.CommandInfo parseFrom(com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.CommandInfo parseFrom(com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.CommandInfo parseFrom(byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.CommandInfo parseFrom(java.io.InputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Protos.CommandInfo parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Protos.CommandInfo parseDelimitedFrom(java.io.InputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Protos.CommandInfo parseFrom(com.google.protobuf.CodedInputStream input)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Protos.CommandInfo parseFrom(com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        protected Protos.CommandInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      • parser

        public static <any> parser()
      • getParserForType

        public <any> getParserForType()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /