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

Class Protos.KillPolicy

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


    public static final class Protos.KillPolicy
    extends com.google.protobuf.GeneratedMessageV3
    implements Protos.KillPolicyOrBuilder 
     Describes a kill policy for a task. Currently does not express
     different policies (e.g. hitting HTTP endpoints), only controls
     how long to wait between graceful and forcible task kill:
     graceful kill --------------> forcible kill
     grace_period
     Kill policies are best-effort, because machine failures / forcible
     terminations may occur.
     NOTE: For executor-less command-based tasks, the kill is performed
     via sending a signal to the task process: SIGTERM for the graceful
     kill and SIGKILL for the forcible kill. For the docker executor-less
     tasks the grace period is passed to 'docker stop --time'.
     
    Protobuf type mesos.KillPolicy
    • Field Detail

      • GRACE_PERIOD_FIELD_NUMBER

        public static final int GRACE_PERIOD_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()
      • hasGracePeriod

        public boolean hasGracePeriod()
         The grace period specifies how long to wait before forcibly
         killing the task. It is recommended to attempt to gracefully
         kill the task (and send TASK_KILLING) to indicate that the
         graceful kill is in progress. Once the grace period elapses,
         if the task has not terminated, a forcible kill should occur.
         The task should not assume that it will always be allotted
         the full grace period. For example, the executor may be
         shutdown more quickly by the agent, or failures / forcible
         terminations may occur.
         
        optional .mesos.DurationInfo grace_period = 1;
        Specified by:
        hasGracePeriod in interface Protos.KillPolicyOrBuilder
      • getGracePeriod

        public Protos.DurationInfo getGracePeriod()
         The grace period specifies how long to wait before forcibly
         killing the task. It is recommended to attempt to gracefully
         kill the task (and send TASK_KILLING) to indicate that the
         graceful kill is in progress. Once the grace period elapses,
         if the task has not terminated, a forcible kill should occur.
         The task should not assume that it will always be allotted
         the full grace period. For example, the executor may be
         shutdown more quickly by the agent, or failures / forcible
         terminations may occur.
         
        optional .mesos.DurationInfo grace_period = 1;
        Specified by:
        getGracePeriod in interface Protos.KillPolicyOrBuilder
      • getGracePeriodOrBuilder

        public Protos.DurationInfoOrBuilder getGracePeriodOrBuilder()
         The grace period specifies how long to wait before forcibly
         killing the task. It is recommended to attempt to gracefully
         kill the task (and send TASK_KILLING) to indicate that the
         graceful kill is in progress. Once the grace period elapses,
         if the task has not terminated, a forcible kill should occur.
         The task should not assume that it will always be allotted
         the full grace period. For example, the executor may be
         shutdown more quickly by the agent, or failures / forcible
         terminations may occur.
         
        optional .mesos.DurationInfo grace_period = 1;
        Specified by:
        getGracePeriodOrBuilder in interface Protos.KillPolicyOrBuilder
      • 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.KillPolicy parseFrom(java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public static <any> parser()
      • getParserForType

        public <any> getParserForType()
Skip navigation links

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