This project has retired. For details please refer to its Attic page.
Protos.CommandInfo.Builder
JavaScript is disabled on your browser.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
org.apache.mesos

Class Protos.CommandInfo.Builder

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


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

      • getDescriptor

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

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

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      • setField

        public Protos.CommandInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field,
         java.lang.Object value)
      • setRepeatedField

        public Protos.CommandInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
         int index,
         java.lang.Object value)
      • addRepeatedField

        public Protos.CommandInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
         java.lang.Object value)
      • isInitialized

        public final boolean isInitialized()
      • mergeFrom

        public Protos.CommandInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • 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
      • setShell

        public 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];
      • clearShell

        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];
      • addAllArguments

        public Protos.CommandInfo.Builder addAllArguments(java.lang.Iterable<java.lang.String> values)
        repeated string arguments = 7;
      • addArgumentsBytes

        public Protos.CommandInfo.Builder addArgumentsBytes(com.google.protobuf.ByteString value)
        repeated string arguments = 7;
      • 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
      • setUser

        public 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;
      • clearUser

        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;
      • setUserBytes

        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;
      • mergeUnknownFields

        public final Protos.CommandInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

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