public static final class Protos.CheckInfo extends com.google.protobuf.GeneratedMessageV3 implements Protos.CheckInfoOrBuilder
Describes a general non-interpreting non-killing 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. NOTE: This API is subject to change and the related feature is experimental.Protobuf type
mesos.CheckInfo| Modifier and Type | Class and Description |
|---|---|
static class |
Protos.CheckInfo.Builder
Describes a general non-interpreting non-killing check for a task or
executor (or any arbitrary process/command).
|
static class |
Protos.CheckInfo.Command
Describes a command check.
|
static interface |
Protos.CheckInfo.CommandOrBuilder |
static class |
Protos.CheckInfo.Http
Describes an HTTP check.
|
static interface |
Protos.CheckInfo.HttpOrBuilder |
static class |
Protos.CheckInfo.Tcp
Describes a TCP check, i.e.
|
static interface |
Protos.CheckInfo.TcpOrBuilder |
static class |
Protos.CheckInfo.Type
Protobuf enum
mesos.CheckInfo.Type |
| Modifier and Type | Field and Description |
|---|---|
static int |
COMMAND_FIELD_NUMBER |
static int |
DELAY_SECONDS_FIELD_NUMBER |
static int |
HTTP_FIELD_NUMBER |
static int |
INTERVAL_SECONDS_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
static int |
TCP_FIELD_NUMBER |
static int |
TIMEOUT_SECONDS_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Protos.CheckInfo.Command |
getCommand()
Command check.
|
Protos.CheckInfo.CommandOrBuilder |
getCommandOrBuilder()
Command check.
|
static Protos.CheckInfo |
getDefaultInstance() |
Protos.CheckInfo |
getDefaultInstanceForType() |
double |
getDelaySeconds()
Amount of time to wait to start checking the task after it
transitions to `TASK_RUNNING` or `TASK_STARTING` if the latter
is used by the executor.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Protos.CheckInfo.Http |
getHttp()
HTTP check.
|
Protos.CheckInfo.HttpOrBuilder |
getHttpOrBuilder()
HTTP check.
|
double |
getIntervalSeconds()
Interval between check attempts, i.e., amount of time to wait after
the previous check finished or timed out to start the next check.
|
<any> |
getParserForType() |
int |
getSerializedSize() |
Protos.CheckInfo.Tcp |
getTcp()
TCP check.
|
Protos.CheckInfo.TcpOrBuilder |
getTcpOrBuilder()
TCP check.
|
double |
getTimeoutSeconds()
Amount of time to wait for the check to complete.
|
Protos.CheckInfo.Type |
getType()
The type of the check.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCommand()
Command check.
|
boolean |
hasDelaySeconds()
Amount of time to wait to start checking the task after it
transitions to `TASK_RUNNING` or `TASK_STARTING` if the latter
is used by the executor.
|
int |
hashCode() |
boolean |
hasHttp()
HTTP check.
|
boolean |
hasIntervalSeconds()
Interval between check attempts, i.e., amount of time to wait after
the previous check finished or timed out to start the next check.
|
boolean |
hasTcp()
TCP check.
|
boolean |
hasTimeoutSeconds()
Amount of time to wait for the check to complete.
|
boolean |
hasType()
The type of the check.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.CheckInfo.Builder |
newBuilder() |
static Protos.CheckInfo.Builder |
newBuilder(Protos.CheckInfo prototype) |
Protos.CheckInfo.Builder |
newBuilderForType() |
protected Protos.CheckInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.CheckInfo |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.CheckInfo |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.CheckInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.CheckInfo |
parseFrom(java.nio.ByteBuffer data) |
static Protos.CheckInfo |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.CheckInfo |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.CheckInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.CheckInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.CheckInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.CheckInfo |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.CheckInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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 final int DELAY_SECONDS_FIELD_NUMBER
public static final int INTERVAL_SECONDS_FIELD_NUMBER
public static final int TIMEOUT_SECONDS_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 hasType()
The type of the check.
optional .mesos.CheckInfo.Type type = 1;hasType in interface Protos.CheckInfoOrBuilderpublic Protos.CheckInfo.Type getType()
The type of the check.
optional .mesos.CheckInfo.Type type = 1;getType in interface Protos.CheckInfoOrBuilderpublic boolean hasCommand()
Command check.
optional .mesos.CheckInfo.Command command = 2;hasCommand in interface Protos.CheckInfoOrBuilderpublic Protos.CheckInfo.Command getCommand()
Command check.
optional .mesos.CheckInfo.Command command = 2;getCommand in interface Protos.CheckInfoOrBuilderpublic Protos.CheckInfo.CommandOrBuilder getCommandOrBuilder()
Command check.
optional .mesos.CheckInfo.Command command = 2;getCommandOrBuilder in interface Protos.CheckInfoOrBuilderpublic boolean hasHttp()
HTTP check.
optional .mesos.CheckInfo.Http http = 3;hasHttp in interface Protos.CheckInfoOrBuilderpublic Protos.CheckInfo.Http getHttp()
HTTP check.
optional .mesos.CheckInfo.Http http = 3;getHttp in interface Protos.CheckInfoOrBuilderpublic Protos.CheckInfo.HttpOrBuilder getHttpOrBuilder()
HTTP check.
optional .mesos.CheckInfo.Http http = 3;getHttpOrBuilder in interface Protos.CheckInfoOrBuilderpublic boolean hasTcp()
TCP check.
optional .mesos.CheckInfo.Tcp tcp = 7;hasTcp in interface Protos.CheckInfoOrBuilderpublic Protos.CheckInfo.Tcp getTcp()
TCP check.
optional .mesos.CheckInfo.Tcp tcp = 7;getTcp in interface Protos.CheckInfoOrBuilderpublic Protos.CheckInfo.TcpOrBuilder getTcpOrBuilder()
TCP check.
optional .mesos.CheckInfo.Tcp tcp = 7;getTcpOrBuilder in interface Protos.CheckInfoOrBuilderpublic boolean hasDelaySeconds()
Amount of time to wait to start checking the task after it transitions to `TASK_RUNNING` or `TASK_STARTING` if the latter is used by the executor.
optional double delay_seconds = 4 [default = 15];hasDelaySeconds in interface Protos.CheckInfoOrBuilderpublic double getDelaySeconds()
Amount of time to wait to start checking the task after it transitions to `TASK_RUNNING` or `TASK_STARTING` if the latter is used by the executor.
optional double delay_seconds = 4 [default = 15];getDelaySeconds in interface Protos.CheckInfoOrBuilderpublic boolean hasIntervalSeconds()
Interval between check attempts, i.e., amount of time to wait after the previous check finished or timed out to start the next check.
optional double interval_seconds = 5 [default = 10];hasIntervalSeconds in interface Protos.CheckInfoOrBuilderpublic double getIntervalSeconds()
Interval between check attempts, i.e., amount of time to wait after the previous check finished or timed out to start the next check.
optional double interval_seconds = 5 [default = 10];getIntervalSeconds in interface Protos.CheckInfoOrBuilderpublic boolean hasTimeoutSeconds()
Amount of time to wait for the check to complete. Zero means infinite timeout. After this timeout, the check attempt is aborted and no result is reported. Note that this may be considered a state change and hence may trigger a check status change delivery to the corresponding scheduler. See `CheckStatusInfo` for more details.
optional double timeout_seconds = 6 [default = 20];hasTimeoutSeconds in interface Protos.CheckInfoOrBuilderpublic double getTimeoutSeconds()
Amount of time to wait for the check to complete. Zero means infinite timeout. After this timeout, the check attempt is aborted and no result is reported. Note that this may be considered a state change and hence may trigger a check status change delivery to the corresponding scheduler. See `CheckStatusInfo` for more details.
optional double timeout_seconds = 6 [default = 20];getTimeoutSeconds in interface Protos.CheckInfoOrBuilderpublic 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.CheckInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.CheckInfo parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.CheckInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.CheckInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.CheckInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.CheckInfo parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.CheckInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.CheckInfo parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.CheckInfo parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.CheckInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Protos.CheckInfo.Builder newBuilderForType()
public static Protos.CheckInfo.Builder newBuilder()
public static Protos.CheckInfo.Builder newBuilder(Protos.CheckInfo prototype)
public Protos.CheckInfo.Builder toBuilder()
protected Protos.CheckInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.CheckInfo getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.CheckInfo getDefaultInstanceForType()