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

Class Protos.TaskInfo

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


    public static final class Protos.TaskInfo
    extends com.google.protobuf.GeneratedMessageV3
    implements Protos.TaskInfoOrBuilder 
     Describes a task. Passed from the scheduler all the way to an
     executor (see SchedulerDriver::launchTasks and
     Executor::launchTask). Either ExecutorInfo or CommandInfo should be set.
     A different executor can be used to launch this task, and subsequent tasks
     meant for the same executor can reuse the same ExecutorInfo struct.
     
    Protobuf type mesos.TaskInfo
    • Field Detail

      • HEALTH_CHECK_FIELD_NUMBER

        public static final int HEALTH_CHECK_FIELD_NUMBER
        See Also:
        Constant Field Values
      • KILL_POLICY_FIELD_NUMBER

        public static final int KILL_POLICY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAX_COMPLETION_TIME_FIELD_NUMBER

        public static final int MAX_COMPLETION_TIME_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()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField(int number)
      • internalGetFieldAccessorTable

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

        public boolean hasContainer()
         Task provided with a container will launch the container as part
         of this task paired with the task's CommandInfo.
         
        optional .mesos.ContainerInfo container = 9;
        Specified by:
        hasContainer in interface Protos.TaskInfoOrBuilder
      • getContainer

        public Protos.ContainerInfo getContainer()
         Task provided with a container will launch the container as part
         of this task paired with the task's CommandInfo.
         
        optional .mesos.ContainerInfo container = 9;
        Specified by:
        getContainer in interface Protos.TaskInfoOrBuilder
      • hasHealthCheck

        public boolean hasHealthCheck()
         A health check for the task. Implemented for executor-less
         command-based tasks. For tasks that specify an executor, it is
         the executor's responsibility to implement the health checking.
         
        optional .mesos.HealthCheck health_check = 8;
        Specified by:
        hasHealthCheck in interface Protos.TaskInfoOrBuilder
      • getHealthCheck

        public Protos.HealthCheck getHealthCheck()
         A health check for the task. Implemented for executor-less
         command-based tasks. For tasks that specify an executor, it is
         the executor's responsibility to implement the health checking.
         
        optional .mesos.HealthCheck health_check = 8;
        Specified by:
        getHealthCheck in interface Protos.TaskInfoOrBuilder
      • getHealthCheckOrBuilder

        public Protos.HealthCheckOrBuilder getHealthCheckOrBuilder()
         A health check for the task. Implemented for executor-less
         command-based tasks. For tasks that specify an executor, it is
         the executor's responsibility to implement the health checking.
         
        optional .mesos.HealthCheck health_check = 8;
        Specified by:
        getHealthCheckOrBuilder in interface Protos.TaskInfoOrBuilder
      • hasCheck

        public boolean hasCheck()
         A general check for the task. Implemented for all built-in executors.
         For tasks that specify an executor, it is the executor's responsibility
         to implement checking support. Executors should (all built-in executors
         will) neither interpret nor act on the check's result.
         NOTE: Check support in built-in executors is experimental.
         TODO(alexr): Consider supporting multiple checks per task.
         
        optional .mesos.CheckInfo check = 13;
        Specified by:
        hasCheck in interface Protos.TaskInfoOrBuilder
      • getCheck

        public Protos.CheckInfo getCheck()
         A general check for the task. Implemented for all built-in executors.
         For tasks that specify an executor, it is the executor's responsibility
         to implement checking support. Executors should (all built-in executors
         will) neither interpret nor act on the check's result.
         NOTE: Check support in built-in executors is experimental.
         TODO(alexr): Consider supporting multiple checks per task.
         
        optional .mesos.CheckInfo check = 13;
        Specified by:
        getCheck in interface Protos.TaskInfoOrBuilder
      • getCheckOrBuilder

        public Protos.CheckInfoOrBuilder getCheckOrBuilder()
         A general check for the task. Implemented for all built-in executors.
         For tasks that specify an executor, it is the executor's responsibility
         to implement checking support. Executors should (all built-in executors
         will) neither interpret nor act on the check's result.
         NOTE: Check support in built-in executors is experimental.
         TODO(alexr): Consider supporting multiple checks per task.
         
        optional .mesos.CheckInfo check = 13;
        Specified by:
        getCheckOrBuilder in interface Protos.TaskInfoOrBuilder
      • hasKillPolicy

        public boolean hasKillPolicy()
         A kill policy for the task. Implemented for executor-less
         command-based and docker tasks. For tasks that specify an
         executor, it is the executor's responsibility to implement
         the kill policy.
         
        optional .mesos.KillPolicy kill_policy = 12;
        Specified by:
        hasKillPolicy in interface Protos.TaskInfoOrBuilder
      • getKillPolicy

        public Protos.KillPolicy getKillPolicy()
         A kill policy for the task. Implemented for executor-less
         command-based and docker tasks. For tasks that specify an
         executor, it is the executor's responsibility to implement
         the kill policy.
         
        optional .mesos.KillPolicy kill_policy = 12;
        Specified by:
        getKillPolicy in interface Protos.TaskInfoOrBuilder
      • getKillPolicyOrBuilder

        public Protos.KillPolicyOrBuilder getKillPolicyOrBuilder()
         A kill policy for the task. Implemented for executor-less
         command-based and docker tasks. For tasks that specify an
         executor, it is the executor's responsibility to implement
         the kill policy.
         
        optional .mesos.KillPolicy kill_policy = 12;
        Specified by:
        getKillPolicyOrBuilder in interface Protos.TaskInfoOrBuilder
      • hasLabels

        public boolean hasLabels()
         Labels are free-form key value pairs which are exposed through
         master and slave endpoints. Labels will not be interpreted or
         acted upon by Mesos itself. As opposed to the data field, labels
         will be kept in memory on master and slave processes. Therefore,
         labels should be used to tag tasks with light-weight meta-data.
         Labels should not contain duplicate key-value pairs.
         
        optional .mesos.Labels labels = 10;
        Specified by:
        hasLabels in interface Protos.TaskInfoOrBuilder
      • getLabels

        public Protos.Labels getLabels()
         Labels are free-form key value pairs which are exposed through
         master and slave endpoints. Labels will not be interpreted or
         acted upon by Mesos itself. As opposed to the data field, labels
         will be kept in memory on master and slave processes. Therefore,
         labels should be used to tag tasks with light-weight meta-data.
         Labels should not contain duplicate key-value pairs.
         
        optional .mesos.Labels labels = 10;
        Specified by:
        getLabels in interface Protos.TaskInfoOrBuilder
      • getLabelsOrBuilder

        public Protos.LabelsOrBuilder getLabelsOrBuilder()
         Labels are free-form key value pairs which are exposed through
         master and slave endpoints. Labels will not be interpreted or
         acted upon by Mesos itself. As opposed to the data field, labels
         will be kept in memory on master and slave processes. Therefore,
         labels should be used to tag tasks with light-weight meta-data.
         Labels should not contain duplicate key-value pairs.
         
        optional .mesos.Labels labels = 10;
        Specified by:
        getLabelsOrBuilder in interface Protos.TaskInfoOrBuilder
      • hasDiscovery

        public boolean hasDiscovery()
         Service discovery information for the task. It is not interpreted
         or acted upon by Mesos. It is up to a service discovery system
         to use this information as needed and to handle tasks without
         service discovery information.
         
        optional .mesos.DiscoveryInfo discovery = 11;
        Specified by:
        hasDiscovery in interface Protos.TaskInfoOrBuilder
      • getDiscovery

        public Protos.DiscoveryInfo getDiscovery()
         Service discovery information for the task. It is not interpreted
         or acted upon by Mesos. It is up to a service discovery system
         to use this information as needed and to handle tasks without
         service discovery information.
         
        optional .mesos.DiscoveryInfo discovery = 11;
        Specified by:
        getDiscovery in interface Protos.TaskInfoOrBuilder
      • getDiscoveryOrBuilder

        public Protos.DiscoveryInfoOrBuilder getDiscoveryOrBuilder()
         Service discovery information for the task. It is not interpreted
         or acted upon by Mesos. It is up to a service discovery system
         to use this information as needed and to handle tasks without
         service discovery information.
         
        optional .mesos.DiscoveryInfo discovery = 11;
        Specified by:
        getDiscoveryOrBuilder in interface Protos.TaskInfoOrBuilder
      • hasMaxCompletionTime

        public boolean hasMaxCompletionTime()
         Maximum duration for task completion. If the task is non-terminal at the
         end of this duration, it will fail with the reason
         `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for
         executor-less tasks, and tasks that use Docker or default executors.
         It is the executor's responsibility to implement this, so it might not be
         supported by all custom executors.
         
        optional .mesos.DurationInfo max_completion_time = 14;
        Specified by:
        hasMaxCompletionTime in interface Protos.TaskInfoOrBuilder
      • getMaxCompletionTime

        public Protos.DurationInfo getMaxCompletionTime()
         Maximum duration for task completion. If the task is non-terminal at the
         end of this duration, it will fail with the reason
         `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for
         executor-less tasks, and tasks that use Docker or default executors.
         It is the executor's responsibility to implement this, so it might not be
         supported by all custom executors.
         
        optional .mesos.DurationInfo max_completion_time = 14;
        Specified by:
        getMaxCompletionTime in interface Protos.TaskInfoOrBuilder
      • getMaxCompletionTimeOrBuilder

        public Protos.DurationInfoOrBuilder getMaxCompletionTimeOrBuilder()
         Maximum duration for task completion. If the task is non-terminal at the
         end of this duration, it will fail with the reason
         `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for
         executor-less tasks, and tasks that use Docker or default executors.
         It is the executor's responsibility to implement this, so it might not be
         supported by all custom executors.
         
        optional .mesos.DurationInfo max_completion_time = 14;
        Specified by:
        getMaxCompletionTimeOrBuilder in interface Protos.TaskInfoOrBuilder
      • containsLimits

        public boolean containsLimits(java.lang.String key)
         Resource limits associated with the task.
         
        map<string, .mesos.Value.Scalar> limits = 15;
        Specified by:
        containsLimits in interface Protos.TaskInfoOrBuilder
      • 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.TaskInfo parseFrom(java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

        public static Protos.TaskInfo 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.TaskInfo parseFrom(byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

        public static <any> parser()
      • getParserForType

        public <any> getParserForType()
      • getDefaultInstanceForType

        public Protos.TaskInfo getDefaultInstanceForType()
Skip navigation links

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