public static final class Protos.FrameworkInfo.Builder extends <any> implements Protos.FrameworkInfoOrBuilder
Describes a framework.Protobuf type
mesos.FrameworkInfo
Modifier and Type | Method and Description |
---|---|
Protos.FrameworkInfo.Builder |
addAllCapabilities(java.lang.Iterable<? extends Protos.FrameworkInfo.Capability> values)
This field allows a framework to advertise its set of
capabilities (e.g., ability to receive offers for revocable
resources).
|
Protos.FrameworkInfo.Builder |
addAllRoles(java.lang.Iterable<java.lang.String> values)
repeated string roles = 12; |
Protos.FrameworkInfo.Builder |
addCapabilities(int index,
Protos.FrameworkInfo.Capability.Builder builderForValue)
This field allows a framework to advertise its set of
capabilities (e.g., ability to receive offers for revocable
resources).
|
Protos.FrameworkInfo.Builder |
addCapabilities(int index,
Protos.FrameworkInfo.Capability value)
This field allows a framework to advertise its set of
capabilities (e.g., ability to receive offers for revocable
resources).
|
Protos.FrameworkInfo.Builder |
addCapabilities(Protos.FrameworkInfo.Capability.Builder builderForValue)
This field allows a framework to advertise its set of
capabilities (e.g., ability to receive offers for revocable
resources).
|
Protos.FrameworkInfo.Builder |
addCapabilities(Protos.FrameworkInfo.Capability value)
This field allows a framework to advertise its set of
capabilities (e.g., ability to receive offers for revocable
resources).
|
Protos.FrameworkInfo.Capability.Builder |
addCapabilitiesBuilder()
This field allows a framework to advertise its set of
capabilities (e.g., ability to receive offers for revocable
resources).
|
Protos.FrameworkInfo.Capability.Builder |
addCapabilitiesBuilder(int index)
This field allows a framework to advertise its set of
capabilities (e.g., ability to receive offers for revocable
resources).
|
Protos.FrameworkInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.FrameworkInfo.Builder |
addRoles(java.lang.String value)
repeated string roles = 12; |
Protos.FrameworkInfo.Builder |
addRolesBytes(com.google.protobuf.ByteString value)
repeated string roles = 12; |
Protos.FrameworkInfo |
build() |
Protos.FrameworkInfo |
buildPartial() |
Protos.FrameworkInfo.Builder |
clear() |
Protos.FrameworkInfo.Builder |
clearCapabilities()
This field allows a framework to advertise its set of
capabilities (e.g., ability to receive offers for revocable
resources).
|
Protos.FrameworkInfo.Builder |
clearCheckpoint()
If set, agents running tasks started by this framework will write
the framework pid, executor pids and status updates to disk.
|
Protos.FrameworkInfo.Builder |
clearFailoverTimeout()
The amount of time (in seconds) that the master will wait for the
scheduler to failover before it tears down the framework by
killing all its tasks/executors.
|
Protos.FrameworkInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.FrameworkInfo.Builder |
clearHostname()
Used to indicate the current host from which the scheduler is
registered in the Mesos Web UI.
|
Protos.FrameworkInfo.Builder |
clearId()
Used to uniquely identify the framework.
|
Protos.FrameworkInfo.Builder |
clearLabels()
Labels are free-form key value pairs supplied by the framework
scheduler (e.g., to describe additional functionality offered by
the framework).
|
Protos.FrameworkInfo.Builder |
clearName()
Name of the framework that shows up in the Mesos Web UI.
|
Protos.FrameworkInfo.Builder |
clearOfferFilters() |
Protos.FrameworkInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.FrameworkInfo.Builder |
clearPrincipal()
This field should match the credential's principal the framework
uses for authentication.
|
Protos.FrameworkInfo.Builder |
clearRole()
Deprecated.
|
Protos.FrameworkInfo.Builder |
clearRoles()
repeated string roles = 12; |
Protos.FrameworkInfo.Builder |
clearUser()
Used to determine the Unix user that an executor or task should be
launched as.
|
Protos.FrameworkInfo.Builder |
clearWebuiUrl()
This field allows a framework to advertise its web UI, so that
the Mesos web UI can link to it.
|
Protos.FrameworkInfo.Builder |
clone() |
boolean |
containsOfferFilters(java.lang.String key)
Specifc resource requirements for each of the framework's roles.
|
Protos.FrameworkInfo.Capability |
getCapabilities(int index)
This field allows a framework to advertise its set of
capabilities (e.g., ability to receive offers for revocable
resources).
|
Protos.FrameworkInfo.Capability.Builder |
getCapabilitiesBuilder(int index)
This field allows a framework to advertise its set of
capabilities (e.g., ability to receive offers for revocable
resources).
|
java.util.List<Protos.FrameworkInfo.Capability.Builder> |
getCapabilitiesBuilderList()
This field allows a framework to advertise its set of
capabilities (e.g., ability to receive offers for revocable
resources).
|
int |
getCapabilitiesCount()
This field allows a framework to advertise its set of
capabilities (e.g., ability to receive offers for revocable
resources).
|
java.util.List<Protos.FrameworkInfo.Capability> |
getCapabilitiesList()
This field allows a framework to advertise its set of
capabilities (e.g., ability to receive offers for revocable
resources).
|
Protos.FrameworkInfo.CapabilityOrBuilder |
getCapabilitiesOrBuilder(int index)
This field allows a framework to advertise its set of
capabilities (e.g., ability to receive offers for revocable
resources).
|
java.util.List<? extends Protos.FrameworkInfo.CapabilityOrBuilder> |
getCapabilitiesOrBuilderList()
This field allows a framework to advertise its set of
capabilities (e.g., ability to receive offers for revocable
resources).
|
boolean |
getCheckpoint()
If set, agents running tasks started by this framework will write
the framework pid, executor pids and status updates to disk.
|
Protos.FrameworkInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
double |
getFailoverTimeout()
The amount of time (in seconds) that the master will wait for the
scheduler to failover before it tears down the framework by
killing all its tasks/executors.
|
java.lang.String |
getHostname()
Used to indicate the current host from which the scheduler is
registered in the Mesos Web UI.
|
com.google.protobuf.ByteString |
getHostnameBytes()
Used to indicate the current host from which the scheduler is
registered in the Mesos Web UI.
|
Protos.FrameworkID |
getId()
Used to uniquely identify the framework.
|
Protos.FrameworkID.Builder |
getIdBuilder()
Used to uniquely identify the framework.
|
Protos.FrameworkIDOrBuilder |
getIdOrBuilder()
Used to uniquely identify the framework.
|
Protos.Labels |
getLabels()
Labels are free-form key value pairs supplied by the framework
scheduler (e.g., to describe additional functionality offered by
the framework).
|
Protos.Labels.Builder |
getLabelsBuilder()
Labels are free-form key value pairs supplied by the framework
scheduler (e.g., to describe additional functionality offered by
the framework).
|
Protos.LabelsOrBuilder |
getLabelsOrBuilder()
Labels are free-form key value pairs supplied by the framework
scheduler (e.g., to describe additional functionality offered by
the framework).
|
java.util.Map<java.lang.String,Protos.OfferFilters> |
getMutableOfferFilters()
Deprecated.
|
java.lang.String |
getName()
Name of the framework that shows up in the Mesos Web UI.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the framework that shows up in the Mesos Web UI.
|
java.util.Map<java.lang.String,Protos.OfferFilters> |
getOfferFilters()
Deprecated.
|
int |
getOfferFiltersCount()
Specifc resource requirements for each of the framework's roles.
|
java.util.Map<java.lang.String,Protos.OfferFilters> |
getOfferFiltersMap()
Specifc resource requirements for each of the framework's roles.
|
Protos.OfferFilters |
getOfferFiltersOrDefault(java.lang.String key,
Protos.OfferFilters defaultValue)
Specifc resource requirements for each of the framework's roles.
|
Protos.OfferFilters |
getOfferFiltersOrThrow(java.lang.String key)
Specifc resource requirements for each of the framework's roles.
|
java.lang.String |
getPrincipal()
This field should match the credential's principal the framework
uses for authentication.
|
com.google.protobuf.ByteString |
getPrincipalBytes()
This field should match the credential's principal the framework
uses for authentication.
|
java.lang.String |
getRole()
Deprecated.
|
com.google.protobuf.ByteString |
getRoleBytes()
Deprecated.
|
java.lang.String |
getRoles(int index)
repeated string roles = 12; |
com.google.protobuf.ByteString |
getRolesBytes(int index)
repeated string roles = 12; |
int |
getRolesCount()
repeated string roles = 12; |
com.google.protobuf.ProtocolStringList |
getRolesList()
repeated string roles = 12; |
java.lang.String |
getUser()
Used to determine the Unix user that an executor or task should be
launched as.
|
com.google.protobuf.ByteString |
getUserBytes()
Used to determine the Unix user that an executor or task should be
launched as.
|
java.lang.String |
getWebuiUrl()
This field allows a framework to advertise its web UI, so that
the Mesos web UI can link to it.
|
com.google.protobuf.ByteString |
getWebuiUrlBytes()
This field allows a framework to advertise its web UI, so that
the Mesos web UI can link to it.
|
boolean |
hasCheckpoint()
If set, agents running tasks started by this framework will write
the framework pid, executor pids and status updates to disk.
|
boolean |
hasFailoverTimeout()
The amount of time (in seconds) that the master will wait for the
scheduler to failover before it tears down the framework by
killing all its tasks/executors.
|
boolean |
hasHostname()
Used to indicate the current host from which the scheduler is
registered in the Mesos Web UI.
|
boolean |
hasId()
Used to uniquely identify the framework.
|
boolean |
hasLabels()
Labels are free-form key value pairs supplied by the framework
scheduler (e.g., to describe additional functionality offered by
the framework).
|
boolean |
hasName()
Name of the framework that shows up in the Mesos Web UI.
|
boolean |
hasPrincipal()
This field should match the credential's principal the framework
uses for authentication.
|
boolean |
hasRole()
Deprecated.
|
boolean |
hasUser()
Used to determine the Unix user that an executor or task should be
launched as.
|
boolean |
hasWebuiUrl()
This field allows a framework to advertise its web UI, so that
the Mesos web UI can link to it.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Protos.FrameworkInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.FrameworkInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.FrameworkInfo.Builder |
mergeId(Protos.FrameworkID value)
Used to uniquely identify the framework.
|
Protos.FrameworkInfo.Builder |
mergeLabels(Protos.Labels value)
Labels are free-form key value pairs supplied by the framework
scheduler (e.g., to describe additional functionality offered by
the framework).
|
Protos.FrameworkInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.FrameworkInfo.Builder |
putAllOfferFilters(java.util.Map<java.lang.String,Protos.OfferFilters> values)
Specifc resource requirements for each of the framework's roles.
|
Protos.FrameworkInfo.Builder |
putOfferFilters(java.lang.String key,
Protos.OfferFilters value)
Specifc resource requirements for each of the framework's roles.
|
Protos.FrameworkInfo.Builder |
removeCapabilities(int index)
This field allows a framework to advertise its set of
capabilities (e.g., ability to receive offers for revocable
resources).
|
Protos.FrameworkInfo.Builder |
removeOfferFilters(java.lang.String key)
Specifc resource requirements for each of the framework's roles.
|
Protos.FrameworkInfo.Builder |
setCapabilities(int index,
Protos.FrameworkInfo.Capability.Builder builderForValue)
This field allows a framework to advertise its set of
capabilities (e.g., ability to receive offers for revocable
resources).
|
Protos.FrameworkInfo.Builder |
setCapabilities(int index,
Protos.FrameworkInfo.Capability value)
This field allows a framework to advertise its set of
capabilities (e.g., ability to receive offers for revocable
resources).
|
Protos.FrameworkInfo.Builder |
setCheckpoint(boolean value)
If set, agents running tasks started by this framework will write
the framework pid, executor pids and status updates to disk.
|
Protos.FrameworkInfo.Builder |
setFailoverTimeout(double value)
The amount of time (in seconds) that the master will wait for the
scheduler to failover before it tears down the framework by
killing all its tasks/executors.
|
Protos.FrameworkInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.FrameworkInfo.Builder |
setHostname(java.lang.String value)
Used to indicate the current host from which the scheduler is
registered in the Mesos Web UI.
|
Protos.FrameworkInfo.Builder |
setHostnameBytes(com.google.protobuf.ByteString value)
Used to indicate the current host from which the scheduler is
registered in the Mesos Web UI.
|
Protos.FrameworkInfo.Builder |
setId(Protos.FrameworkID.Builder builderForValue)
Used to uniquely identify the framework.
|
Protos.FrameworkInfo.Builder |
setId(Protos.FrameworkID value)
Used to uniquely identify the framework.
|
Protos.FrameworkInfo.Builder |
setLabels(Protos.Labels.Builder builderForValue)
Labels are free-form key value pairs supplied by the framework
scheduler (e.g., to describe additional functionality offered by
the framework).
|
Protos.FrameworkInfo.Builder |
setLabels(Protos.Labels value)
Labels are free-form key value pairs supplied by the framework
scheduler (e.g., to describe additional functionality offered by
the framework).
|
Protos.FrameworkInfo.Builder |
setName(java.lang.String value)
Name of the framework that shows up in the Mesos Web UI.
|
Protos.FrameworkInfo.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Name of the framework that shows up in the Mesos Web UI.
|
Protos.FrameworkInfo.Builder |
setPrincipal(java.lang.String value)
This field should match the credential's principal the framework
uses for authentication.
|
Protos.FrameworkInfo.Builder |
setPrincipalBytes(com.google.protobuf.ByteString value)
This field should match the credential's principal the framework
uses for authentication.
|
Protos.FrameworkInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.FrameworkInfo.Builder |
setRole(java.lang.String value)
Deprecated.
|
Protos.FrameworkInfo.Builder |
setRoleBytes(com.google.protobuf.ByteString value)
Deprecated.
|
Protos.FrameworkInfo.Builder |
setRoles(int index,
java.lang.String value)
repeated string roles = 12; |
Protos.FrameworkInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.FrameworkInfo.Builder |
setUser(java.lang.String value)
Used to determine the Unix user that an executor or task should be
launched as.
|
Protos.FrameworkInfo.Builder |
setUserBytes(com.google.protobuf.ByteString value)
Used to determine the Unix user that an executor or task should be
launched as.
|
Protos.FrameworkInfo.Builder |
setWebuiUrl(java.lang.String value)
This field allows a framework to advertise its web UI, so that
the Mesos web UI can link to it.
|
Protos.FrameworkInfo.Builder |
setWebuiUrlBytes(com.google.protobuf.ByteString value)
This field allows a framework to advertise its web UI, so that
the Mesos web UI can link to it.
|
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.FrameworkInfo.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.FrameworkInfo getDefaultInstanceForType()
public Protos.FrameworkInfo build()
public Protos.FrameworkInfo buildPartial()
public Protos.FrameworkInfo.Builder clone()
public Protos.FrameworkInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.FrameworkInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.FrameworkInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.FrameworkInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.FrameworkInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.FrameworkInfo.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.FrameworkInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public boolean hasUser()
Used to determine the Unix user that an executor or task should be launched as. When using the MesosSchedulerDriver, if the field is set to an empty string, it will automagically set it to the current user. When using the HTTP Scheduler API, the user has to be set explicitly.
required string user = 1;
hasUser
in interface Protos.FrameworkInfoOrBuilder
public java.lang.String getUser()
Used to determine the Unix user that an executor or task should be launched as. When using the MesosSchedulerDriver, if the field is set to an empty string, it will automagically set it to the current user. When using the HTTP Scheduler API, the user has to be set explicitly.
required string user = 1;
getUser
in interface Protos.FrameworkInfoOrBuilder
public com.google.protobuf.ByteString getUserBytes()
Used to determine the Unix user that an executor or task should be launched as. When using the MesosSchedulerDriver, if the field is set to an empty string, it will automagically set it to the current user. When using the HTTP Scheduler API, the user has to be set explicitly.
required string user = 1;
getUserBytes
in interface Protos.FrameworkInfoOrBuilder
public Protos.FrameworkInfo.Builder setUser(java.lang.String value)
Used to determine the Unix user that an executor or task should be launched as. When using the MesosSchedulerDriver, if the field is set to an empty string, it will automagically set it to the current user. When using the HTTP Scheduler API, the user has to be set explicitly.
required string user = 1;
public Protos.FrameworkInfo.Builder clearUser()
Used to determine the Unix user that an executor or task should be launched as. When using the MesosSchedulerDriver, if the field is set to an empty string, it will automagically set it to the current user. When using the HTTP Scheduler API, the user has to be set explicitly.
required string user = 1;
public Protos.FrameworkInfo.Builder setUserBytes(com.google.protobuf.ByteString value)
Used to determine the Unix user that an executor or task should be launched as. When using the MesosSchedulerDriver, if the field is set to an empty string, it will automagically set it to the current user. When using the HTTP Scheduler API, the user has to be set explicitly.
required string user = 1;
public boolean hasName()
Name of the framework that shows up in the Mesos Web UI.
required string name = 2;
hasName
in interface Protos.FrameworkInfoOrBuilder
public java.lang.String getName()
Name of the framework that shows up in the Mesos Web UI.
required string name = 2;
getName
in interface Protos.FrameworkInfoOrBuilder
public com.google.protobuf.ByteString getNameBytes()
Name of the framework that shows up in the Mesos Web UI.
required string name = 2;
getNameBytes
in interface Protos.FrameworkInfoOrBuilder
public Protos.FrameworkInfo.Builder setName(java.lang.String value)
Name of the framework that shows up in the Mesos Web UI.
required string name = 2;
public Protos.FrameworkInfo.Builder clearName()
Name of the framework that shows up in the Mesos Web UI.
required string name = 2;
public Protos.FrameworkInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the framework that shows up in the Mesos Web UI.
required string name = 2;
public boolean hasId()
Used to uniquely identify the framework. This field must be unset when the framework subscribes for the first time upon which the master will assign a new ID. To resubscribe after scheduler failover the framework should set 'id' to the ID assigned by the master. Setting 'id' to values not assigned by Mesos masters is unsupported.
optional .mesos.FrameworkID id = 3;
hasId
in interface Protos.FrameworkInfoOrBuilder
public Protos.FrameworkID getId()
Used to uniquely identify the framework. This field must be unset when the framework subscribes for the first time upon which the master will assign a new ID. To resubscribe after scheduler failover the framework should set 'id' to the ID assigned by the master. Setting 'id' to values not assigned by Mesos masters is unsupported.
optional .mesos.FrameworkID id = 3;
getId
in interface Protos.FrameworkInfoOrBuilder
public Protos.FrameworkInfo.Builder setId(Protos.FrameworkID value)
Used to uniquely identify the framework. This field must be unset when the framework subscribes for the first time upon which the master will assign a new ID. To resubscribe after scheduler failover the framework should set 'id' to the ID assigned by the master. Setting 'id' to values not assigned by Mesos masters is unsupported.
optional .mesos.FrameworkID id = 3;
public Protos.FrameworkInfo.Builder setId(Protos.FrameworkID.Builder builderForValue)
Used to uniquely identify the framework. This field must be unset when the framework subscribes for the first time upon which the master will assign a new ID. To resubscribe after scheduler failover the framework should set 'id' to the ID assigned by the master. Setting 'id' to values not assigned by Mesos masters is unsupported.
optional .mesos.FrameworkID id = 3;
public Protos.FrameworkInfo.Builder mergeId(Protos.FrameworkID value)
Used to uniquely identify the framework. This field must be unset when the framework subscribes for the first time upon which the master will assign a new ID. To resubscribe after scheduler failover the framework should set 'id' to the ID assigned by the master. Setting 'id' to values not assigned by Mesos masters is unsupported.
optional .mesos.FrameworkID id = 3;
public Protos.FrameworkInfo.Builder clearId()
Used to uniquely identify the framework. This field must be unset when the framework subscribes for the first time upon which the master will assign a new ID. To resubscribe after scheduler failover the framework should set 'id' to the ID assigned by the master. Setting 'id' to values not assigned by Mesos masters is unsupported.
optional .mesos.FrameworkID id = 3;
public Protos.FrameworkID.Builder getIdBuilder()
Used to uniquely identify the framework. This field must be unset when the framework subscribes for the first time upon which the master will assign a new ID. To resubscribe after scheduler failover the framework should set 'id' to the ID assigned by the master. Setting 'id' to values not assigned by Mesos masters is unsupported.
optional .mesos.FrameworkID id = 3;
public Protos.FrameworkIDOrBuilder getIdOrBuilder()
Used to uniquely identify the framework. This field must be unset when the framework subscribes for the first time upon which the master will assign a new ID. To resubscribe after scheduler failover the framework should set 'id' to the ID assigned by the master. Setting 'id' to values not assigned by Mesos masters is unsupported.
optional .mesos.FrameworkID id = 3;
getIdOrBuilder
in interface Protos.FrameworkInfoOrBuilder
public boolean hasFailoverTimeout()
The amount of time (in seconds) that the master will wait for the scheduler to failover before it tears down the framework by killing all its tasks/executors. This should be non-zero if a framework expects to reconnect after a failure and not lose its tasks/executors. NOTE: To avoid accidental destruction of tasks, production frameworks typically set this to a large value (e.g., 1 week).
optional double failover_timeout = 4 [default = 0];
hasFailoverTimeout
in interface Protos.FrameworkInfoOrBuilder
public double getFailoverTimeout()
The amount of time (in seconds) that the master will wait for the scheduler to failover before it tears down the framework by killing all its tasks/executors. This should be non-zero if a framework expects to reconnect after a failure and not lose its tasks/executors. NOTE: To avoid accidental destruction of tasks, production frameworks typically set this to a large value (e.g., 1 week).
optional double failover_timeout = 4 [default = 0];
getFailoverTimeout
in interface Protos.FrameworkInfoOrBuilder
public Protos.FrameworkInfo.Builder setFailoverTimeout(double value)
The amount of time (in seconds) that the master will wait for the scheduler to failover before it tears down the framework by killing all its tasks/executors. This should be non-zero if a framework expects to reconnect after a failure and not lose its tasks/executors. NOTE: To avoid accidental destruction of tasks, production frameworks typically set this to a large value (e.g., 1 week).
optional double failover_timeout = 4 [default = 0];
public Protos.FrameworkInfo.Builder clearFailoverTimeout()
The amount of time (in seconds) that the master will wait for the scheduler to failover before it tears down the framework by killing all its tasks/executors. This should be non-zero if a framework expects to reconnect after a failure and not lose its tasks/executors. NOTE: To avoid accidental destruction of tasks, production frameworks typically set this to a large value (e.g., 1 week).
optional double failover_timeout = 4 [default = 0];
public boolean hasCheckpoint()
If set, agents running tasks started by this framework will write the framework pid, executor pids and status updates to disk. If the agent exits (e.g., due to a crash or as part of upgrading Mesos), this checkpointed data allows the restarted agent to reconnect to executors that were started by the old instance of the agent. Enabling checkpointing improves fault tolerance, at the cost of a (usually small) increase in disk I/O.
optional bool checkpoint = 5 [default = false];
hasCheckpoint
in interface Protos.FrameworkInfoOrBuilder
public boolean getCheckpoint()
If set, agents running tasks started by this framework will write the framework pid, executor pids and status updates to disk. If the agent exits (e.g., due to a crash or as part of upgrading Mesos), this checkpointed data allows the restarted agent to reconnect to executors that were started by the old instance of the agent. Enabling checkpointing improves fault tolerance, at the cost of a (usually small) increase in disk I/O.
optional bool checkpoint = 5 [default = false];
getCheckpoint
in interface Protos.FrameworkInfoOrBuilder
public Protos.FrameworkInfo.Builder setCheckpoint(boolean value)
If set, agents running tasks started by this framework will write the framework pid, executor pids and status updates to disk. If the agent exits (e.g., due to a crash or as part of upgrading Mesos), this checkpointed data allows the restarted agent to reconnect to executors that were started by the old instance of the agent. Enabling checkpointing improves fault tolerance, at the cost of a (usually small) increase in disk I/O.
optional bool checkpoint = 5 [default = false];
public Protos.FrameworkInfo.Builder clearCheckpoint()
If set, agents running tasks started by this framework will write the framework pid, executor pids and status updates to disk. If the agent exits (e.g., due to a crash or as part of upgrading Mesos), this checkpointed data allows the restarted agent to reconnect to executors that were started by the old instance of the agent. Enabling checkpointing improves fault tolerance, at the cost of a (usually small) increase in disk I/O.
optional bool checkpoint = 5 [default = false];
@Deprecated public boolean hasRole()
Roles are the entities to which allocations are made. The framework must have at least one role in order to be offered resources. Note that `role` is deprecated in favor of `roles` and only one of these fields must be used. Since we cannot distinguish between empty `roles` and the default unset `role`, we require that frameworks set the `MULTI_ROLE` capability if setting the `roles` field.
optional string role = 6 [default = "*", deprecated = true];
hasRole
in interface Protos.FrameworkInfoOrBuilder
@Deprecated public java.lang.String getRole()
Roles are the entities to which allocations are made. The framework must have at least one role in order to be offered resources. Note that `role` is deprecated in favor of `roles` and only one of these fields must be used. Since we cannot distinguish between empty `roles` and the default unset `role`, we require that frameworks set the `MULTI_ROLE` capability if setting the `roles` field.
optional string role = 6 [default = "*", deprecated = true];
getRole
in interface Protos.FrameworkInfoOrBuilder
@Deprecated public com.google.protobuf.ByteString getRoleBytes()
Roles are the entities to which allocations are made. The framework must have at least one role in order to be offered resources. Note that `role` is deprecated in favor of `roles` and only one of these fields must be used. Since we cannot distinguish between empty `roles` and the default unset `role`, we require that frameworks set the `MULTI_ROLE` capability if setting the `roles` field.
optional string role = 6 [default = "*", deprecated = true];
getRoleBytes
in interface Protos.FrameworkInfoOrBuilder
@Deprecated public Protos.FrameworkInfo.Builder setRole(java.lang.String value)
Roles are the entities to which allocations are made. The framework must have at least one role in order to be offered resources. Note that `role` is deprecated in favor of `roles` and only one of these fields must be used. Since we cannot distinguish between empty `roles` and the default unset `role`, we require that frameworks set the `MULTI_ROLE` capability if setting the `roles` field.
optional string role = 6 [default = "*", deprecated = true];
@Deprecated public Protos.FrameworkInfo.Builder clearRole()
Roles are the entities to which allocations are made. The framework must have at least one role in order to be offered resources. Note that `role` is deprecated in favor of `roles` and only one of these fields must be used. Since we cannot distinguish between empty `roles` and the default unset `role`, we require that frameworks set the `MULTI_ROLE` capability if setting the `roles` field.
optional string role = 6 [default = "*", deprecated = true];
@Deprecated public Protos.FrameworkInfo.Builder setRoleBytes(com.google.protobuf.ByteString value)
Roles are the entities to which allocations are made. The framework must have at least one role in order to be offered resources. Note that `role` is deprecated in favor of `roles` and only one of these fields must be used. Since we cannot distinguish between empty `roles` and the default unset `role`, we require that frameworks set the `MULTI_ROLE` capability if setting the `roles` field.
optional string role = 6 [default = "*", deprecated = true];
public com.google.protobuf.ProtocolStringList getRolesList()
repeated string roles = 12;
getRolesList
in interface Protos.FrameworkInfoOrBuilder
public int getRolesCount()
repeated string roles = 12;
getRolesCount
in interface Protos.FrameworkInfoOrBuilder
public java.lang.String getRoles(int index)
repeated string roles = 12;
getRoles
in interface Protos.FrameworkInfoOrBuilder
public com.google.protobuf.ByteString getRolesBytes(int index)
repeated string roles = 12;
getRolesBytes
in interface Protos.FrameworkInfoOrBuilder
public Protos.FrameworkInfo.Builder setRoles(int index, java.lang.String value)
repeated string roles = 12;
public Protos.FrameworkInfo.Builder addRoles(java.lang.String value)
repeated string roles = 12;
public Protos.FrameworkInfo.Builder addAllRoles(java.lang.Iterable<java.lang.String> values)
repeated string roles = 12;
public Protos.FrameworkInfo.Builder clearRoles()
repeated string roles = 12;
public Protos.FrameworkInfo.Builder addRolesBytes(com.google.protobuf.ByteString value)
repeated string roles = 12;
public boolean hasHostname()
Used to indicate the current host from which the scheduler is registered in the Mesos Web UI. If set to an empty string Mesos will automagically set it to the current hostname if one is available.
optional string hostname = 7;
hasHostname
in interface Protos.FrameworkInfoOrBuilder
public java.lang.String getHostname()
Used to indicate the current host from which the scheduler is registered in the Mesos Web UI. If set to an empty string Mesos will automagically set it to the current hostname if one is available.
optional string hostname = 7;
getHostname
in interface Protos.FrameworkInfoOrBuilder
public com.google.protobuf.ByteString getHostnameBytes()
Used to indicate the current host from which the scheduler is registered in the Mesos Web UI. If set to an empty string Mesos will automagically set it to the current hostname if one is available.
optional string hostname = 7;
getHostnameBytes
in interface Protos.FrameworkInfoOrBuilder
public Protos.FrameworkInfo.Builder setHostname(java.lang.String value)
Used to indicate the current host from which the scheduler is registered in the Mesos Web UI. If set to an empty string Mesos will automagically set it to the current hostname if one is available.
optional string hostname = 7;
public Protos.FrameworkInfo.Builder clearHostname()
Used to indicate the current host from which the scheduler is registered in the Mesos Web UI. If set to an empty string Mesos will automagically set it to the current hostname if one is available.
optional string hostname = 7;
public Protos.FrameworkInfo.Builder setHostnameBytes(com.google.protobuf.ByteString value)
Used to indicate the current host from which the scheduler is registered in the Mesos Web UI. If set to an empty string Mesos will automagically set it to the current hostname if one is available.
optional string hostname = 7;
public boolean hasPrincipal()
This field should match the credential's principal the framework uses for authentication. This field is used for framework API rate limiting and dynamic reservations. It should be set even if authentication is not enabled if these features are desired.
optional string principal = 8;
hasPrincipal
in interface Protos.FrameworkInfoOrBuilder
public java.lang.String getPrincipal()
This field should match the credential's principal the framework uses for authentication. This field is used for framework API rate limiting and dynamic reservations. It should be set even if authentication is not enabled if these features are desired.
optional string principal = 8;
getPrincipal
in interface Protos.FrameworkInfoOrBuilder
public com.google.protobuf.ByteString getPrincipalBytes()
This field should match the credential's principal the framework uses for authentication. This field is used for framework API rate limiting and dynamic reservations. It should be set even if authentication is not enabled if these features are desired.
optional string principal = 8;
getPrincipalBytes
in interface Protos.FrameworkInfoOrBuilder
public Protos.FrameworkInfo.Builder setPrincipal(java.lang.String value)
This field should match the credential's principal the framework uses for authentication. This field is used for framework API rate limiting and dynamic reservations. It should be set even if authentication is not enabled if these features are desired.
optional string principal = 8;
public Protos.FrameworkInfo.Builder clearPrincipal()
This field should match the credential's principal the framework uses for authentication. This field is used for framework API rate limiting and dynamic reservations. It should be set even if authentication is not enabled if these features are desired.
optional string principal = 8;
public Protos.FrameworkInfo.Builder setPrincipalBytes(com.google.protobuf.ByteString value)
This field should match the credential's principal the framework uses for authentication. This field is used for framework API rate limiting and dynamic reservations. It should be set even if authentication is not enabled if these features are desired.
optional string principal = 8;
public boolean hasWebuiUrl()
This field allows a framework to advertise its web UI, so that the Mesos web UI can link to it. It is expected to be a full URL, for example http://my-scheduler.example.com:8080/.
optional string webui_url = 9;
hasWebuiUrl
in interface Protos.FrameworkInfoOrBuilder
public java.lang.String getWebuiUrl()
This field allows a framework to advertise its web UI, so that the Mesos web UI can link to it. It is expected to be a full URL, for example http://my-scheduler.example.com:8080/.
optional string webui_url = 9;
getWebuiUrl
in interface Protos.FrameworkInfoOrBuilder
public com.google.protobuf.ByteString getWebuiUrlBytes()
This field allows a framework to advertise its web UI, so that the Mesos web UI can link to it. It is expected to be a full URL, for example http://my-scheduler.example.com:8080/.
optional string webui_url = 9;
getWebuiUrlBytes
in interface Protos.FrameworkInfoOrBuilder
public Protos.FrameworkInfo.Builder setWebuiUrl(java.lang.String value)
This field allows a framework to advertise its web UI, so that the Mesos web UI can link to it. It is expected to be a full URL, for example http://my-scheduler.example.com:8080/.
optional string webui_url = 9;
public Protos.FrameworkInfo.Builder clearWebuiUrl()
This field allows a framework to advertise its web UI, so that the Mesos web UI can link to it. It is expected to be a full URL, for example http://my-scheduler.example.com:8080/.
optional string webui_url = 9;
public Protos.FrameworkInfo.Builder setWebuiUrlBytes(com.google.protobuf.ByteString value)
This field allows a framework to advertise its web UI, so that the Mesos web UI can link to it. It is expected to be a full URL, for example http://my-scheduler.example.com:8080/.
optional string webui_url = 9;
public java.util.List<Protos.FrameworkInfo.Capability> getCapabilitiesList()
This field allows a framework to advertise its set of capabilities (e.g., ability to receive offers for revocable resources).
repeated .mesos.FrameworkInfo.Capability capabilities = 10;
getCapabilitiesList
in interface Protos.FrameworkInfoOrBuilder
public int getCapabilitiesCount()
This field allows a framework to advertise its set of capabilities (e.g., ability to receive offers for revocable resources).
repeated .mesos.FrameworkInfo.Capability capabilities = 10;
getCapabilitiesCount
in interface Protos.FrameworkInfoOrBuilder
public Protos.FrameworkInfo.Capability getCapabilities(int index)
This field allows a framework to advertise its set of capabilities (e.g., ability to receive offers for revocable resources).
repeated .mesos.FrameworkInfo.Capability capabilities = 10;
getCapabilities
in interface Protos.FrameworkInfoOrBuilder
public Protos.FrameworkInfo.Builder setCapabilities(int index, Protos.FrameworkInfo.Capability value)
This field allows a framework to advertise its set of capabilities (e.g., ability to receive offers for revocable resources).
repeated .mesos.FrameworkInfo.Capability capabilities = 10;
public Protos.FrameworkInfo.Builder setCapabilities(int index, Protos.FrameworkInfo.Capability.Builder builderForValue)
This field allows a framework to advertise its set of capabilities (e.g., ability to receive offers for revocable resources).
repeated .mesos.FrameworkInfo.Capability capabilities = 10;
public Protos.FrameworkInfo.Builder addCapabilities(Protos.FrameworkInfo.Capability value)
This field allows a framework to advertise its set of capabilities (e.g., ability to receive offers for revocable resources).
repeated .mesos.FrameworkInfo.Capability capabilities = 10;
public Protos.FrameworkInfo.Builder addCapabilities(int index, Protos.FrameworkInfo.Capability value)
This field allows a framework to advertise its set of capabilities (e.g., ability to receive offers for revocable resources).
repeated .mesos.FrameworkInfo.Capability capabilities = 10;
public Protos.FrameworkInfo.Builder addCapabilities(Protos.FrameworkInfo.Capability.Builder builderForValue)
This field allows a framework to advertise its set of capabilities (e.g., ability to receive offers for revocable resources).
repeated .mesos.FrameworkInfo.Capability capabilities = 10;
public Protos.FrameworkInfo.Builder addCapabilities(int index, Protos.FrameworkInfo.Capability.Builder builderForValue)
This field allows a framework to advertise its set of capabilities (e.g., ability to receive offers for revocable resources).
repeated .mesos.FrameworkInfo.Capability capabilities = 10;
public Protos.FrameworkInfo.Builder addAllCapabilities(java.lang.Iterable<? extends Protos.FrameworkInfo.Capability> values)
This field allows a framework to advertise its set of capabilities (e.g., ability to receive offers for revocable resources).
repeated .mesos.FrameworkInfo.Capability capabilities = 10;
public Protos.FrameworkInfo.Builder clearCapabilities()
This field allows a framework to advertise its set of capabilities (e.g., ability to receive offers for revocable resources).
repeated .mesos.FrameworkInfo.Capability capabilities = 10;
public Protos.FrameworkInfo.Builder removeCapabilities(int index)
This field allows a framework to advertise its set of capabilities (e.g., ability to receive offers for revocable resources).
repeated .mesos.FrameworkInfo.Capability capabilities = 10;
public Protos.FrameworkInfo.Capability.Builder getCapabilitiesBuilder(int index)
This field allows a framework to advertise its set of capabilities (e.g., ability to receive offers for revocable resources).
repeated .mesos.FrameworkInfo.Capability capabilities = 10;
public Protos.FrameworkInfo.CapabilityOrBuilder getCapabilitiesOrBuilder(int index)
This field allows a framework to advertise its set of capabilities (e.g., ability to receive offers for revocable resources).
repeated .mesos.FrameworkInfo.Capability capabilities = 10;
getCapabilitiesOrBuilder
in interface Protos.FrameworkInfoOrBuilder
public java.util.List<? extends Protos.FrameworkInfo.CapabilityOrBuilder> getCapabilitiesOrBuilderList()
This field allows a framework to advertise its set of capabilities (e.g., ability to receive offers for revocable resources).
repeated .mesos.FrameworkInfo.Capability capabilities = 10;
getCapabilitiesOrBuilderList
in interface Protos.FrameworkInfoOrBuilder
public Protos.FrameworkInfo.Capability.Builder addCapabilitiesBuilder()
This field allows a framework to advertise its set of capabilities (e.g., ability to receive offers for revocable resources).
repeated .mesos.FrameworkInfo.Capability capabilities = 10;
public Protos.FrameworkInfo.Capability.Builder addCapabilitiesBuilder(int index)
This field allows a framework to advertise its set of capabilities (e.g., ability to receive offers for revocable resources).
repeated .mesos.FrameworkInfo.Capability capabilities = 10;
public java.util.List<Protos.FrameworkInfo.Capability.Builder> getCapabilitiesBuilderList()
This field allows a framework to advertise its set of capabilities (e.g., ability to receive offers for revocable resources).
repeated .mesos.FrameworkInfo.Capability capabilities = 10;
public boolean hasLabels()
Labels are free-form key value pairs supplied by the framework scheduler (e.g., to describe additional functionality offered by the framework). These labels are not interpreted by Mesos itself. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 11;
hasLabels
in interface Protos.FrameworkInfoOrBuilder
public Protos.Labels getLabels()
Labels are free-form key value pairs supplied by the framework scheduler (e.g., to describe additional functionality offered by the framework). These labels are not interpreted by Mesos itself. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 11;
getLabels
in interface Protos.FrameworkInfoOrBuilder
public Protos.FrameworkInfo.Builder setLabels(Protos.Labels value)
Labels are free-form key value pairs supplied by the framework scheduler (e.g., to describe additional functionality offered by the framework). These labels are not interpreted by Mesos itself. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 11;
public Protos.FrameworkInfo.Builder setLabels(Protos.Labels.Builder builderForValue)
Labels are free-form key value pairs supplied by the framework scheduler (e.g., to describe additional functionality offered by the framework). These labels are not interpreted by Mesos itself. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 11;
public Protos.FrameworkInfo.Builder mergeLabels(Protos.Labels value)
Labels are free-form key value pairs supplied by the framework scheduler (e.g., to describe additional functionality offered by the framework). These labels are not interpreted by Mesos itself. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 11;
public Protos.FrameworkInfo.Builder clearLabels()
Labels are free-form key value pairs supplied by the framework scheduler (e.g., to describe additional functionality offered by the framework). These labels are not interpreted by Mesos itself. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 11;
public Protos.Labels.Builder getLabelsBuilder()
Labels are free-form key value pairs supplied by the framework scheduler (e.g., to describe additional functionality offered by the framework). These labels are not interpreted by Mesos itself. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 11;
public Protos.LabelsOrBuilder getLabelsOrBuilder()
Labels are free-form key value pairs supplied by the framework scheduler (e.g., to describe additional functionality offered by the framework). These labels are not interpreted by Mesos itself. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 11;
getLabelsOrBuilder
in interface Protos.FrameworkInfoOrBuilder
public int getOfferFiltersCount()
Protos.FrameworkInfoOrBuilder
Specifc resource requirements for each of the framework's roles. This field is used by e.g., the default allocator to decide whether a framework is interested in seeing a resource of a certain shape.
map<string, .mesos.OfferFilters> offer_filters = 13;
getOfferFiltersCount
in interface Protos.FrameworkInfoOrBuilder
public boolean containsOfferFilters(java.lang.String key)
Specifc resource requirements for each of the framework's roles. This field is used by e.g., the default allocator to decide whether a framework is interested in seeing a resource of a certain shape.
map<string, .mesos.OfferFilters> offer_filters = 13;
containsOfferFilters
in interface Protos.FrameworkInfoOrBuilder
@Deprecated public java.util.Map<java.lang.String,Protos.OfferFilters> getOfferFilters()
getOfferFiltersMap()
instead.getOfferFilters
in interface Protos.FrameworkInfoOrBuilder
public java.util.Map<java.lang.String,Protos.OfferFilters> getOfferFiltersMap()
Specifc resource requirements for each of the framework's roles. This field is used by e.g., the default allocator to decide whether a framework is interested in seeing a resource of a certain shape.
map<string, .mesos.OfferFilters> offer_filters = 13;
getOfferFiltersMap
in interface Protos.FrameworkInfoOrBuilder
public Protos.OfferFilters getOfferFiltersOrDefault(java.lang.String key, Protos.OfferFilters defaultValue)
Specifc resource requirements for each of the framework's roles. This field is used by e.g., the default allocator to decide whether a framework is interested in seeing a resource of a certain shape.
map<string, .mesos.OfferFilters> offer_filters = 13;
getOfferFiltersOrDefault
in interface Protos.FrameworkInfoOrBuilder
public Protos.OfferFilters getOfferFiltersOrThrow(java.lang.String key)
Specifc resource requirements for each of the framework's roles. This field is used by e.g., the default allocator to decide whether a framework is interested in seeing a resource of a certain shape.
map<string, .mesos.OfferFilters> offer_filters = 13;
getOfferFiltersOrThrow
in interface Protos.FrameworkInfoOrBuilder
public Protos.FrameworkInfo.Builder clearOfferFilters()
public Protos.FrameworkInfo.Builder removeOfferFilters(java.lang.String key)
Specifc resource requirements for each of the framework's roles. This field is used by e.g., the default allocator to decide whether a framework is interested in seeing a resource of a certain shape.
map<string, .mesos.OfferFilters> offer_filters = 13;
@Deprecated public java.util.Map<java.lang.String,Protos.OfferFilters> getMutableOfferFilters()
public Protos.FrameworkInfo.Builder putOfferFilters(java.lang.String key, Protos.OfferFilters value)
Specifc resource requirements for each of the framework's roles. This field is used by e.g., the default allocator to decide whether a framework is interested in seeing a resource of a certain shape.
map<string, .mesos.OfferFilters> offer_filters = 13;
public Protos.FrameworkInfo.Builder putAllOfferFilters(java.util.Map<java.lang.String,Protos.OfferFilters> values)
Specifc resource requirements for each of the framework's roles. This field is used by e.g., the default allocator to decide whether a framework is interested in seeing a resource of a certain shape.
map<string, .mesos.OfferFilters> offer_filters = 13;
public final Protos.FrameworkInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.FrameworkInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)