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 typeenvoy.config.bootstrap.v2.Watchdog- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWatchdog.BuilderEnvoy process watchdog configuration.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intKILL_TIMEOUT_FIELD_NUMBERstatic intMEGAMISS_TIMEOUT_FIELD_NUMBERstatic intMISS_TIMEOUT_FIELD_NUMBERstatic intMULTIKILL_TIMEOUT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static WatchdoggetDefaultInstance()WatchdoggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.DurationgetKillTimeout()If a watched thread has been nonresponsive for this duration, assume a programming error and kill the entire Envoy process.com.google.protobuf.DurationOrBuildergetKillTimeoutOrBuilder()If a watched thread has been nonresponsive for this duration, assume a programming error and kill the entire Envoy process.com.google.protobuf.DurationgetMegamissTimeout()The duration after which Envoy counts a nonresponsive thread in the *watchdog_mega_miss* statistic.com.google.protobuf.DurationOrBuildergetMegamissTimeoutOrBuilder()The duration after which Envoy counts a nonresponsive thread in the *watchdog_mega_miss* statistic.com.google.protobuf.DurationgetMissTimeout()The duration after which Envoy counts a nonresponsive thread in the *watchdog_miss* statistic.com.google.protobuf.DurationOrBuildergetMissTimeoutOrBuilder()The duration after which Envoy counts a nonresponsive thread in the *watchdog_miss* statistic.com.google.protobuf.DurationgetMultikillTimeout()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.DurationOrBuildergetMultikillTimeoutOrBuilder()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>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasKillTimeout()If a watched thread has been nonresponsive for this duration, assume a programming error and kill the entire Envoy process.booleanhasMegamissTimeout()The duration after which Envoy counts a nonresponsive thread in the *watchdog_mega_miss* statistic.booleanhasMissTimeout()The duration after which Envoy counts a nonresponsive thread in the *watchdog_miss* statistic.booleanhasMultikillTimeout()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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Watchdog.BuildernewBuilder()static Watchdog.BuildernewBuilder(Watchdog prototype)Watchdog.BuildernewBuilderForType()protected Watchdog.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static WatchdogparseDelimitedFrom(InputStream input)static WatchdogparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WatchdogparseFrom(byte[] data)static WatchdogparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WatchdogparseFrom(com.google.protobuf.ByteString data)static WatchdogparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WatchdogparseFrom(com.google.protobuf.CodedInputStream input)static WatchdogparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WatchdogparseFrom(InputStream input)static WatchdogparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WatchdogparseFrom(ByteBuffer data)static WatchdogparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Watchdog>parser()Watchdog.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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
-
-
-
-
Field Detail
-
MISS_TIMEOUT_FIELD_NUMBER
public static final int MISS_TIMEOUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MEGAMISS_TIMEOUT_FIELD_NUMBER
public static final int MEGAMISS_TIMEOUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KILL_TIMEOUT_FIELD_NUMBER
public static final int KILL_TIMEOUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MULTIKILL_TIMEOUT_FIELD_NUMBER
public static final int MULTIKILL_TIMEOUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.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:
hasMissTimeoutin interfaceWatchdogOrBuilder- 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:
getMissTimeoutin interfaceWatchdogOrBuilder- 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:
getMissTimeoutOrBuilderin interfaceWatchdogOrBuilder
-
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:
hasMegamissTimeoutin interfaceWatchdogOrBuilder- 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:
getMegamissTimeoutin interfaceWatchdogOrBuilder- 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:
getMegamissTimeoutOrBuilderin interfaceWatchdogOrBuilder
-
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:
hasKillTimeoutin interfaceWatchdogOrBuilder- 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:
getKillTimeoutin interfaceWatchdogOrBuilder- 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:
getKillTimeoutOrBuilderin interfaceWatchdogOrBuilder
-
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:
hasMultikillTimeoutin interfaceWatchdogOrBuilder- 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:
getMultikillTimeoutin interfaceWatchdogOrBuilder- 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:
getMultikillTimeoutOrBuilderin interfaceWatchdogOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Watchdog.Builder newBuilder()
-
newBuilder
public static Watchdog.Builder newBuilder(Watchdog prototype)
-
toBuilder
public Watchdog.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Watchdog.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Watchdog getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-