Send feedback
Class LivenessCheck (2.8.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.8.0 keyboard_arrow_down
public final class LivenessCheck extends GeneratedMessageV3 implements LivenessCheckOrBuilder
Health checking configuration for VM instances. Unhealthy instances
are killed and replaced with new instances.
Protobuf type google.appengine.v1.LivenessCheck
Static Fields
CHECK_INTERVAL_FIELD_NUMBER
public static final int CHECK_INTERVAL_FIELD_NUMBER
Field Value
FAILURE_THRESHOLD_FIELD_NUMBER
public static final int FAILURE_THRESHOLD_FIELD_NUMBER
Field Value
HOST_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER
Field Value
INITIAL_DELAY_FIELD_NUMBER
public static final int INITIAL_DELAY_FIELD_NUMBER
Field Value
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER
Field Value
SUCCESS_THRESHOLD_FIELD_NUMBER
public static final int SUCCESS_THRESHOLD_FIELD_NUMBER
Field Value
TIMEOUT_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static LivenessCheck getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static LivenessCheck . Builder newBuilder ()
Returns
newBuilder(LivenessCheck prototype)
public static LivenessCheck . Builder newBuilder ( LivenessCheck prototype )
Parameter
Returns
public static LivenessCheck parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static LivenessCheck parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static LivenessCheck parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LivenessCheck parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static LivenessCheck parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LivenessCheck parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static LivenessCheck parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static LivenessCheck parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static LivenessCheck parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static LivenessCheck parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static LivenessCheck parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static LivenessCheck parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<LivenessCheck> parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getCheckInterval()
public Duration getCheckInterval ()
Interval between health checks.
.google.protobuf.Duration check_interval = 5;
Returns
Type Description Duration The checkInterval.
getCheckIntervalOrBuilder()
public DurationOrBuilder getCheckIntervalOrBuilder ()
Interval between health checks.
.google.protobuf.Duration check_interval = 5;
Returns
getDefaultInstanceForType()
public LivenessCheck getDefaultInstanceForType ()
Returns
getFailureThreshold()
public int getFailureThreshold ()
Number of consecutive failed checks required before considering the
VM unhealthy.
uint32 failure_threshold = 3;
Returns
Type Description int The failureThreshold.
getHost()
Host header to send when performing a HTTP Liveness check.
Example: "myapp.appspot.com"
string host = 2;
Returns
Type Description String The host.
getHostBytes()
public ByteString getHostBytes ()
Host header to send when performing a HTTP Liveness check.
Example: "myapp.appspot.com"
string host = 2;
Returns
getInitialDelay()
public Duration getInitialDelay ()
The initial delay before starting to execute the checks.
.google.protobuf.Duration initial_delay = 7;
Returns
Type Description Duration The initialDelay.
getInitialDelayOrBuilder()
public DurationOrBuilder getInitialDelayOrBuilder ()
The initial delay before starting to execute the checks.
.google.protobuf.Duration initial_delay = 7;
Returns
getParserForType()
public Parser<LivenessCheck> getParserForType ()
Returns
Overrides
getPath()
The request path.
string path = 1;
Returns
Type Description String The path.
getPathBytes()
public ByteString getPathBytes ()
The request path.
string path = 1;
Returns
getSerializedSize()
public int getSerializedSize ()
Returns
Overrides
getSuccessThreshold()
public int getSuccessThreshold ()
Number of consecutive successful checks required before considering
the VM healthy.
uint32 success_threshold = 4;
Returns
Type Description int The successThreshold.
getTimeout()
public Duration getTimeout ()
Time before the check is considered failed.
.google.protobuf.Duration timeout = 6;
Returns
getTimeoutOrBuilder()
public DurationOrBuilder getTimeoutOrBuilder ()
Time before the check is considered failed.
.google.protobuf.Duration timeout = 6;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
hasCheckInterval()
public boolean hasCheckInterval ()
Interval between health checks.
.google.protobuf.Duration check_interval = 5;
Returns
Type Description boolean Whether the checkInterval field is set.
hasInitialDelay()
public boolean hasInitialDelay ()
The initial delay before starting to execute the checks.
.google.protobuf.Duration initial_delay = 7;
Returns
Type Description boolean Whether the initialDelay field is set.
hasTimeout()
public boolean hasTimeout ()
Time before the check is considered failed.
.google.protobuf.Duration timeout = 6;
Returns
Type Description boolean Whether the timeout field is set.
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public LivenessCheck . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected LivenessCheck . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public LivenessCheck . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]