public static final class Protos.HealthCheck.HTTPCheckInfo extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
Protos.HealthCheck.HTTPCheckInfo.Builder
Describes an HTTP health check.
|
| Modifier and Type | Field and Description |
|---|---|
static <any> |
PARSER
Deprecated.
|
static int |
PATH_FIELD_NUMBER |
static int |
PORT_FIELD_NUMBER |
static int |
PROTOCOL_FIELD_NUMBER |
static int |
SCHEME_FIELD_NUMBER |
static int |
STATUSES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.HealthCheck.HTTPCheckInfo |
getDefaultInstance() |
Protos.HealthCheck.HTTPCheckInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
<any> |
getParserForType() |
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 |
getSerializedSize() |
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
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() |
static Protos.HealthCheck.HTTPCheckInfo.Builder |
newBuilder() |
static Protos.HealthCheck.HTTPCheckInfo.Builder |
newBuilder(Protos.HealthCheck.HTTPCheckInfo prototype) |
Protos.HealthCheck.HTTPCheckInfo.Builder |
newBuilderForType() |
protected Protos.HealthCheck.HTTPCheckInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.HealthCheck.HTTPCheckInfo |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.HealthCheck.HTTPCheckInfo |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.HealthCheck.HTTPCheckInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.HealthCheck.HTTPCheckInfo |
parseFrom(java.nio.ByteBuffer data) |
static Protos.HealthCheck.HTTPCheckInfo |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.HealthCheck.HTTPCheckInfo |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.HealthCheck.HTTPCheckInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.HealthCheck.HTTPCheckInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.HealthCheck.HTTPCheckInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.HealthCheck.HTTPCheckInfo |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.HealthCheck.HTTPCheckInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int PROTOCOL_FIELD_NUMBER
public static final int SCHEME_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER
public static final int STATUSES_FIELD_NUMBER
@Deprecated public static final <any> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public boolean hasProtocol()
optional .mesos.NetworkInfo.Protocol protocol = 5 [default = IPv4];hasProtocol in interface Protos.HealthCheck.HTTPCheckInfoOrBuilderpublic Protos.NetworkInfo.Protocol getProtocol()
optional .mesos.NetworkInfo.Protocol protocol = 5 [default = IPv4];getProtocol in interface Protos.HealthCheck.HTTPCheckInfoOrBuilderpublic boolean hasScheme()
Currently "http" and "https" are supported.
optional string scheme = 3;hasScheme in interface Protos.HealthCheck.HTTPCheckInfoOrBuilderpublic java.lang.String getScheme()
Currently "http" and "https" are supported.
optional string scheme = 3;getScheme in interface Protos.HealthCheck.HTTPCheckInfoOrBuilderpublic com.google.protobuf.ByteString getSchemeBytes()
Currently "http" and "https" are supported.
optional string scheme = 3;getSchemeBytes in interface Protos.HealthCheck.HTTPCheckInfoOrBuilderpublic boolean hasPort()
Port to send the HTTP request.
required uint32 port = 1;hasPort in interface Protos.HealthCheck.HTTPCheckInfoOrBuilderpublic int getPort()
Port to send the HTTP request.
required uint32 port = 1;getPort in interface Protos.HealthCheck.HTTPCheckInfoOrBuilderpublic boolean hasPath()
HTTP request path.
optional string path = 2;hasPath in interface Protos.HealthCheck.HTTPCheckInfoOrBuilderpublic java.lang.String getPath()
HTTP request path.
optional string path = 2;getPath in interface Protos.HealthCheck.HTTPCheckInfoOrBuilderpublic com.google.protobuf.ByteString getPathBytes()
HTTP request path.
optional string path = 2;getPathBytes in interface Protos.HealthCheck.HTTPCheckInfoOrBuilderpublic 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.HTTPCheckInfoOrBuilderpublic 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.HTTPCheckInfoOrBuilderpublic 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.HTTPCheckInfoOrBuilderpublic final boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
java.io.IOExceptionpublic int getSerializedSize()
public boolean equals(java.lang.Object obj)
public int hashCode()
public static Protos.HealthCheck.HTTPCheckInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.HealthCheck.HTTPCheckInfo parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.HealthCheck.HTTPCheckInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.HealthCheck.HTTPCheckInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.HealthCheck.HTTPCheckInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.HealthCheck.HTTPCheckInfo parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.HealthCheck.HTTPCheckInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.HealthCheck.HTTPCheckInfo parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.HealthCheck.HTTPCheckInfo parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.HealthCheck.HTTPCheckInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Protos.HealthCheck.HTTPCheckInfo.Builder newBuilderForType()
public static Protos.HealthCheck.HTTPCheckInfo.Builder newBuilder()
public static Protos.HealthCheck.HTTPCheckInfo.Builder newBuilder(Protos.HealthCheck.HTTPCheckInfo prototype)
public Protos.HealthCheck.HTTPCheckInfo.Builder toBuilder()
protected Protos.HealthCheck.HTTPCheckInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.HealthCheck.HTTPCheckInfo getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.HealthCheck.HTTPCheckInfo getDefaultInstanceForType()