Class Watchdog

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.config.bootstrap.v2.Watchdog
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, WatchdogOrBuilder, Serializable

public final class Watchdog extends com.google.protobuf.GeneratedMessageV3 implements WatchdogOrBuilder
 Envoy process watchdog configuration. When configured, this monitors for
 nonresponsive threads and kills the process after the configured thresholds.
 See the :ref:`watchdog documentation <operations_performance_watchdog>` for more information.
 
Protobuf type envoy.config.bootstrap.v2.Watchdog
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Envoy process watchdog configuration.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    static Watchdog
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Duration
    If a watched thread has been nonresponsive for this duration, assume a programming error and kill the entire Envoy process.
    com.google.protobuf.DurationOrBuilder
    If a watched thread has been nonresponsive for this duration, assume a programming error and kill the entire Envoy process.
    com.google.protobuf.Duration
    The duration after which Envoy counts a nonresponsive thread in the *watchdog_mega_miss* statistic.
    com.google.protobuf.DurationOrBuilder
    The duration after which Envoy counts a nonresponsive thread in the *watchdog_mega_miss* statistic.
    com.google.protobuf.Duration
    The duration after which Envoy counts a nonresponsive thread in the *watchdog_miss* statistic.
    com.google.protobuf.DurationOrBuilder
    The duration after which Envoy counts a nonresponsive thread in the *watchdog_miss* statistic.
    com.google.protobuf.Duration
    If at least two watched threads have been nonresponsive for at least this duration assume a true deadlock and kill the entire Envoy process.
    com.google.protobuf.DurationOrBuilder
    If at least two watched threads have been nonresponsive for at least this duration assume a true deadlock and kill the entire Envoy process.
    com.google.protobuf.Parser<Watchdog>
     
    int
     
    int
     
    boolean
    If a watched thread has been nonresponsive for this duration, assume a programming error and kill the entire Envoy process.
    boolean
    The duration after which Envoy counts a nonresponsive thread in the *watchdog_mega_miss* statistic.
    boolean
    The duration after which Envoy counts a nonresponsive thread in the *watchdog_miss* statistic.
    boolean
    If at least two watched threads have been nonresponsive for at least this duration assume a true deadlock and kill the entire Envoy process.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(Watchdog prototype)
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
    static Watchdog
     
    static Watchdog
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Watchdog
    parseFrom(byte[] data)
     
    static Watchdog
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Watchdog
    parseFrom(com.google.protobuf.ByteString data)
     
    static Watchdog
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Watchdog
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Watchdog
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Watchdog
     
    static Watchdog
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Watchdog
     
    static Watchdog
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Watchdog>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • MISS_TIMEOUT_FIELD_NUMBER

      public static final int MISS_TIMEOUT_FIELD_NUMBER
      See Also:
    • MEGAMISS_TIMEOUT_FIELD_NUMBER

      public static final int MEGAMISS_TIMEOUT_FIELD_NUMBER
      See Also:
    • KILL_TIMEOUT_FIELD_NUMBER

      public static final int KILL_TIMEOUT_FIELD_NUMBER
      See Also:
    • MULTIKILL_TIMEOUT_FIELD_NUMBER

      public static final int MULTIKILL_TIMEOUT_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasMissTimeout

      public boolean hasMissTimeout()
       The duration after which Envoy counts a nonresponsive thread in the
       *watchdog_miss* statistic. If not specified the default is 200ms.
       
      .google.protobuf.Duration miss_timeout = 1;
      Specified by:
      hasMissTimeout in interface WatchdogOrBuilder
      Returns:
      Whether the missTimeout field is set.
    • getMissTimeout

      public com.google.protobuf.Duration getMissTimeout()
       The duration after which Envoy counts a nonresponsive thread in the
       *watchdog_miss* statistic. If not specified the default is 200ms.
       
      .google.protobuf.Duration miss_timeout = 1;
      Specified by:
      getMissTimeout in interface WatchdogOrBuilder
      Returns:
      The missTimeout.
    • getMissTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getMissTimeoutOrBuilder()
       The duration after which Envoy counts a nonresponsive thread in the
       *watchdog_miss* statistic. If not specified the default is 200ms.
       
      .google.protobuf.Duration miss_timeout = 1;
      Specified by:
      getMissTimeoutOrBuilder in interface WatchdogOrBuilder
    • hasMegamissTimeout

      public boolean hasMegamissTimeout()
       The duration after which Envoy counts a nonresponsive thread in the
       *watchdog_mega_miss* statistic. If not specified the default is
       1000ms.
       
      .google.protobuf.Duration megamiss_timeout = 2;
      Specified by:
      hasMegamissTimeout in interface WatchdogOrBuilder
      Returns:
      Whether the megamissTimeout field is set.
    • getMegamissTimeout

      public com.google.protobuf.Duration getMegamissTimeout()
       The duration after which Envoy counts a nonresponsive thread in the
       *watchdog_mega_miss* statistic. If not specified the default is
       1000ms.
       
      .google.protobuf.Duration megamiss_timeout = 2;
      Specified by:
      getMegamissTimeout in interface WatchdogOrBuilder
      Returns:
      The megamissTimeout.
    • getMegamissTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getMegamissTimeoutOrBuilder()
       The duration after which Envoy counts a nonresponsive thread in the
       *watchdog_mega_miss* statistic. If not specified the default is
       1000ms.
       
      .google.protobuf.Duration megamiss_timeout = 2;
      Specified by:
      getMegamissTimeoutOrBuilder in interface WatchdogOrBuilder
    • hasKillTimeout

      public boolean hasKillTimeout()
       If a watched thread has been nonresponsive for this duration, assume a
       programming error and kill the entire Envoy process. Set to 0 to disable
       kill behavior. If not specified the default is 0 (disabled).
       
      .google.protobuf.Duration kill_timeout = 3;
      Specified by:
      hasKillTimeout in interface WatchdogOrBuilder
      Returns:
      Whether the killTimeout field is set.
    • getKillTimeout

      public com.google.protobuf.Duration getKillTimeout()
       If a watched thread has been nonresponsive for this duration, assume a
       programming error and kill the entire Envoy process. Set to 0 to disable
       kill behavior. If not specified the default is 0 (disabled).
       
      .google.protobuf.Duration kill_timeout = 3;
      Specified by:
      getKillTimeout in interface WatchdogOrBuilder
      Returns:
      The killTimeout.
    • getKillTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getKillTimeoutOrBuilder()
       If a watched thread has been nonresponsive for this duration, assume a
       programming error and kill the entire Envoy process. Set to 0 to disable
       kill behavior. If not specified the default is 0 (disabled).
       
      .google.protobuf.Duration kill_timeout = 3;
      Specified by:
      getKillTimeoutOrBuilder in interface WatchdogOrBuilder
    • hasMultikillTimeout

      public boolean hasMultikillTimeout()
       If at least two watched threads have been nonresponsive for at least this
       duration assume a true deadlock and kill the entire Envoy process. Set to 0
       to disable this behavior. If not specified the default is 0 (disabled).
       
      .google.protobuf.Duration multikill_timeout = 4;
      Specified by:
      hasMultikillTimeout in interface WatchdogOrBuilder
      Returns:
      Whether the multikillTimeout field is set.
    • getMultikillTimeout

      public com.google.protobuf.Duration getMultikillTimeout()
       If at least two watched threads have been nonresponsive for at least this
       duration assume a true deadlock and kill the entire Envoy process. Set to 0
       to disable this behavior. If not specified the default is 0 (disabled).
       
      .google.protobuf.Duration multikill_timeout = 4;
      Specified by:
      getMultikillTimeout in interface WatchdogOrBuilder
      Returns:
      The multikillTimeout.
    • getMultikillTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getMultikillTimeoutOrBuilder()
       If at least two watched threads have been nonresponsive for at least this
       duration assume a true deadlock and kill the entire Envoy process. Set to 0
       to disable this behavior. If not specified the default is 0 (disabled).
       
      .google.protobuf.Duration multikill_timeout = 4;
      Specified by:
      getMultikillTimeoutOrBuilder in interface WatchdogOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Watchdog parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Watchdog parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static Watchdog parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

      public static Watchdog parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Watchdog parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static Watchdog parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public Watchdog.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Watchdog.Builder newBuilder()
    • newBuilder

      public static Watchdog.Builder newBuilder(Watchdog prototype)
    • toBuilder

      public Watchdog.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Watchdog.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Watchdog getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Watchdog> parser()
    • getParserForType

      public com.google.protobuf.Parser<Watchdog> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Watchdog getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder