public static final class Protos.KillPolicy extends com.google.protobuf.GeneratedMessage implements Protos.KillPolicyOrBuilder
mesos.v1.KillPolicy
Describes a kill policy for a task. Currently does not express different policies (e.g. hitting HTTP endpoints), only controls how long to wait between graceful and forcible task kill: graceful kill --------------> forcible kill grace_period Kill policies are best-effort, because machine failures / forcible terminations may occur. NOTE: For executor-less command-based tasks, the kill is performed via sending a signal to the task process: SIGTERM for the graceful kill and SIGKILL for the forcible kill. For the docker executor-less tasks the grace period is passed to 'docker stop --time'.
Modifier and Type | Class and Description |
---|---|
static class |
Protos.KillPolicy.Builder
Protobuf type
mesos.v1.KillPolicy |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>
Modifier and Type | Field and Description |
---|---|
static int |
GRACE_PERIOD_FIELD_NUMBER |
static com.google.protobuf.Parser<Protos.KillPolicy> |
PARSER |
Modifier and Type | Method and Description |
---|---|
static Protos.KillPolicy |
getDefaultInstance() |
Protos.KillPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Protos.DurationInfo |
getGracePeriod()
optional .mesos.v1.DurationInfo grace_period = 1; |
Protos.DurationInfoOrBuilder |
getGracePeriodOrBuilder()
optional .mesos.v1.DurationInfo grace_period = 1; |
com.google.protobuf.Parser<Protos.KillPolicy> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasGracePeriod()
optional .mesos.v1.DurationInfo grace_period = 1; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.KillPolicy.Builder |
newBuilder() |
static Protos.KillPolicy.Builder |
newBuilder(Protos.KillPolicy prototype) |
Protos.KillPolicy.Builder |
newBuilderForType() |
protected Protos.KillPolicy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static Protos.KillPolicy |
parseDelimitedFrom(InputStream input) |
static Protos.KillPolicy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.KillPolicy |
parseFrom(byte[] data) |
static Protos.KillPolicy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.KillPolicy |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.KillPolicy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.KillPolicy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.KillPolicy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.KillPolicy |
parseFrom(InputStream input) |
static Protos.KillPolicy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.KillPolicy.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static com.google.protobuf.Parser<Protos.KillPolicy> PARSER
public static final int GRACE_PERIOD_FIELD_NUMBER
public static Protos.KillPolicy getDefaultInstance()
public Protos.KillPolicy getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<Protos.KillPolicy> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public boolean hasGracePeriod()
optional .mesos.v1.DurationInfo grace_period = 1;
The grace period specifies how long to wait before forcibly killing the task. It is recommended to attempt to gracefully kill the task (and send TASK_KILLING) to indicate that the graceful kill is in progress. Once the grace period elapses, if the task has not terminated, a forcible kill should occur. The task should not assume that it will always be allotted the full grace period. For example, the executor may be shutdown more quickly by the agent, or failures / forcible terminations may occur.
hasGracePeriod
in interface Protos.KillPolicyOrBuilder
public Protos.DurationInfo getGracePeriod()
optional .mesos.v1.DurationInfo grace_period = 1;
The grace period specifies how long to wait before forcibly killing the task. It is recommended to attempt to gracefully kill the task (and send TASK_KILLING) to indicate that the graceful kill is in progress. Once the grace period elapses, if the task has not terminated, a forcible kill should occur. The task should not assume that it will always be allotted the full grace period. For example, the executor may be shutdown more quickly by the agent, or failures / forcible terminations may occur.
getGracePeriod
in interface Protos.KillPolicyOrBuilder
public Protos.DurationInfoOrBuilder getGracePeriodOrBuilder()
optional .mesos.v1.DurationInfo grace_period = 1;
The grace period specifies how long to wait before forcibly killing the task. It is recommended to attempt to gracefully kill the task (and send TASK_KILLING) to indicate that the graceful kill is in progress. Once the grace period elapses, if the task has not terminated, a forcible kill should occur. The task should not assume that it will always be allotted the full grace period. For example, the executor may be shutdown more quickly by the agent, or failures / forcible terminations may occur.
getGracePeriodOrBuilder
in interface Protos.KillPolicyOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static Protos.KillPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.KillPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.KillPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.KillPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.KillPolicy parseFrom(InputStream input) throws IOException
IOException
public static Protos.KillPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.KillPolicy parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Protos.KillPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.KillPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Protos.KillPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protos.KillPolicy.Builder newBuilder()
public Protos.KillPolicy.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Protos.KillPolicy.Builder newBuilder(Protos.KillPolicy prototype)
public Protos.KillPolicy.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Protos.KillPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2017 The Apache Software Foundation. All Rights Reserved.