public static final class Protos.HealthCheck.HTTPCheckInfo.Builder extends <any> implements Protos.HealthCheck.HTTPCheckInfoOrBuilder
Describes an HTTP health check. Sends a GET request to scheme://<host>:port/path. Note that <host> is not configurable and is resolved automatically, in most cases to 127.0.0.1. Default executors treat return codes between 200 and 399 as success; custom executors may employ a different strategy, e.g. leveraging the `statuses` field.Protobuf type
mesos.HealthCheck.HTTPCheckInfo
Modifier and Type | Method and Description |
---|---|
Protos.HealthCheck.HTTPCheckInfo.Builder |
addAllStatuses(java.lang.Iterable<? extends java.lang.Integer> values)
NOTE: It is up to the custom executor to interpret and act on this
field.
|
Protos.HealthCheck.HTTPCheckInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.HealthCheck.HTTPCheckInfo.Builder |
addStatuses(int value)
NOTE: It is up to the custom executor to interpret and act on this
field.
|
Protos.HealthCheck.HTTPCheckInfo |
build() |
Protos.HealthCheck.HTTPCheckInfo |
buildPartial() |
Protos.HealthCheck.HTTPCheckInfo.Builder |
clear() |
Protos.HealthCheck.HTTPCheckInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.HealthCheck.HTTPCheckInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.HealthCheck.HTTPCheckInfo.Builder |
clearPath()
HTTP request path.
|
Protos.HealthCheck.HTTPCheckInfo.Builder |
clearPort()
Port to send the HTTP request.
|
Protos.HealthCheck.HTTPCheckInfo.Builder |
clearProtocol()
optional .mesos.NetworkInfo.Protocol protocol = 5 [default = IPv4]; |
Protos.HealthCheck.HTTPCheckInfo.Builder |
clearScheme()
Currently "http" and "https" are supported.
|
Protos.HealthCheck.HTTPCheckInfo.Builder |
clearStatuses()
NOTE: It is up to the custom executor to interpret and act on this
field.
|
Protos.HealthCheck.HTTPCheckInfo.Builder |
clone() |
Protos.HealthCheck.HTTPCheckInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getPath()
HTTP request path.
|
com.google.protobuf.ByteString |
getPathBytes()
HTTP request path.
|
int |
getPort()
Port to send the HTTP request.
|
Protos.NetworkInfo.Protocol |
getProtocol()
optional .mesos.NetworkInfo.Protocol protocol = 5 [default = IPv4]; |
java.lang.String |
getScheme()
Currently "http" and "https" are supported.
|
com.google.protobuf.ByteString |
getSchemeBytes()
Currently "http" and "https" are supported.
|
int |
getStatuses(int index)
NOTE: It is up to the custom executor to interpret and act on this
field.
|
int |
getStatusesCount()
NOTE: It is up to the custom executor to interpret and act on this
field.
|
java.util.List<java.lang.Integer> |
getStatusesList()
NOTE: It is up to the custom executor to interpret and act on this
field.
|
boolean |
hasPath()
HTTP request path.
|
boolean |
hasPort()
Port to send the HTTP request.
|
boolean |
hasProtocol()
optional .mesos.NetworkInfo.Protocol protocol = 5 [default = IPv4]; |
boolean |
hasScheme()
Currently "http" and "https" are supported.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.HealthCheck.HTTPCheckInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.HealthCheck.HTTPCheckInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.HealthCheck.HTTPCheckInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.HealthCheck.HTTPCheckInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.HealthCheck.HTTPCheckInfo.Builder |
setPath(java.lang.String value)
HTTP request path.
|
Protos.HealthCheck.HTTPCheckInfo.Builder |
setPathBytes(com.google.protobuf.ByteString value)
HTTP request path.
|
Protos.HealthCheck.HTTPCheckInfo.Builder |
setPort(int value)
Port to send the HTTP request.
|
Protos.HealthCheck.HTTPCheckInfo.Builder |
setProtocol(Protos.NetworkInfo.Protocol value)
optional .mesos.NetworkInfo.Protocol protocol = 5 [default = IPv4]; |
Protos.HealthCheck.HTTPCheckInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.HealthCheck.HTTPCheckInfo.Builder |
setScheme(java.lang.String value)
Currently "http" and "https" are supported.
|
Protos.HealthCheck.HTTPCheckInfo.Builder |
setSchemeBytes(com.google.protobuf.ByteString value)
Currently "http" and "https" are supported.
|
Protos.HealthCheck.HTTPCheckInfo.Builder |
setStatuses(int index,
int value)
NOTE: It is up to the custom executor to interpret and act on this
field.
|
Protos.HealthCheck.HTTPCheckInfo.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.HTTPCheckInfo.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.HealthCheck.HTTPCheckInfo getDefaultInstanceForType()
public Protos.HealthCheck.HTTPCheckInfo build()
public Protos.HealthCheck.HTTPCheckInfo buildPartial()
public Protos.HealthCheck.HTTPCheckInfo.Builder clone()
public Protos.HealthCheck.HTTPCheckInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.HealthCheck.HTTPCheckInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.HealthCheck.HTTPCheckInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.HealthCheck.HTTPCheckInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.HealthCheck.HTTPCheckInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.HealthCheck.HTTPCheckInfo.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.HealthCheck.HTTPCheckInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public boolean hasProtocol()
optional .mesos.NetworkInfo.Protocol protocol = 5 [default = IPv4];
hasProtocol
in interface Protos.HealthCheck.HTTPCheckInfoOrBuilder
public Protos.NetworkInfo.Protocol getProtocol()
optional .mesos.NetworkInfo.Protocol protocol = 5 [default = IPv4];
getProtocol
in interface Protos.HealthCheck.HTTPCheckInfoOrBuilder
public Protos.HealthCheck.HTTPCheckInfo.Builder setProtocol(Protos.NetworkInfo.Protocol value)
optional .mesos.NetworkInfo.Protocol protocol = 5 [default = IPv4];
public Protos.HealthCheck.HTTPCheckInfo.Builder clearProtocol()
optional .mesos.NetworkInfo.Protocol protocol = 5 [default = IPv4];
public boolean hasScheme()
Currently "http" and "https" are supported.
optional string scheme = 3;
hasScheme
in interface Protos.HealthCheck.HTTPCheckInfoOrBuilder
public java.lang.String getScheme()
Currently "http" and "https" are supported.
optional string scheme = 3;
getScheme
in interface Protos.HealthCheck.HTTPCheckInfoOrBuilder
public com.google.protobuf.ByteString getSchemeBytes()
Currently "http" and "https" are supported.
optional string scheme = 3;
getSchemeBytes
in interface Protos.HealthCheck.HTTPCheckInfoOrBuilder
public Protos.HealthCheck.HTTPCheckInfo.Builder setScheme(java.lang.String value)
Currently "http" and "https" are supported.
optional string scheme = 3;
public Protos.HealthCheck.HTTPCheckInfo.Builder clearScheme()
Currently "http" and "https" are supported.
optional string scheme = 3;
public Protos.HealthCheck.HTTPCheckInfo.Builder setSchemeBytes(com.google.protobuf.ByteString value)
Currently "http" and "https" are supported.
optional string scheme = 3;
public boolean hasPort()
Port to send the HTTP request.
required uint32 port = 1;
hasPort
in interface Protos.HealthCheck.HTTPCheckInfoOrBuilder
public int getPort()
Port to send the HTTP request.
required uint32 port = 1;
getPort
in interface Protos.HealthCheck.HTTPCheckInfoOrBuilder
public Protos.HealthCheck.HTTPCheckInfo.Builder setPort(int value)
Port to send the HTTP request.
required uint32 port = 1;
public Protos.HealthCheck.HTTPCheckInfo.Builder clearPort()
Port to send the HTTP request.
required uint32 port = 1;
public boolean hasPath()
HTTP request path.
optional string path = 2;
hasPath
in interface Protos.HealthCheck.HTTPCheckInfoOrBuilder
public java.lang.String getPath()
HTTP request path.
optional string path = 2;
getPath
in interface Protos.HealthCheck.HTTPCheckInfoOrBuilder
public com.google.protobuf.ByteString getPathBytes()
HTTP request path.
optional string path = 2;
getPathBytes
in interface Protos.HealthCheck.HTTPCheckInfoOrBuilder
public Protos.HealthCheck.HTTPCheckInfo.Builder setPath(java.lang.String value)
HTTP request path.
optional string path = 2;
public Protos.HealthCheck.HTTPCheckInfo.Builder clearPath()
HTTP request path.
optional string path = 2;
public Protos.HealthCheck.HTTPCheckInfo.Builder setPathBytes(com.google.protobuf.ByteString value)
HTTP request path.
optional string path = 2;
public java.util.List<java.lang.Integer> getStatusesList()
NOTE: It is up to the custom executor to interpret and act on this field. Setting this field has no effect on the default executors. TODO(haosdent): Deprecate this field when we add better support for success and possibly failure statuses, e.g. ranges of success and failure statuses.
repeated uint32 statuses = 4;
getStatusesList
in interface Protos.HealthCheck.HTTPCheckInfoOrBuilder
public int getStatusesCount()
NOTE: It is up to the custom executor to interpret and act on this field. Setting this field has no effect on the default executors. TODO(haosdent): Deprecate this field when we add better support for success and possibly failure statuses, e.g. ranges of success and failure statuses.
repeated uint32 statuses = 4;
getStatusesCount
in interface Protos.HealthCheck.HTTPCheckInfoOrBuilder
public int getStatuses(int index)
NOTE: It is up to the custom executor to interpret and act on this field. Setting this field has no effect on the default executors. TODO(haosdent): Deprecate this field when we add better support for success and possibly failure statuses, e.g. ranges of success and failure statuses.
repeated uint32 statuses = 4;
getStatuses
in interface Protos.HealthCheck.HTTPCheckInfoOrBuilder
public Protos.HealthCheck.HTTPCheckInfo.Builder setStatuses(int index, int value)
NOTE: It is up to the custom executor to interpret and act on this field. Setting this field has no effect on the default executors. TODO(haosdent): Deprecate this field when we add better support for success and possibly failure statuses, e.g. ranges of success and failure statuses.
repeated uint32 statuses = 4;
public Protos.HealthCheck.HTTPCheckInfo.Builder addStatuses(int value)
NOTE: It is up to the custom executor to interpret and act on this field. Setting this field has no effect on the default executors. TODO(haosdent): Deprecate this field when we add better support for success and possibly failure statuses, e.g. ranges of success and failure statuses.
repeated uint32 statuses = 4;
public Protos.HealthCheck.HTTPCheckInfo.Builder addAllStatuses(java.lang.Iterable<? extends java.lang.Integer> values)
NOTE: It is up to the custom executor to interpret and act on this field. Setting this field has no effect on the default executors. TODO(haosdent): Deprecate this field when we add better support for success and possibly failure statuses, e.g. ranges of success and failure statuses.
repeated uint32 statuses = 4;
public Protos.HealthCheck.HTTPCheckInfo.Builder clearStatuses()
NOTE: It is up to the custom executor to interpret and act on this field. Setting this field has no effect on the default executors. TODO(haosdent): Deprecate this field when we add better support for success and possibly failure statuses, e.g. ranges of success and failure statuses.
repeated uint32 statuses = 4;
public final Protos.HealthCheck.HTTPCheckInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.HealthCheck.HTTPCheckInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)