Package io.kubernetes.client.proto
Class V1.Probe
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.V1.Probe
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V1.ProbeOrBuilder
,Serializable
- Enclosing class:
- V1
public static final class V1.Probe
extends com.google.protobuf.GeneratedMessageV3
implements V1.ProbeOrBuilder
Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.Protobuf type
k8s.io.api.core.v1.Probe
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.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 Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final com.google.protobuf.Parser<V1.Probe>
Deprecated.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 TypeMethodDescriptionboolean
static V1.Probe
static final com.google.protobuf.Descriptors.Descriptor
int
Minimum consecutive failures for the probe to be considered failed after having succeeded.The action taken to determine the health of a containerThe action taken to determine the health of a containerint
Number of seconds after the container has started before liveness probes are initiated.com.google.protobuf.Parser<V1.Probe>
int
How often (in seconds) to perform the probe.int
int
Minimum consecutive successes for the probe to be considered successful after having failed.long
Optional duration in seconds the pod needs to terminate gracefully upon probe failure.int
Number of seconds after which the probe times out.final com.google.protobuf.UnknownFieldSet
boolean
Minimum consecutive failures for the probe to be considered failed after having succeeded.boolean
The action taken to determine the health of a containerint
hashCode()
boolean
Number of seconds after the container has started before liveness probes are initiated.boolean
How often (in seconds) to perform the probe.boolean
Minimum consecutive successes for the probe to be considered successful after having failed.boolean
Optional duration in seconds the pod needs to terminate gracefully upon probe failure.boolean
Number of seconds after which the probe times out.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
static V1.Probe.Builder
static V1.Probe.Builder
newBuilder
(V1.Probe prototype) protected V1.Probe.Builder
newBuilderForType
(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) static V1.Probe
parseDelimitedFrom
(InputStream input) static V1.Probe
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static V1.Probe
parseFrom
(byte[] data) static V1.Probe
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static V1.Probe
parseFrom
(com.google.protobuf.ByteString data) static V1.Probe
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static V1.Probe
parseFrom
(com.google.protobuf.CodedInputStream input) static V1.Probe
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static V1.Probe
parseFrom
(InputStream input) static V1.Probe
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static V1.Probe
parseFrom
(ByteBuffer data) static V1.Probe
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<V1.Probe>
parser()
void
writeTo
(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, newInstance, 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, hasField, hasOneof
-
Field Details
-
HANDLER_FIELD_NUMBER
public static final int HANDLER_FIELD_NUMBER- See Also:
-
INITIALDELAYSECONDS_FIELD_NUMBER
public static final int INITIALDELAYSECONDS_FIELD_NUMBER- See Also:
-
TIMEOUTSECONDS_FIELD_NUMBER
public static final int TIMEOUTSECONDS_FIELD_NUMBER- See Also:
-
PERIODSECONDS_FIELD_NUMBER
public static final int PERIODSECONDS_FIELD_NUMBER- See Also:
-
SUCCESSTHRESHOLD_FIELD_NUMBER
public static final int SUCCESSTHRESHOLD_FIELD_NUMBER- See Also:
-
FAILURETHRESHOLD_FIELD_NUMBER
public static final int FAILURETHRESHOLD_FIELD_NUMBER- See Also:
-
TERMINATIONGRACEPERIODSECONDS_FIELD_NUMBER
public static final int TERMINATIONGRACEPERIODSECONDS_FIELD_NUMBER- See Also:
-
PARSER
Deprecated.
-
-
Method Details
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.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 classcom.google.protobuf.GeneratedMessageV3
-
hasHandler
public boolean hasHandler()The action taken to determine the health of a container
optional .k8s.io.api.core.v1.ProbeHandler handler = 1;
- Specified by:
hasHandler
in interfaceV1.ProbeOrBuilder
-
getHandler
The action taken to determine the health of a container
optional .k8s.io.api.core.v1.ProbeHandler handler = 1;
- Specified by:
getHandler
in interfaceV1.ProbeOrBuilder
-
getHandlerOrBuilder
The action taken to determine the health of a container
optional .k8s.io.api.core.v1.ProbeHandler handler = 1;
- Specified by:
getHandlerOrBuilder
in interfaceV1.ProbeOrBuilder
-
hasInitialDelaySeconds
public boolean hasInitialDelaySeconds()Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional
optional int32 initialDelaySeconds = 2;
- Specified by:
hasInitialDelaySeconds
in interfaceV1.ProbeOrBuilder
-
getInitialDelaySeconds
public int getInitialDelaySeconds()Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional
optional int32 initialDelaySeconds = 2;
- Specified by:
getInitialDelaySeconds
in interfaceV1.ProbeOrBuilder
-
hasTimeoutSeconds
public boolean hasTimeoutSeconds()Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional
optional int32 timeoutSeconds = 3;
- Specified by:
hasTimeoutSeconds
in interfaceV1.ProbeOrBuilder
-
getTimeoutSeconds
public int getTimeoutSeconds()Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional
optional int32 timeoutSeconds = 3;
- Specified by:
getTimeoutSeconds
in interfaceV1.ProbeOrBuilder
-
hasPeriodSeconds
public boolean hasPeriodSeconds()How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. +optional
optional int32 periodSeconds = 4;
- Specified by:
hasPeriodSeconds
in interfaceV1.ProbeOrBuilder
-
getPeriodSeconds
public int getPeriodSeconds()How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. +optional
optional int32 periodSeconds = 4;
- Specified by:
getPeriodSeconds
in interfaceV1.ProbeOrBuilder
-
hasSuccessThreshold
public boolean hasSuccessThreshold()Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. +optional
optional int32 successThreshold = 5;
- Specified by:
hasSuccessThreshold
in interfaceV1.ProbeOrBuilder
-
getSuccessThreshold
public int getSuccessThreshold()Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. +optional
optional int32 successThreshold = 5;
- Specified by:
getSuccessThreshold
in interfaceV1.ProbeOrBuilder
-
hasFailureThreshold
public boolean hasFailureThreshold()Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. +optional
optional int32 failureThreshold = 6;
- Specified by:
hasFailureThreshold
in interfaceV1.ProbeOrBuilder
-
getFailureThreshold
public int getFailureThreshold()Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. +optional
optional int32 failureThreshold = 6;
- Specified by:
getFailureThreshold
in interfaceV1.ProbeOrBuilder
-
hasTerminationGracePeriodSeconds
public boolean hasTerminationGracePeriodSeconds()Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. +optional
optional int64 terminationGracePeriodSeconds = 7;
- Specified by:
hasTerminationGracePeriodSeconds
in interfaceV1.ProbeOrBuilder
-
getTerminationGracePeriodSeconds
public long getTerminationGracePeriodSeconds()Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. +optional
optional int64 terminationGracePeriodSeconds = 7;
- Specified by:
getTerminationGracePeriodSeconds
in interfaceV1.ProbeOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static V1.Probe parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static V1.Probe parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static V1.Probe parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static V1.Probe parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static V1.Probe parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static V1.Probe parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static V1.Probe parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static V1.Probe parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static V1.Probe parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected V1.Probe.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-