public static final class Protos.HealthCheck.Builder extends <any> implements Protos.HealthCheckOrBuilder
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.Protobuf type
mesos.HealthCheck| Modifier and Type | Method and Description |
|---|---|
Protos.HealthCheck.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.HealthCheck |
build() |
Protos.HealthCheck |
buildPartial() |
Protos.HealthCheck.Builder |
clear() |
Protos.HealthCheck.Builder |
clearCommand()
Command health check.
|
Protos.HealthCheck.Builder |
clearConsecutiveFailures()
Number of consecutive failures until the task is killed by the executor.
|
Protos.HealthCheck.Builder |
clearDelaySeconds()
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.
|
Protos.HealthCheck.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.HealthCheck.Builder |
clearGracePeriodSeconds()
Amount of time after the task is launched during which health check
failures are ignored.
|
Protos.HealthCheck.Builder |
clearHttp()
HTTP health check.
|
Protos.HealthCheck.Builder |
clearIntervalSeconds()
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.
|
Protos.HealthCheck.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.HealthCheck.Builder |
clearTcp()
TCP health check.
|
Protos.HealthCheck.Builder |
clearTimeoutSeconds()
Amount of time to wait for the health check to complete.
|
Protos.HealthCheck.Builder |
clearType()
The type of health check.
|
Protos.HealthCheck.Builder |
clone() |
Protos.CommandInfo |
getCommand()
Command health check.
|
Protos.CommandInfo.Builder |
getCommandBuilder()
Command health check.
|
Protos.CommandInfoOrBuilder |
getCommandOrBuilder()
Command health check.
|
int |
getConsecutiveFailures()
Number of consecutive failures until the task is killed by the executor.
|
Protos.HealthCheck |
getDefaultInstanceForType() |
double |
getDelaySeconds()
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.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
double |
getGracePeriodSeconds()
Amount of time after the task is launched during which health check
failures are ignored.
|
Protos.HealthCheck.HTTPCheckInfo |
getHttp()
HTTP health check.
|
Protos.HealthCheck.HTTPCheckInfo.Builder |
getHttpBuilder()
HTTP health check.
|
Protos.HealthCheck.HTTPCheckInfoOrBuilder |
getHttpOrBuilder()
HTTP health check.
|
double |
getIntervalSeconds()
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.
|
Protos.HealthCheck.TCPCheckInfo |
getTcp()
TCP health check.
|
Protos.HealthCheck.TCPCheckInfo.Builder |
getTcpBuilder()
TCP health check.
|
Protos.HealthCheck.TCPCheckInfoOrBuilder |
getTcpOrBuilder()
TCP health check.
|
double |
getTimeoutSeconds()
Amount of time to wait for the health check to complete.
|
Protos.HealthCheck.Type |
getType()
The type of health check.
|
boolean |
hasCommand()
Command health check.
|
boolean |
hasConsecutiveFailures()
Number of consecutive failures until the task is killed by the executor.
|
boolean |
hasDelaySeconds()
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.
|
boolean |
hasGracePeriodSeconds()
Amount of time after the task is launched during which health check
failures are ignored.
|
boolean |
hasHttp()
HTTP health check.
|
boolean |
hasIntervalSeconds()
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.
|
boolean |
hasTcp()
TCP health check.
|
boolean |
hasTimeoutSeconds()
Amount of time to wait for the health check to complete.
|
boolean |
hasType()
The type of health check.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.HealthCheck.Builder |
mergeCommand(Protos.CommandInfo value)
Command health check.
|
Protos.HealthCheck.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.HealthCheck.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.HealthCheck.Builder |
mergeHttp(Protos.HealthCheck.HTTPCheckInfo value)
HTTP health check.
|
Protos.HealthCheck.Builder |
mergeTcp(Protos.HealthCheck.TCPCheckInfo value)
TCP health check.
|
Protos.HealthCheck.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.HealthCheck.Builder |
setCommand(Protos.CommandInfo.Builder builderForValue)
Command health check.
|
Protos.HealthCheck.Builder |
setCommand(Protos.CommandInfo value)
Command health check.
|
Protos.HealthCheck.Builder |
setConsecutiveFailures(int value)
Number of consecutive failures until the task is killed by the executor.
|
Protos.HealthCheck.Builder |
setDelaySeconds(double value)
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.
|
Protos.HealthCheck.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.HealthCheck.Builder |
setGracePeriodSeconds(double value)
Amount of time after the task is launched during which health check
failures are ignored.
|
Protos.HealthCheck.Builder |
setHttp(Protos.HealthCheck.HTTPCheckInfo.Builder builderForValue)
HTTP health check.
|
Protos.HealthCheck.Builder |
setHttp(Protos.HealthCheck.HTTPCheckInfo value)
HTTP health check.
|
Protos.HealthCheck.Builder |
setIntervalSeconds(double value)
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.
|
Protos.HealthCheck.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.HealthCheck.Builder |
setTcp(Protos.HealthCheck.TCPCheckInfo.Builder builderForValue)
TCP health check.
|
Protos.HealthCheck.Builder |
setTcp(Protos.HealthCheck.TCPCheckInfo value)
TCP health check.
|
Protos.HealthCheck.Builder |
setTimeoutSeconds(double value)
Amount of time to wait for the health check to complete.
|
Protos.HealthCheck.Builder |
setType(Protos.HealthCheck.Type value)
The type of health check.
|
Protos.HealthCheck.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.HealthCheck.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.HealthCheck getDefaultInstanceForType()
public Protos.HealthCheck build()
public Protos.HealthCheck buildPartial()
public Protos.HealthCheck.Builder clone()
public Protos.HealthCheck.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.HealthCheck.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.HealthCheck.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.HealthCheck.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.HealthCheck.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.HealthCheck.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.HealthCheck.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic boolean hasDelaySeconds()
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.
optional double delay_seconds = 2 [default = 15];hasDelaySeconds in interface Protos.HealthCheckOrBuilderpublic double getDelaySeconds()
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.
optional double delay_seconds = 2 [default = 15];getDelaySeconds in interface Protos.HealthCheckOrBuilderpublic Protos.HealthCheck.Builder setDelaySeconds(double value)
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.
optional double delay_seconds = 2 [default = 15];public Protos.HealthCheck.Builder clearDelaySeconds()
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.
optional double delay_seconds = 2 [default = 15];public boolean hasIntervalSeconds()
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.
optional double interval_seconds = 3 [default = 10];hasIntervalSeconds in interface Protos.HealthCheckOrBuilderpublic double getIntervalSeconds()
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.
optional double interval_seconds = 3 [default = 10];getIntervalSeconds in interface Protos.HealthCheckOrBuilderpublic Protos.HealthCheck.Builder setIntervalSeconds(double value)
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.
optional double interval_seconds = 3 [default = 10];public Protos.HealthCheck.Builder clearIntervalSeconds()
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.
optional double interval_seconds = 3 [default = 10];public boolean hasTimeoutSeconds()
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.
optional double timeout_seconds = 4 [default = 20];hasTimeoutSeconds in interface Protos.HealthCheckOrBuilderpublic double getTimeoutSeconds()
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.
optional double timeout_seconds = 4 [default = 20];getTimeoutSeconds in interface Protos.HealthCheckOrBuilderpublic Protos.HealthCheck.Builder setTimeoutSeconds(double value)
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.
optional double timeout_seconds = 4 [default = 20];public Protos.HealthCheck.Builder clearTimeoutSeconds()
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.
optional double timeout_seconds = 4 [default = 20];public boolean hasConsecutiveFailures()
Number of consecutive failures until the task is killed by the executor.
optional uint32 consecutive_failures = 5 [default = 3];hasConsecutiveFailures in interface Protos.HealthCheckOrBuilderpublic int getConsecutiveFailures()
Number of consecutive failures until the task is killed by the executor.
optional uint32 consecutive_failures = 5 [default = 3];getConsecutiveFailures in interface Protos.HealthCheckOrBuilderpublic Protos.HealthCheck.Builder setConsecutiveFailures(int value)
Number of consecutive failures until the task is killed by the executor.
optional uint32 consecutive_failures = 5 [default = 3];public Protos.HealthCheck.Builder clearConsecutiveFailures()
Number of consecutive failures until the task is killed by the executor.
optional uint32 consecutive_failures = 5 [default = 3];public boolean hasGracePeriodSeconds()
Amount of time after the task is launched during which health check failures are ignored. Once 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.
optional double grace_period_seconds = 6 [default = 10];hasGracePeriodSeconds in interface Protos.HealthCheckOrBuilderpublic double getGracePeriodSeconds()
Amount of time after the task is launched during which health check failures are ignored. Once 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.
optional double grace_period_seconds = 6 [default = 10];getGracePeriodSeconds in interface Protos.HealthCheckOrBuilderpublic Protos.HealthCheck.Builder setGracePeriodSeconds(double value)
Amount of time after the task is launched during which health check failures are ignored. Once 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.
optional double grace_period_seconds = 6 [default = 10];public Protos.HealthCheck.Builder clearGracePeriodSeconds()
Amount of time after the task is launched during which health check failures are ignored. Once 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.
optional double grace_period_seconds = 6 [default = 10];public boolean hasType()
The type of health check.
optional .mesos.HealthCheck.Type type = 8;hasType in interface Protos.HealthCheckOrBuilderpublic Protos.HealthCheck.Type getType()
The type of health check.
optional .mesos.HealthCheck.Type type = 8;getType in interface Protos.HealthCheckOrBuilderpublic Protos.HealthCheck.Builder setType(Protos.HealthCheck.Type value)
The type of health check.
optional .mesos.HealthCheck.Type type = 8;public Protos.HealthCheck.Builder clearType()
The type of health check.
optional .mesos.HealthCheck.Type type = 8;public boolean hasCommand()
Command health check.
optional .mesos.CommandInfo command = 7;hasCommand in interface Protos.HealthCheckOrBuilderpublic Protos.CommandInfo getCommand()
Command health check.
optional .mesos.CommandInfo command = 7;getCommand in interface Protos.HealthCheckOrBuilderpublic Protos.HealthCheck.Builder setCommand(Protos.CommandInfo value)
Command health check.
optional .mesos.CommandInfo command = 7;public Protos.HealthCheck.Builder setCommand(Protos.CommandInfo.Builder builderForValue)
Command health check.
optional .mesos.CommandInfo command = 7;public Protos.HealthCheck.Builder mergeCommand(Protos.CommandInfo value)
Command health check.
optional .mesos.CommandInfo command = 7;public Protos.HealthCheck.Builder clearCommand()
Command health check.
optional .mesos.CommandInfo command = 7;public Protos.CommandInfo.Builder getCommandBuilder()
Command health check.
optional .mesos.CommandInfo command = 7;public Protos.CommandInfoOrBuilder getCommandOrBuilder()
Command health check.
optional .mesos.CommandInfo command = 7;getCommandOrBuilder in interface Protos.HealthCheckOrBuilderpublic boolean hasHttp()
HTTP health check.
optional .mesos.HealthCheck.HTTPCheckInfo http = 1;hasHttp in interface Protos.HealthCheckOrBuilderpublic Protos.HealthCheck.HTTPCheckInfo getHttp()
HTTP health check.
optional .mesos.HealthCheck.HTTPCheckInfo http = 1;getHttp in interface Protos.HealthCheckOrBuilderpublic Protos.HealthCheck.Builder setHttp(Protos.HealthCheck.HTTPCheckInfo value)
HTTP health check.
optional .mesos.HealthCheck.HTTPCheckInfo http = 1;public Protos.HealthCheck.Builder setHttp(Protos.HealthCheck.HTTPCheckInfo.Builder builderForValue)
HTTP health check.
optional .mesos.HealthCheck.HTTPCheckInfo http = 1;public Protos.HealthCheck.Builder mergeHttp(Protos.HealthCheck.HTTPCheckInfo value)
HTTP health check.
optional .mesos.HealthCheck.HTTPCheckInfo http = 1;public Protos.HealthCheck.Builder clearHttp()
HTTP health check.
optional .mesos.HealthCheck.HTTPCheckInfo http = 1;public Protos.HealthCheck.HTTPCheckInfo.Builder getHttpBuilder()
HTTP health check.
optional .mesos.HealthCheck.HTTPCheckInfo http = 1;public Protos.HealthCheck.HTTPCheckInfoOrBuilder getHttpOrBuilder()
HTTP health check.
optional .mesos.HealthCheck.HTTPCheckInfo http = 1;getHttpOrBuilder in interface Protos.HealthCheckOrBuilderpublic boolean hasTcp()
TCP health check.
optional .mesos.HealthCheck.TCPCheckInfo tcp = 9;hasTcp in interface Protos.HealthCheckOrBuilderpublic Protos.HealthCheck.TCPCheckInfo getTcp()
TCP health check.
optional .mesos.HealthCheck.TCPCheckInfo tcp = 9;getTcp in interface Protos.HealthCheckOrBuilderpublic Protos.HealthCheck.Builder setTcp(Protos.HealthCheck.TCPCheckInfo value)
TCP health check.
optional .mesos.HealthCheck.TCPCheckInfo tcp = 9;public Protos.HealthCheck.Builder setTcp(Protos.HealthCheck.TCPCheckInfo.Builder builderForValue)
TCP health check.
optional .mesos.HealthCheck.TCPCheckInfo tcp = 9;public Protos.HealthCheck.Builder mergeTcp(Protos.HealthCheck.TCPCheckInfo value)
TCP health check.
optional .mesos.HealthCheck.TCPCheckInfo tcp = 9;public Protos.HealthCheck.Builder clearTcp()
TCP health check.
optional .mesos.HealthCheck.TCPCheckInfo tcp = 9;public Protos.HealthCheck.TCPCheckInfo.Builder getTcpBuilder()
TCP health check.
optional .mesos.HealthCheck.TCPCheckInfo tcp = 9;public Protos.HealthCheck.TCPCheckInfoOrBuilder getTcpOrBuilder()
TCP health check.
optional .mesos.HealthCheck.TCPCheckInfo tcp = 9;getTcpOrBuilder in interface Protos.HealthCheckOrBuilderpublic final Protos.HealthCheck.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.HealthCheck.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)