public static final class Protos.Filters extends com.google.protobuf.GeneratedMessageV3 implements Protos.FiltersOrBuilder
Describes possible filters that can be applied to unused resources (see SchedulerDriver::launchTasks) to influence the allocator.Protobuf type
mesos.Filters
Modifier and Type | Class and Description |
---|---|
static class |
Protos.Filters.Builder
Describes possible filters that can be applied to unused resources
(see SchedulerDriver::launchTasks) to influence the allocator.
|
Modifier and Type | Field and Description |
---|---|
static <any> |
PARSER
Deprecated.
|
static int |
REFUSE_SECONDS_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.Filters |
getDefaultInstance() |
Protos.Filters |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
<any> |
getParserForType() |
double |
getRefuseSeconds()
Time to consider unused resources refused.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasRefuseSeconds()
Time to consider unused resources refused.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.Filters.Builder |
newBuilder() |
static Protos.Filters.Builder |
newBuilder(Protos.Filters prototype) |
Protos.Filters.Builder |
newBuilderForType() |
protected Protos.Filters.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.Filters |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.Filters |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Filters |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Filters |
parseFrom(java.nio.ByteBuffer data) |
static Protos.Filters |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Filters |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.Filters |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Filters |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.Filters |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Filters |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.Filters.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int REFUSE_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 hasRefuseSeconds()
Time to consider unused resources refused. Note that all unused resources will be considered refused and use the default value (below) regardless of whether Filters was passed to SchedulerDriver::launchTasks. You MUST pass Filters with this field set to change this behavior (i.e., get another offer which includes unused resources sooner or later than the default). If this field is set to a number of seconds greater than 31536000 (365 days), then the resources will be considered refused for 365 days. If it is set to a negative number, then the default value will be used.
optional double refuse_seconds = 1 [default = 5];
hasRefuseSeconds
in interface Protos.FiltersOrBuilder
public double getRefuseSeconds()
Time to consider unused resources refused. Note that all unused resources will be considered refused and use the default value (below) regardless of whether Filters was passed to SchedulerDriver::launchTasks. You MUST pass Filters with this field set to change this behavior (i.e., get another offer which includes unused resources sooner or later than the default). If this field is set to a number of seconds greater than 31536000 (365 days), then the resources will be considered refused for 365 days. If it is set to a negative number, then the default value will be used.
optional double refuse_seconds = 1 [default = 5];
getRefuseSeconds
in interface Protos.FiltersOrBuilder
public final boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
java.io.IOException
public int getSerializedSize()
public boolean equals(java.lang.Object obj)
public int hashCode()
public static Protos.Filters parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Filters parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Filters parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Filters parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Filters parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Filters parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Filters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Filters parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Filters parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Filters parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.Filters.Builder newBuilderForType()
public static Protos.Filters.Builder newBuilder()
public static Protos.Filters.Builder newBuilder(Protos.Filters prototype)
public Protos.Filters.Builder toBuilder()
protected Protos.Filters.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.Filters getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.Filters getDefaultInstanceForType()