public static final class Protos.DrainConfig.Builder extends <any> implements Protos.DrainConfigOrBuilder
mesos.DrainConfig
Modifier and Type | Method and Description |
---|---|
Protos.DrainConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.DrainConfig |
build() |
Protos.DrainConfig |
buildPartial() |
Protos.DrainConfig.Builder |
clear() |
Protos.DrainConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.DrainConfig.Builder |
clearMarkGone()
Whether or not this agent will be removed permanently from the cluster when
draining is complete.
|
Protos.DrainConfig.Builder |
clearMaxGracePeriod()
An upper bound for tasks with a KillPolicy.
|
Protos.DrainConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.DrainConfig.Builder |
clone() |
Protos.DrainConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getMarkGone()
Whether or not this agent will be removed permanently from the cluster when
draining is complete.
|
Protos.DurationInfo |
getMaxGracePeriod()
An upper bound for tasks with a KillPolicy.
|
Protos.DurationInfo.Builder |
getMaxGracePeriodBuilder()
An upper bound for tasks with a KillPolicy.
|
Protos.DurationInfoOrBuilder |
getMaxGracePeriodOrBuilder()
An upper bound for tasks with a KillPolicy.
|
boolean |
hasMarkGone()
Whether or not this agent will be removed permanently from the cluster when
draining is complete.
|
boolean |
hasMaxGracePeriod()
An upper bound for tasks with a KillPolicy.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.DrainConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.DrainConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.DrainConfig.Builder |
mergeMaxGracePeriod(Protos.DurationInfo value)
An upper bound for tasks with a KillPolicy.
|
Protos.DrainConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.DrainConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.DrainConfig.Builder |
setMarkGone(boolean value)
Whether or not this agent will be removed permanently from the cluster when
draining is complete.
|
Protos.DrainConfig.Builder |
setMaxGracePeriod(Protos.DurationInfo.Builder builderForValue)
An upper bound for tasks with a KillPolicy.
|
Protos.DrainConfig.Builder |
setMaxGracePeriod(Protos.DurationInfo value)
An upper bound for tasks with a KillPolicy.
|
Protos.DrainConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.DrainConfig.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.DrainConfig.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.DrainConfig getDefaultInstanceForType()
public Protos.DrainConfig build()
public Protos.DrainConfig buildPartial()
public Protos.DrainConfig.Builder clone()
public Protos.DrainConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.DrainConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.DrainConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.DrainConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.DrainConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.DrainConfig.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.DrainConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public boolean hasMaxGracePeriod()
An upper bound for tasks with a KillPolicy. If a task has a KillPolicy grace period greater than this value, this value will be used instead. This allows the operator to limit the maximum time it will take the agent to drain. If this field is unset, the task's KillPolicy or the executor's default grace period is used. NOTE: Grace periods start when the executor receives the associated kill. If, for example, the agent is unreachable when this call is made, tasks will still receive their full grace period to kill gracefully.
optional .mesos.DurationInfo max_grace_period = 1;
hasMaxGracePeriod
in interface Protos.DrainConfigOrBuilder
public Protos.DurationInfo getMaxGracePeriod()
An upper bound for tasks with a KillPolicy. If a task has a KillPolicy grace period greater than this value, this value will be used instead. This allows the operator to limit the maximum time it will take the agent to drain. If this field is unset, the task's KillPolicy or the executor's default grace period is used. NOTE: Grace periods start when the executor receives the associated kill. If, for example, the agent is unreachable when this call is made, tasks will still receive their full grace period to kill gracefully.
optional .mesos.DurationInfo max_grace_period = 1;
getMaxGracePeriod
in interface Protos.DrainConfigOrBuilder
public Protos.DrainConfig.Builder setMaxGracePeriod(Protos.DurationInfo value)
An upper bound for tasks with a KillPolicy. If a task has a KillPolicy grace period greater than this value, this value will be used instead. This allows the operator to limit the maximum time it will take the agent to drain. If this field is unset, the task's KillPolicy or the executor's default grace period is used. NOTE: Grace periods start when the executor receives the associated kill. If, for example, the agent is unreachable when this call is made, tasks will still receive their full grace period to kill gracefully.
optional .mesos.DurationInfo max_grace_period = 1;
public Protos.DrainConfig.Builder setMaxGracePeriod(Protos.DurationInfo.Builder builderForValue)
An upper bound for tasks with a KillPolicy. If a task has a KillPolicy grace period greater than this value, this value will be used instead. This allows the operator to limit the maximum time it will take the agent to drain. If this field is unset, the task's KillPolicy or the executor's default grace period is used. NOTE: Grace periods start when the executor receives the associated kill. If, for example, the agent is unreachable when this call is made, tasks will still receive their full grace period to kill gracefully.
optional .mesos.DurationInfo max_grace_period = 1;
public Protos.DrainConfig.Builder mergeMaxGracePeriod(Protos.DurationInfo value)
An upper bound for tasks with a KillPolicy. If a task has a KillPolicy grace period greater than this value, this value will be used instead. This allows the operator to limit the maximum time it will take the agent to drain. If this field is unset, the task's KillPolicy or the executor's default grace period is used. NOTE: Grace periods start when the executor receives the associated kill. If, for example, the agent is unreachable when this call is made, tasks will still receive their full grace period to kill gracefully.
optional .mesos.DurationInfo max_grace_period = 1;
public Protos.DrainConfig.Builder clearMaxGracePeriod()
An upper bound for tasks with a KillPolicy. If a task has a KillPolicy grace period greater than this value, this value will be used instead. This allows the operator to limit the maximum time it will take the agent to drain. If this field is unset, the task's KillPolicy or the executor's default grace period is used. NOTE: Grace periods start when the executor receives the associated kill. If, for example, the agent is unreachable when this call is made, tasks will still receive their full grace period to kill gracefully.
optional .mesos.DurationInfo max_grace_period = 1;
public Protos.DurationInfo.Builder getMaxGracePeriodBuilder()
An upper bound for tasks with a KillPolicy. If a task has a KillPolicy grace period greater than this value, this value will be used instead. This allows the operator to limit the maximum time it will take the agent to drain. If this field is unset, the task's KillPolicy or the executor's default grace period is used. NOTE: Grace periods start when the executor receives the associated kill. If, for example, the agent is unreachable when this call is made, tasks will still receive their full grace period to kill gracefully.
optional .mesos.DurationInfo max_grace_period = 1;
public Protos.DurationInfoOrBuilder getMaxGracePeriodOrBuilder()
An upper bound for tasks with a KillPolicy. If a task has a KillPolicy grace period greater than this value, this value will be used instead. This allows the operator to limit the maximum time it will take the agent to drain. If this field is unset, the task's KillPolicy or the executor's default grace period is used. NOTE: Grace periods start when the executor receives the associated kill. If, for example, the agent is unreachable when this call is made, tasks will still receive their full grace period to kill gracefully.
optional .mesos.DurationInfo max_grace_period = 1;
getMaxGracePeriodOrBuilder
in interface Protos.DrainConfigOrBuilder
public boolean hasMarkGone()
Whether or not this agent will be removed permanently from the cluster when draining is complete. This transition is automatic and does **NOT** require a separate call to `MarkAgentGone`. If this field is unset, then the default value of `false` is used. Compared to `MarkAgentGone`, which is used for unreachable agents, marking agents gone after draining will respect kill policies. To notify frameworks, tasks terminated during draining will return a `TASK_GONE_BY_OPERATOR` status update instead of any other terminal status. Executors will not need to account for this case, because the terminal status update will be intercepted and modified by the agent.
optional bool mark_gone = 2 [default = false];
hasMarkGone
in interface Protos.DrainConfigOrBuilder
public boolean getMarkGone()
Whether or not this agent will be removed permanently from the cluster when draining is complete. This transition is automatic and does **NOT** require a separate call to `MarkAgentGone`. If this field is unset, then the default value of `false` is used. Compared to `MarkAgentGone`, which is used for unreachable agents, marking agents gone after draining will respect kill policies. To notify frameworks, tasks terminated during draining will return a `TASK_GONE_BY_OPERATOR` status update instead of any other terminal status. Executors will not need to account for this case, because the terminal status update will be intercepted and modified by the agent.
optional bool mark_gone = 2 [default = false];
getMarkGone
in interface Protos.DrainConfigOrBuilder
public Protos.DrainConfig.Builder setMarkGone(boolean value)
Whether or not this agent will be removed permanently from the cluster when draining is complete. This transition is automatic and does **NOT** require a separate call to `MarkAgentGone`. If this field is unset, then the default value of `false` is used. Compared to `MarkAgentGone`, which is used for unreachable agents, marking agents gone after draining will respect kill policies. To notify frameworks, tasks terminated during draining will return a `TASK_GONE_BY_OPERATOR` status update instead of any other terminal status. Executors will not need to account for this case, because the terminal status update will be intercepted and modified by the agent.
optional bool mark_gone = 2 [default = false];
public Protos.DrainConfig.Builder clearMarkGone()
Whether or not this agent will be removed permanently from the cluster when draining is complete. This transition is automatic and does **NOT** require a separate call to `MarkAgentGone`. If this field is unset, then the default value of `false` is used. Compared to `MarkAgentGone`, which is used for unreachable agents, marking agents gone after draining will respect kill policies. To notify frameworks, tasks terminated during draining will return a `TASK_GONE_BY_OPERATOR` status update instead of any other terminal status. Executors will not need to account for this case, because the terminal status update will be intercepted and modified by the agent.
optional bool mark_gone = 2 [default = false];
public final Protos.DrainConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.DrainConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)