Package k8s.io.api.core.v1
Class Generated.Probe
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- k8s.io.api.core.v1.Generated.Probe
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Generated.ProbeOrBuilder
- Enclosing class:
- Generated
public static final class Generated.Probe extends com.google.protobuf.GeneratedMessageV3 implements Generated.ProbeOrBuilder
Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
Protobuf typek8s.io.api.core.v1.Probe- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerated.Probe.BuilderProbe 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<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
-
-
Field Summary
Fields Modifier and Type Field Description static intFAILURETHRESHOLD_FIELD_NUMBERstatic intHANDLER_FIELD_NUMBERstatic intINITIALDELAYSECONDS_FIELD_NUMBERstatic com.google.protobuf.Parser<Generated.Probe>PARSERDeprecated.static intPERIODSECONDS_FIELD_NUMBERstatic intSUCCESSTHRESHOLD_FIELD_NUMBERstatic intTERMINATIONGRACEPERIODSECONDS_FIELD_NUMBERstatic intTIMEOUTSECONDS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static Generated.ProbegetDefaultInstance()Generated.ProbegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()intgetFailureThreshold()Minimum consecutive failures for the probe to be considered failed after having succeeded.Generated.ProbeHandlergetHandler()The action taken to determine the health of a containerGenerated.ProbeHandlerOrBuildergetHandlerOrBuilder()The action taken to determine the health of a containerintgetInitialDelaySeconds()Number of seconds after the container has started before liveness probes are initiated.com.google.protobuf.Parser<Generated.Probe>getParserForType()intgetPeriodSeconds()How often (in seconds) to perform the probe.intgetSerializedSize()intgetSuccessThreshold()Minimum consecutive successes for the probe to be considered successful after having failed.longgetTerminationGracePeriodSeconds()Optional duration in seconds the pod needs to terminate gracefully upon probe failure.intgetTimeoutSeconds()Number of seconds after which the probe times out.booleanhasFailureThreshold()Minimum consecutive failures for the probe to be considered failed after having succeeded.booleanhasHandler()The action taken to determine the health of a containerinthashCode()booleanhasInitialDelaySeconds()Number of seconds after the container has started before liveness probes are initiated.booleanhasPeriodSeconds()How often (in seconds) to perform the probe.booleanhasSuccessThreshold()Minimum consecutive successes for the probe to be considered successful after having failed.booleanhasTerminationGracePeriodSeconds()Optional duration in seconds the pod needs to terminate gracefully upon probe failure.booleanhasTimeoutSeconds()Number of seconds after which the probe times out.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Generated.Probe.BuildernewBuilder()static Generated.Probe.BuildernewBuilder(Generated.Probe prototype)Generated.Probe.BuildernewBuilderForType()protected Generated.Probe.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Generated.ProbeparseDelimitedFrom(InputStream input)static Generated.ProbeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ProbeparseFrom(byte[] data)static Generated.ProbeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ProbeparseFrom(com.google.protobuf.ByteString data)static Generated.ProbeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ProbeparseFrom(com.google.protobuf.CodedInputStream input)static Generated.ProbeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ProbeparseFrom(InputStream input)static Generated.ProbeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ProbeparseFrom(ByteBuffer data)static Generated.ProbeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Generated.Probe>parser()Generated.Probe.BuildertoBuilder()voidwriteTo(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
-
-
-
-
Field Detail
-
HANDLER_FIELD_NUMBER
public static final int HANDLER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INITIALDELAYSECONDS_FIELD_NUMBER
public static final int INITIALDELAYSECONDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMEOUTSECONDS_FIELD_NUMBER
public static final int TIMEOUTSECONDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PERIODSECONDS_FIELD_NUMBER
public static final int PERIODSECONDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUCCESSTHRESHOLD_FIELD_NUMBER
public static final int SUCCESSTHRESHOLD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FAILURETHRESHOLD_FIELD_NUMBER
public static final int FAILURETHRESHOLD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TERMINATIONGRACEPERIODSECONDS_FIELD_NUMBER
public static final int TERMINATIONGRACEPERIODSECONDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Generated.Probe> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein 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
-
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:
hasHandlerin interfaceGenerated.ProbeOrBuilder- Returns:
- Whether the handler field is set.
-
getHandler
public Generated.ProbeHandler getHandler()
The action taken to determine the health of a container
optional .k8s.io.api.core.v1.ProbeHandler handler = 1;- Specified by:
getHandlerin interfaceGenerated.ProbeOrBuilder- Returns:
- The handler.
-
getHandlerOrBuilder
public Generated.ProbeHandlerOrBuilder getHandlerOrBuilder()
The action taken to determine the health of a container
optional .k8s.io.api.core.v1.ProbeHandler handler = 1;- Specified by:
getHandlerOrBuilderin interfaceGenerated.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:
hasInitialDelaySecondsin interfaceGenerated.ProbeOrBuilder- Returns:
- Whether the initialDelaySeconds field is set.
-
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:
getInitialDelaySecondsin interfaceGenerated.ProbeOrBuilder- Returns:
- The initialDelaySeconds.
-
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:
hasTimeoutSecondsin interfaceGenerated.ProbeOrBuilder- Returns:
- Whether the timeoutSeconds field is set.
-
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:
getTimeoutSecondsin interfaceGenerated.ProbeOrBuilder- Returns:
- The timeoutSeconds.
-
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:
hasPeriodSecondsin interfaceGenerated.ProbeOrBuilder- Returns:
- Whether the periodSeconds field is set.
-
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:
getPeriodSecondsin interfaceGenerated.ProbeOrBuilder- Returns:
- The periodSeconds.
-
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:
hasSuccessThresholdin interfaceGenerated.ProbeOrBuilder- Returns:
- Whether the successThreshold field is set.
-
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:
getSuccessThresholdin interfaceGenerated.ProbeOrBuilder- Returns:
- The successThreshold.
-
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:
hasFailureThresholdin interfaceGenerated.ProbeOrBuilder- Returns:
- Whether the failureThreshold field is set.
-
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:
getFailureThresholdin interfaceGenerated.ProbeOrBuilder- Returns:
- The failureThreshold.
-
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:
hasTerminationGracePeriodSecondsin interfaceGenerated.ProbeOrBuilder- Returns:
- Whether the terminationGracePeriodSeconds field is set.
-
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:
getTerminationGracePeriodSecondsin interfaceGenerated.ProbeOrBuilder- Returns:
- The terminationGracePeriodSeconds.
-
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 Generated.Probe parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.Probe parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.Probe parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.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 Generated.Probe parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.Probe parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.Probe parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.Probe parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.Probe parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.Probe parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.Probe parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.Probe parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Generated.Probe.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Generated.Probe.Builder newBuilder()
-
newBuilder
public static Generated.Probe.Builder newBuilder(Generated.Probe prototype)
-
toBuilder
public Generated.Probe.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Generated.Probe.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Generated.Probe getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Generated.Probe> parser()
-
getParserForType
public com.google.protobuf.Parser<Generated.Probe> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Generated.Probe getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-