public static final class Protos.Filters.Builder extends <any> 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 | Method and Description |
---|---|
Protos.Filters.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Filters |
build() |
Protos.Filters |
buildPartial() |
Protos.Filters.Builder |
clear() |
Protos.Filters.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Filters.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Filters.Builder |
clearRefuseSeconds()
Time to consider unused resources refused.
|
Protos.Filters.Builder |
clone() |
Protos.Filters |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
double |
getRefuseSeconds()
Time to consider unused resources refused.
|
boolean |
hasRefuseSeconds()
Time to consider unused resources refused.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.Filters.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Filters.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Filters.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Filters.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Filters.Builder |
setRefuseSeconds(double value)
Time to consider unused resources refused.
|
Protos.Filters.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Filters.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.Filters.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Filters getDefaultInstanceForType()
public Protos.Filters build()
public Protos.Filters buildPartial()
public Protos.Filters.Builder clone()
public Protos.Filters.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Filters.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Filters.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Filters.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Filters.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Filters.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Filters.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
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 Protos.Filters.Builder setRefuseSeconds(double value)
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];
public Protos.Filters.Builder clearRefuseSeconds()
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];
public final Protos.Filters.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Filters.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)