public static final class Protos.HealthCheck extends com.google.protobuf.GeneratedMessage implements Protos.HealthCheckOrBuilder
mesos.v1.HealthCheck
Describes a health check for a task or executor (or any arbitrary process/command). A type is picked by specifying one of the optional fields. Specifying more than one type is an error.
Modifier and Type | Class and Description |
---|---|
static class |
Protos.HealthCheck.Builder
Protobuf type
mesos.v1.HealthCheck |
static class |
Protos.HealthCheck.HTTPCheckInfo
Protobuf type
mesos.v1.HealthCheck.HTTPCheckInfo |
static interface |
Protos.HealthCheck.HTTPCheckInfoOrBuilder |
static class |
Protos.HealthCheck.TCPCheckInfo
Protobuf type
mesos.v1.HealthCheck.TCPCheckInfo |
static interface |
Protos.HealthCheck.TCPCheckInfoOrBuilder |
static class |
Protos.HealthCheck.Type
Protobuf enum
mesos.v1.HealthCheck.Type |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>
Modifier and Type | Field and Description |
---|---|
static int |
COMMAND_FIELD_NUMBER |
static int |
CONSECUTIVE_FAILURES_FIELD_NUMBER |
static int |
DELAY_SECONDS_FIELD_NUMBER |
static int |
GRACE_PERIOD_SECONDS_FIELD_NUMBER |
static int |
HTTP_FIELD_NUMBER |
static int |
INTERVAL_SECONDS_FIELD_NUMBER |
static com.google.protobuf.Parser<Protos.HealthCheck> |
PARSER |
static int |
TCP_FIELD_NUMBER |
static int |
TIMEOUT_SECONDS_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
Protos.CommandInfo |
getCommand()
optional .mesos.v1.CommandInfo command = 7; |
Protos.CommandInfoOrBuilder |
getCommandOrBuilder()
optional .mesos.v1.CommandInfo command = 7; |
int |
getConsecutiveFailures()
optional uint32 consecutive_failures = 5 [default = 3]; |
static Protos.HealthCheck |
getDefaultInstance() |
Protos.HealthCheck |
getDefaultInstanceForType() |
double |
getDelaySeconds()
optional double delay_seconds = 2 [default = 15]; |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
double |
getGracePeriodSeconds()
optional double grace_period_seconds = 6 [default = 10]; |
Protos.HealthCheck.HTTPCheckInfo |
getHttp()
optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1; |
Protos.HealthCheck.HTTPCheckInfoOrBuilder |
getHttpOrBuilder()
optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1; |
double |
getIntervalSeconds()
optional double interval_seconds = 3 [default = 10]; |
com.google.protobuf.Parser<Protos.HealthCheck> |
getParserForType() |
int |
getSerializedSize() |
Protos.HealthCheck.TCPCheckInfo |
getTcp()
optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9; |
Protos.HealthCheck.TCPCheckInfoOrBuilder |
getTcpOrBuilder()
optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9; |
double |
getTimeoutSeconds()
optional double timeout_seconds = 4 [default = 20]; |
Protos.HealthCheck.Type |
getType()
optional .mesos.v1.HealthCheck.Type type = 8; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCommand()
optional .mesos.v1.CommandInfo command = 7; |
boolean |
hasConsecutiveFailures()
optional uint32 consecutive_failures = 5 [default = 3]; |
boolean |
hasDelaySeconds()
optional double delay_seconds = 2 [default = 15]; |
boolean |
hasGracePeriodSeconds()
optional double grace_period_seconds = 6 [default = 10]; |
boolean |
hasHttp()
optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1; |
boolean |
hasIntervalSeconds()
optional double interval_seconds = 3 [default = 10]; |
boolean |
hasTcp()
optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9; |
boolean |
hasTimeoutSeconds()
optional double timeout_seconds = 4 [default = 20]; |
boolean |
hasType()
optional .mesos.v1.HealthCheck.Type type = 8; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.HealthCheck.Builder |
newBuilder() |
static Protos.HealthCheck.Builder |
newBuilder(Protos.HealthCheck prototype) |
Protos.HealthCheck.Builder |
newBuilderForType() |
protected Protos.HealthCheck.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static Protos.HealthCheck |
parseDelimitedFrom(InputStream input) |
static Protos.HealthCheck |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.HealthCheck |
parseFrom(byte[] data) |
static Protos.HealthCheck |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.HealthCheck |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.HealthCheck |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.HealthCheck |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.HealthCheck |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.HealthCheck |
parseFrom(InputStream input) |
static Protos.HealthCheck |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.HealthCheck.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static com.google.protobuf.Parser<Protos.HealthCheck> PARSER
public static final int DELAY_SECONDS_FIELD_NUMBER
public static final int INTERVAL_SECONDS_FIELD_NUMBER
public static final int TIMEOUT_SECONDS_FIELD_NUMBER
public static final int CONSECUTIVE_FAILURES_FIELD_NUMBER
public static final int GRACE_PERIOD_SECONDS_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int COMMAND_FIELD_NUMBER
public static final int HTTP_FIELD_NUMBER
public static final int TCP_FIELD_NUMBER
public static Protos.HealthCheck getDefaultInstance()
public Protos.HealthCheck getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<Protos.HealthCheck> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public boolean hasDelaySeconds()
optional double delay_seconds = 2 [default = 15];
Amount of time to wait to start health checking the task after it transitions to `TASK_RUNNING` or `TASK_STATING` if the latter is used by the executor.
hasDelaySeconds
in interface Protos.HealthCheckOrBuilder
public double getDelaySeconds()
optional double delay_seconds = 2 [default = 15];
Amount of time to wait to start health checking the task after it transitions to `TASK_RUNNING` or `TASK_STATING` if the latter is used by the executor.
getDelaySeconds
in interface Protos.HealthCheckOrBuilder
public boolean hasIntervalSeconds()
optional double interval_seconds = 3 [default = 10];
Interval between health checks, i.e., amount of time to wait after the previous health check finished or timed out to start the next health check.
hasIntervalSeconds
in interface Protos.HealthCheckOrBuilder
public double getIntervalSeconds()
optional double interval_seconds = 3 [default = 10];
Interval between health checks, i.e., amount of time to wait after the previous health check finished or timed out to start the next health check.
getIntervalSeconds
in interface Protos.HealthCheckOrBuilder
public boolean hasTimeoutSeconds()
optional double timeout_seconds = 4 [default = 20];
Amount of time to wait for the health check to complete. After this timeout, the health check is aborted and treated as a failure. Zero means infinite timeout.
hasTimeoutSeconds
in interface Protos.HealthCheckOrBuilder
public double getTimeoutSeconds()
optional double timeout_seconds = 4 [default = 20];
Amount of time to wait for the health check to complete. After this timeout, the health check is aborted and treated as a failure. Zero means infinite timeout.
getTimeoutSeconds
in interface Protos.HealthCheckOrBuilder
public boolean hasConsecutiveFailures()
optional uint32 consecutive_failures = 5 [default = 3];
Number of consecutive failures until the task is killed by the executor.
hasConsecutiveFailures
in interface Protos.HealthCheckOrBuilder
public int getConsecutiveFailures()
optional uint32 consecutive_failures = 5 [default = 3];
Number of consecutive failures until the task is killed by the executor.
getConsecutiveFailures
in interface Protos.HealthCheckOrBuilder
public boolean hasGracePeriodSeconds()
optional double grace_period_seconds = 6 [default = 10];
Amount of time after the task is launched during which health check failures are ignored. Once the a check succeeds for the first time, the grace period does not apply anymore. Note that it includes `delay_seconds`, i.e., setting `grace_period_seconds` < `delay_seconds` has no effect.
hasGracePeriodSeconds
in interface Protos.HealthCheckOrBuilder
public double getGracePeriodSeconds()
optional double grace_period_seconds = 6 [default = 10];
Amount of time after the task is launched during which health check failures are ignored. Once the a check succeeds for the first time, the grace period does not apply anymore. Note that it includes `delay_seconds`, i.e., setting `grace_period_seconds` < `delay_seconds` has no effect.
getGracePeriodSeconds
in interface Protos.HealthCheckOrBuilder
public boolean hasType()
optional .mesos.v1.HealthCheck.Type type = 8;
The type of health check.
hasType
in interface Protos.HealthCheckOrBuilder
public Protos.HealthCheck.Type getType()
optional .mesos.v1.HealthCheck.Type type = 8;
The type of health check.
getType
in interface Protos.HealthCheckOrBuilder
public boolean hasCommand()
optional .mesos.v1.CommandInfo command = 7;
Command health check.
hasCommand
in interface Protos.HealthCheckOrBuilder
public Protos.CommandInfo getCommand()
optional .mesos.v1.CommandInfo command = 7;
Command health check.
getCommand
in interface Protos.HealthCheckOrBuilder
public Protos.CommandInfoOrBuilder getCommandOrBuilder()
optional .mesos.v1.CommandInfo command = 7;
Command health check.
getCommandOrBuilder
in interface Protos.HealthCheckOrBuilder
public boolean hasHttp()
optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1;
HTTP health check.
hasHttp
in interface Protos.HealthCheckOrBuilder
public Protos.HealthCheck.HTTPCheckInfo getHttp()
optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1;
HTTP health check.
getHttp
in interface Protos.HealthCheckOrBuilder
public Protos.HealthCheck.HTTPCheckInfoOrBuilder getHttpOrBuilder()
optional .mesos.v1.HealthCheck.HTTPCheckInfo http = 1;
HTTP health check.
getHttpOrBuilder
in interface Protos.HealthCheckOrBuilder
public boolean hasTcp()
optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9;
TCP health check.
hasTcp
in interface Protos.HealthCheckOrBuilder
public Protos.HealthCheck.TCPCheckInfo getTcp()
optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9;
TCP health check.
getTcp
in interface Protos.HealthCheckOrBuilder
public Protos.HealthCheck.TCPCheckInfoOrBuilder getTcpOrBuilder()
optional .mesos.v1.HealthCheck.TCPCheckInfo tcp = 9;
TCP health check.
getTcpOrBuilder
in interface Protos.HealthCheckOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static Protos.HealthCheck parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.HealthCheck parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.HealthCheck parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.HealthCheck parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.HealthCheck parseFrom(InputStream input) throws IOException
IOException
public static Protos.HealthCheck parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.HealthCheck parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Protos.HealthCheck parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.HealthCheck parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Protos.HealthCheck parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.HealthCheck.Builder newBuilder()
public Protos.HealthCheck.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Protos.HealthCheck.Builder newBuilder(Protos.HealthCheck prototype)
public Protos.HealthCheck.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Protos.HealthCheck.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2017 The Apache Software Foundation. All Rights Reserved.