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

Class Protos.HealthCheck

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


    public static final class Protos.HealthCheck
    extends com.google.protobuf.GeneratedMessageV3
    implements Protos.HealthCheckOrBuilder 
     Describes a health check for a task or executor (or any arbitrary
     process/command). A type is picked by specifying one of the
     optional fields. Specifying more than one type is an error.
     
    Protobuf type mesos.HealthCheck
    • Field Detail

      • DELAY_SECONDS_FIELD_NUMBER

        public static final int DELAY_SECONDS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INTERVAL_SECONDS_FIELD_NUMBER

        public static final int INTERVAL_SECONDS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TIMEOUT_SECONDS_FIELD_NUMBER

        public static final int TIMEOUT_SECONDS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CONSECUTIVE_FAILURES_FIELD_NUMBER

        public static final int CONSECUTIVE_FAILURES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • GRACE_PERIOD_SECONDS_FIELD_NUMBER

        public static final int GRACE_PERIOD_SECONDS_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()
      • hasDelaySeconds

        public boolean hasDelaySeconds()
         Amount of time to wait to start health checking the task after it
         transitions to `TASK_RUNNING` or `TASK_STATING` if the latter is
         used by the executor.
         
        optional double delay_seconds = 2 [default = 15];
        Specified by:
        hasDelaySeconds in interface Protos.HealthCheckOrBuilder
      • getDelaySeconds

        public double getDelaySeconds()
         Amount of time to wait to start health checking the task after it
         transitions to `TASK_RUNNING` or `TASK_STATING` if the latter is
         used by the executor.
         
        optional double delay_seconds = 2 [default = 15];
        Specified by:
        getDelaySeconds in interface Protos.HealthCheckOrBuilder
      • hasIntervalSeconds

        public boolean hasIntervalSeconds()
         Interval between health checks, i.e., amount of time to wait after
         the previous health check finished or timed out to start the next
         health check.
         
        optional double interval_seconds = 3 [default = 10];
        Specified by:
        hasIntervalSeconds in interface Protos.HealthCheckOrBuilder
      • getIntervalSeconds

        public double getIntervalSeconds()
         Interval between health checks, i.e., amount of time to wait after
         the previous health check finished or timed out to start the next
         health check.
         
        optional double interval_seconds = 3 [default = 10];
        Specified by:
        getIntervalSeconds in interface Protos.HealthCheckOrBuilder
      • hasTimeoutSeconds

        public boolean hasTimeoutSeconds()
         Amount of time to wait for the health check to complete. After this
         timeout, the health check is aborted and treated as a failure. Zero
         means infinite timeout.
         
        optional double timeout_seconds = 4 [default = 20];
        Specified by:
        hasTimeoutSeconds in interface Protos.HealthCheckOrBuilder
      • getTimeoutSeconds

        public double getTimeoutSeconds()
         Amount of time to wait for the health check to complete. After this
         timeout, the health check is aborted and treated as a failure. Zero
         means infinite timeout.
         
        optional double timeout_seconds = 4 [default = 20];
        Specified by:
        getTimeoutSeconds in interface Protos.HealthCheckOrBuilder
      • hasConsecutiveFailures

        public boolean hasConsecutiveFailures()
         Number of consecutive failures until the task is killed by the executor.
         
        optional uint32 consecutive_failures = 5 [default = 3];
        Specified by:
        hasConsecutiveFailures in interface Protos.HealthCheckOrBuilder
      • getConsecutiveFailures

        public int getConsecutiveFailures()
         Number of consecutive failures until the task is killed by the executor.
         
        optional uint32 consecutive_failures = 5 [default = 3];
        Specified by:
        getConsecutiveFailures in interface Protos.HealthCheckOrBuilder
      • hasGracePeriodSeconds

        public boolean hasGracePeriodSeconds()
         Amount of time after the task is launched during which health check
         failures are ignored. Once a check succeeds for the first time,
         the grace period does not apply anymore. Note that it includes
         `delay_seconds`, i.e., setting `grace_period_seconds` < `delay_seconds`
         has no effect.
         
        optional double grace_period_seconds = 6 [default = 10];
        Specified by:
        hasGracePeriodSeconds in interface Protos.HealthCheckOrBuilder
      • getGracePeriodSeconds

        public double getGracePeriodSeconds()
         Amount of time after the task is launched during which health check
         failures are ignored. Once a check succeeds for the first time,
         the grace period does not apply anymore. Note that it includes
         `delay_seconds`, i.e., setting `grace_period_seconds` < `delay_seconds`
         has no effect.
         
        optional double grace_period_seconds = 6 [default = 10];
        Specified by:
        getGracePeriodSeconds in interface Protos.HealthCheckOrBuilder
      • 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.HealthCheck parseFrom(java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public static <any> parser()
      • getParserForType

        public <any> getParserForType()
Skip navigation links

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