public static final class Protos.CheckInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<Protos.CheckInfo.Builder> implements Protos.CheckInfoOrBuilder
mesos.v1.CheckInfo
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 unstable and the related feature is experimental.
Modifier and Type | Method and Description |
---|---|
Protos.CheckInfo |
build() |
Protos.CheckInfo |
buildPartial() |
Protos.CheckInfo.Builder |
clear() |
Protos.CheckInfo.Builder |
clearCommand()
optional .mesos.v1.CheckInfo.Command command = 2; |
Protos.CheckInfo.Builder |
clearDelaySeconds()
optional double delay_seconds = 4 [default = 15]; |
Protos.CheckInfo.Builder |
clearHttp()
optional .mesos.v1.CheckInfo.Http http = 3; |
Protos.CheckInfo.Builder |
clearIntervalSeconds()
optional double interval_seconds = 5 [default = 10]; |
Protos.CheckInfo.Builder |
clearTcp()
optional .mesos.v1.CheckInfo.Tcp tcp = 7; |
Protos.CheckInfo.Builder |
clearTimeoutSeconds()
optional double timeout_seconds = 6 [default = 20]; |
Protos.CheckInfo.Builder |
clearType()
optional .mesos.v1.CheckInfo.Type type = 1; |
Protos.CheckInfo.Builder |
clone() |
Protos.CheckInfo.Command |
getCommand()
optional .mesos.v1.CheckInfo.Command command = 2; |
Protos.CheckInfo.Command.Builder |
getCommandBuilder()
optional .mesos.v1.CheckInfo.Command command = 2; |
Protos.CheckInfo.CommandOrBuilder |
getCommandOrBuilder()
optional .mesos.v1.CheckInfo.Command command = 2; |
Protos.CheckInfo |
getDefaultInstanceForType() |
double |
getDelaySeconds()
optional double delay_seconds = 4 [default = 15]; |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Protos.CheckInfo.Http |
getHttp()
optional .mesos.v1.CheckInfo.Http http = 3; |
Protos.CheckInfo.Http.Builder |
getHttpBuilder()
optional .mesos.v1.CheckInfo.Http http = 3; |
Protos.CheckInfo.HttpOrBuilder |
getHttpOrBuilder()
optional .mesos.v1.CheckInfo.Http http = 3; |
double |
getIntervalSeconds()
optional double interval_seconds = 5 [default = 10]; |
Protos.CheckInfo.Tcp |
getTcp()
optional .mesos.v1.CheckInfo.Tcp tcp = 7; |
Protos.CheckInfo.Tcp.Builder |
getTcpBuilder()
optional .mesos.v1.CheckInfo.Tcp tcp = 7; |
Protos.CheckInfo.TcpOrBuilder |
getTcpOrBuilder()
optional .mesos.v1.CheckInfo.Tcp tcp = 7; |
double |
getTimeoutSeconds()
optional double timeout_seconds = 6 [default = 20]; |
Protos.CheckInfo.Type |
getType()
optional .mesos.v1.CheckInfo.Type type = 1; |
boolean |
hasCommand()
optional .mesos.v1.CheckInfo.Command command = 2; |
boolean |
hasDelaySeconds()
optional double delay_seconds = 4 [default = 15]; |
boolean |
hasHttp()
optional .mesos.v1.CheckInfo.Http http = 3; |
boolean |
hasIntervalSeconds()
optional double interval_seconds = 5 [default = 10]; |
boolean |
hasTcp()
optional .mesos.v1.CheckInfo.Tcp tcp = 7; |
boolean |
hasTimeoutSeconds()
optional double timeout_seconds = 6 [default = 20]; |
boolean |
hasType()
optional .mesos.v1.CheckInfo.Type type = 1; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.CheckInfo.Builder |
mergeCommand(Protos.CheckInfo.Command value)
optional .mesos.v1.CheckInfo.Command command = 2; |
Protos.CheckInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.CheckInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.CheckInfo.Builder |
mergeFrom(Protos.CheckInfo other) |
Protos.CheckInfo.Builder |
mergeHttp(Protos.CheckInfo.Http value)
optional .mesos.v1.CheckInfo.Http http = 3; |
Protos.CheckInfo.Builder |
mergeTcp(Protos.CheckInfo.Tcp value)
optional .mesos.v1.CheckInfo.Tcp tcp = 7; |
Protos.CheckInfo.Builder |
setCommand(Protos.CheckInfo.Command.Builder builderForValue)
optional .mesos.v1.CheckInfo.Command command = 2; |
Protos.CheckInfo.Builder |
setCommand(Protos.CheckInfo.Command value)
optional .mesos.v1.CheckInfo.Command command = 2; |
Protos.CheckInfo.Builder |
setDelaySeconds(double value)
optional double delay_seconds = 4 [default = 15]; |
Protos.CheckInfo.Builder |
setHttp(Protos.CheckInfo.Http.Builder builderForValue)
optional .mesos.v1.CheckInfo.Http http = 3; |
Protos.CheckInfo.Builder |
setHttp(Protos.CheckInfo.Http value)
optional .mesos.v1.CheckInfo.Http http = 3; |
Protos.CheckInfo.Builder |
setIntervalSeconds(double value)
optional double interval_seconds = 5 [default = 10]; |
Protos.CheckInfo.Builder |
setTcp(Protos.CheckInfo.Tcp.Builder builderForValue)
optional .mesos.v1.CheckInfo.Tcp tcp = 7; |
Protos.CheckInfo.Builder |
setTcp(Protos.CheckInfo.Tcp value)
optional .mesos.v1.CheckInfo.Tcp tcp = 7; |
Protos.CheckInfo.Builder |
setTimeoutSeconds(double value)
optional double timeout_seconds = 6 [default = 20]; |
Protos.CheckInfo.Builder |
setType(Protos.CheckInfo.Type value)
optional .mesos.v1.CheckInfo.Type type = 1; |
addRepeatedField, clearField, clearOneof, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, newUninitializedMessageException
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<Protos.CheckInfo.Builder>
public Protos.CheckInfo.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<Protos.CheckInfo.Builder>
public Protos.CheckInfo.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.Builder<Protos.CheckInfo.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<Protos.CheckInfo.Builder>
public Protos.CheckInfo getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Protos.CheckInfo build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Protos.CheckInfo buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Protos.CheckInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protos.CheckInfo.Builder>
public Protos.CheckInfo.Builder mergeFrom(Protos.CheckInfo other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<Protos.CheckInfo.Builder>
public Protos.CheckInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Protos.CheckInfo.Builder>
IOException
public boolean hasType()
optional .mesos.v1.CheckInfo.Type type = 1;
The type of the check.
hasType
in interface Protos.CheckInfoOrBuilder
public Protos.CheckInfo.Type getType()
optional .mesos.v1.CheckInfo.Type type = 1;
The type of the check.
getType
in interface Protos.CheckInfoOrBuilder
public Protos.CheckInfo.Builder setType(Protos.CheckInfo.Type value)
optional .mesos.v1.CheckInfo.Type type = 1;
The type of the check.
public Protos.CheckInfo.Builder clearType()
optional .mesos.v1.CheckInfo.Type type = 1;
The type of the check.
public boolean hasCommand()
optional .mesos.v1.CheckInfo.Command command = 2;
Command check.
hasCommand
in interface Protos.CheckInfoOrBuilder
public Protos.CheckInfo.Command getCommand()
optional .mesos.v1.CheckInfo.Command command = 2;
Command check.
getCommand
in interface Protos.CheckInfoOrBuilder
public Protos.CheckInfo.Builder setCommand(Protos.CheckInfo.Command value)
optional .mesos.v1.CheckInfo.Command command = 2;
Command check.
public Protos.CheckInfo.Builder setCommand(Protos.CheckInfo.Command.Builder builderForValue)
optional .mesos.v1.CheckInfo.Command command = 2;
Command check.
public Protos.CheckInfo.Builder mergeCommand(Protos.CheckInfo.Command value)
optional .mesos.v1.CheckInfo.Command command = 2;
Command check.
public Protos.CheckInfo.Builder clearCommand()
optional .mesos.v1.CheckInfo.Command command = 2;
Command check.
public Protos.CheckInfo.Command.Builder getCommandBuilder()
optional .mesos.v1.CheckInfo.Command command = 2;
Command check.
public Protos.CheckInfo.CommandOrBuilder getCommandOrBuilder()
optional .mesos.v1.CheckInfo.Command command = 2;
Command check.
getCommandOrBuilder
in interface Protos.CheckInfoOrBuilder
public boolean hasHttp()
optional .mesos.v1.CheckInfo.Http http = 3;
HTTP check.
hasHttp
in interface Protos.CheckInfoOrBuilder
public Protos.CheckInfo.Http getHttp()
optional .mesos.v1.CheckInfo.Http http = 3;
HTTP check.
getHttp
in interface Protos.CheckInfoOrBuilder
public Protos.CheckInfo.Builder setHttp(Protos.CheckInfo.Http value)
optional .mesos.v1.CheckInfo.Http http = 3;
HTTP check.
public Protos.CheckInfo.Builder setHttp(Protos.CheckInfo.Http.Builder builderForValue)
optional .mesos.v1.CheckInfo.Http http = 3;
HTTP check.
public Protos.CheckInfo.Builder mergeHttp(Protos.CheckInfo.Http value)
optional .mesos.v1.CheckInfo.Http http = 3;
HTTP check.
public Protos.CheckInfo.Builder clearHttp()
optional .mesos.v1.CheckInfo.Http http = 3;
HTTP check.
public Protos.CheckInfo.Http.Builder getHttpBuilder()
optional .mesos.v1.CheckInfo.Http http = 3;
HTTP check.
public Protos.CheckInfo.HttpOrBuilder getHttpOrBuilder()
optional .mesos.v1.CheckInfo.Http http = 3;
HTTP check.
getHttpOrBuilder
in interface Protos.CheckInfoOrBuilder
public boolean hasTcp()
optional .mesos.v1.CheckInfo.Tcp tcp = 7;
TCP check.
hasTcp
in interface Protos.CheckInfoOrBuilder
public Protos.CheckInfo.Tcp getTcp()
optional .mesos.v1.CheckInfo.Tcp tcp = 7;
TCP check.
getTcp
in interface Protos.CheckInfoOrBuilder
public Protos.CheckInfo.Builder setTcp(Protos.CheckInfo.Tcp value)
optional .mesos.v1.CheckInfo.Tcp tcp = 7;
TCP check.
public Protos.CheckInfo.Builder setTcp(Protos.CheckInfo.Tcp.Builder builderForValue)
optional .mesos.v1.CheckInfo.Tcp tcp = 7;
TCP check.
public Protos.CheckInfo.Builder mergeTcp(Protos.CheckInfo.Tcp value)
optional .mesos.v1.CheckInfo.Tcp tcp = 7;
TCP check.
public Protos.CheckInfo.Builder clearTcp()
optional .mesos.v1.CheckInfo.Tcp tcp = 7;
TCP check.
public Protos.CheckInfo.Tcp.Builder getTcpBuilder()
optional .mesos.v1.CheckInfo.Tcp tcp = 7;
TCP check.
public Protos.CheckInfo.TcpOrBuilder getTcpOrBuilder()
optional .mesos.v1.CheckInfo.Tcp tcp = 7;
TCP check.
getTcpOrBuilder
in interface Protos.CheckInfoOrBuilder
public boolean hasDelaySeconds()
optional double delay_seconds = 4 [default = 15];
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.
hasDelaySeconds
in interface Protos.CheckInfoOrBuilder
public double getDelaySeconds()
optional double delay_seconds = 4 [default = 15];
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.
getDelaySeconds
in interface Protos.CheckInfoOrBuilder
public Protos.CheckInfo.Builder setDelaySeconds(double value)
optional double delay_seconds = 4 [default = 15];
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.
public Protos.CheckInfo.Builder clearDelaySeconds()
optional double delay_seconds = 4 [default = 15];
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.
public boolean hasIntervalSeconds()
optional double interval_seconds = 5 [default = 10];
Interval between check attempts, i.e., amount of time to wait after the previous check finished or timed out to start the next check.
hasIntervalSeconds
in interface Protos.CheckInfoOrBuilder
public double getIntervalSeconds()
optional double interval_seconds = 5 [default = 10];
Interval between check attempts, i.e., amount of time to wait after the previous check finished or timed out to start the next check.
getIntervalSeconds
in interface Protos.CheckInfoOrBuilder
public Protos.CheckInfo.Builder setIntervalSeconds(double value)
optional double interval_seconds = 5 [default = 10];
Interval between check attempts, i.e., amount of time to wait after the previous check finished or timed out to start the next check.
public Protos.CheckInfo.Builder clearIntervalSeconds()
optional double interval_seconds = 5 [default = 10];
Interval between check attempts, i.e., amount of time to wait after the previous check finished or timed out to start the next check.
public boolean hasTimeoutSeconds()
optional double timeout_seconds = 6 [default = 20];
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.
hasTimeoutSeconds
in interface Protos.CheckInfoOrBuilder
public double getTimeoutSeconds()
optional double timeout_seconds = 6 [default = 20];
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.
getTimeoutSeconds
in interface Protos.CheckInfoOrBuilder
public Protos.CheckInfo.Builder setTimeoutSeconds(double value)
optional double timeout_seconds = 6 [default = 20];
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.
public Protos.CheckInfo.Builder clearTimeoutSeconds()
optional double timeout_seconds = 6 [default = 20];
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.
Copyright © 2017 The Apache Software Foundation. All Rights Reserved.