Package tensorflow
Class CoordinationConfig.CoordinationServiceConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
tensorflow.CoordinationConfig.CoordinationServiceConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,CoordinationConfig.CoordinationServiceConfigOrBuilder
- Enclosing class:
CoordinationConfig.CoordinationServiceConfig
public static final class CoordinationConfig.CoordinationServiceConfig.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
implements CoordinationConfig.CoordinationServiceConfigOrBuilder
Coordination service configuration parameters. The system picks appropriate values for fields that are not set.Protobuf type
tensorflow.CoordinationServiceConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllCoordinatedJobList(Iterable<? extends CoordinationConfig.CoordinatedJob> values) repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;addAllRecoverableJobs(Iterable<String> values) The list of jobs which are recoverable.addCoordinatedJobList(int index, CoordinationConfig.CoordinatedJob value) repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;addCoordinatedJobList(int index, CoordinationConfig.CoordinatedJob.Builder builderForValue) repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;addCoordinatedJobList(CoordinationConfig.CoordinatedJob.Builder builderForValue) repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;addCoordinatedJobListBuilder(int index) repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;addRecoverableJobs(String value) The list of jobs which are recoverable.addRecoverableJobsBytes(com.google.protobuf.ByteString value) The list of jobs which are recoverable.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()If set, agents do not make an explicit Shutdown() call.If a task restarts with a new incarnation, we may allow it to reconnect silently.Maximum wait time for all members in the cluster to be registered.Denotes if we should synchronize the agents' register attempts by blocking on a barrier.repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;Whether to enable the health check mechanism.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Disables coordination service.Heartbeat timeout, if a task does not record heartbeat in this time window, it will be considered disconnected.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Use long polling to get error from coordination service as the error propagation mechanism.The list of jobs which are recoverable.Address where the coordination service instance is hosted.Type of coordination service implementation to enable.Denotes how long to wait for all coordination agents to reach the barriers (after the first shutdown request) before disconnecting together.clone()booleanIf set, agents do not make an explicit Shutdown() call.booleanIf a task restarts with a new incarnation, we may allow it to reconnect silently.longMaximum wait time for all members in the cluster to be registered.booleanDenotes if we should synchronize the agents' register attempts by blocking on a barrier.getCoordinatedJobList(int index) repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;getCoordinatedJobListBuilder(int index) repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;intrepeated .tensorflow.CoordinatedJob coordinated_job_list = 10;repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;getCoordinatedJobListOrBuilder(int index) repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;List<? extends CoordinationConfig.CoordinatedJobOrBuilder> repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether to enable the health check mechanism.booleanDisables coordination service.longHeartbeat timeout, if a task does not record heartbeat in this time window, it will be considered disconnected.booleanUse long polling to get error from coordination service as the error propagation mechanism.getRecoverableJobs(int index) The list of jobs which are recoverable.com.google.protobuf.ByteStringgetRecoverableJobsBytes(int index) The list of jobs which are recoverable.intThe list of jobs which are recoverable.com.google.protobuf.ProtocolStringListThe list of jobs which are recoverable.Address where the coordination service instance is hosted.com.google.protobuf.ByteStringAddress where the coordination service instance is hosted.Type of coordination service implementation to enable.com.google.protobuf.ByteStringType of coordination service implementation to enable.longDenotes how long to wait for all coordination agents to reach the barriers (after the first shutdown request) before disconnecting together.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeCoordinatedJobList(int index) repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;setAgentDestructionWithoutShutdown(boolean value) If set, agents do not make an explicit Shutdown() call.setAllowNewIncarnationToReconnect(boolean value) If a task restarts with a new incarnation, we may allow it to reconnect silently.setClusterRegisterTimeoutInMs(long value) Maximum wait time for all members in the cluster to be registered.setClusterRegisterWithBarrier(boolean value) Denotes if we should synchronize the agents' register attempts by blocking on a barrier.setCoordinatedJobList(int index, CoordinationConfig.CoordinatedJob value) repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;setCoordinatedJobList(int index, CoordinationConfig.CoordinatedJob.Builder builderForValue) repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;setEnableHealthCheck(boolean value) Whether to enable the health check mechanism.setForceDisable(boolean value) Disables coordination service.setHeartbeatTimeoutInMs(long value) Heartbeat timeout, if a task does not record heartbeat in this time window, it will be considered disconnected.setPollForErrorFromServiceAtStartup(boolean value) Use long polling to get error from coordination service as the error propagation mechanism.setRecoverableJobs(int index, String value) The list of jobs which are recoverable.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setServiceLeader(String value) Address where the coordination service instance is hosted.setServiceLeaderBytes(com.google.protobuf.ByteString value) Address where the coordination service instance is hosted.setServiceType(String value) Type of coordination service implementation to enable.setServiceTypeBytes(com.google.protobuf.ByteString value) Type of coordination service implementation to enable.setShutdownBarrierTimeoutInMs(long value) Denotes how long to wait for all coordination agents to reach the barriers (after the first shutdown request) before disconnecting together.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
setField
public CoordinationConfig.CoordinationServiceConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
clearField
public CoordinationConfig.CoordinationServiceConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
clearOneof
public CoordinationConfig.CoordinationServiceConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
setRepeatedField
public CoordinationConfig.CoordinationServiceConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
addRepeatedField
public CoordinationConfig.CoordinationServiceConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
mergeFrom
public CoordinationConfig.CoordinationServiceConfig.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
mergeFrom
public CoordinationConfig.CoordinationServiceConfig.Builder mergeFrom(CoordinationConfig.CoordinationServiceConfig other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
mergeFrom
public CoordinationConfig.CoordinationServiceConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>- Throws:
IOException
-
getServiceType
Type of coordination service implementation to enable. For example, setting the service type as "standalone" starts a service instance on the leader task to provide the coordination services such as heartbeats and consistent key-value store.
string service_type = 1;- Specified by:
getServiceTypein interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder- Returns:
- The serviceType.
-
getServiceTypeBytes
public com.google.protobuf.ByteString getServiceTypeBytes()Type of coordination service implementation to enable. For example, setting the service type as "standalone" starts a service instance on the leader task to provide the coordination services such as heartbeats and consistent key-value store.
string service_type = 1;- Specified by:
getServiceTypeBytesin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder- Returns:
- The bytes for serviceType.
-
setServiceType
Type of coordination service implementation to enable. For example, setting the service type as "standalone" starts a service instance on the leader task to provide the coordination services such as heartbeats and consistent key-value store.
string service_type = 1;- Parameters:
value- The serviceType to set.- Returns:
- This builder for chaining.
-
clearServiceType
Type of coordination service implementation to enable. For example, setting the service type as "standalone" starts a service instance on the leader task to provide the coordination services such as heartbeats and consistent key-value store.
string service_type = 1;- Returns:
- This builder for chaining.
-
setServiceTypeBytes
public CoordinationConfig.CoordinationServiceConfig.Builder setServiceTypeBytes(com.google.protobuf.ByteString value) Type of coordination service implementation to enable. For example, setting the service type as "standalone" starts a service instance on the leader task to provide the coordination services such as heartbeats and consistent key-value store.
string service_type = 1;- Parameters:
value- The bytes for serviceType to set.- Returns:
- This builder for chaining.
-
getServiceLeader
Address where the coordination service instance is hosted.
string service_leader = 2;- Specified by:
getServiceLeaderin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder- Returns:
- The serviceLeader.
-
getServiceLeaderBytes
public com.google.protobuf.ByteString getServiceLeaderBytes()Address where the coordination service instance is hosted.
string service_leader = 2;- Specified by:
getServiceLeaderBytesin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder- Returns:
- The bytes for serviceLeader.
-
setServiceLeader
Address where the coordination service instance is hosted.
string service_leader = 2;- Parameters:
value- The serviceLeader to set.- Returns:
- This builder for chaining.
-
clearServiceLeader
Address where the coordination service instance is hosted.
string service_leader = 2;- Returns:
- This builder for chaining.
-
setServiceLeaderBytes
public CoordinationConfig.CoordinationServiceConfig.Builder setServiceLeaderBytes(com.google.protobuf.ByteString value) Address where the coordination service instance is hosted.
string service_leader = 2;- Parameters:
value- The bytes for serviceLeader to set.- Returns:
- This builder for chaining.
-
getEnableHealthCheck
public boolean getEnableHealthCheck()Whether to enable the health check mechanism.
bool enable_health_check = 3;- Specified by:
getEnableHealthCheckin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder- Returns:
- The enableHealthCheck.
-
setEnableHealthCheck
Whether to enable the health check mechanism.
bool enable_health_check = 3;- Parameters:
value- The enableHealthCheck to set.- Returns:
- This builder for chaining.
-
clearEnableHealthCheck
Whether to enable the health check mechanism.
bool enable_health_check = 3;- Returns:
- This builder for chaining.
-
getClusterRegisterTimeoutInMs
public long getClusterRegisterTimeoutInMs()Maximum wait time for all members in the cluster to be registered.
int64 cluster_register_timeout_in_ms = 4;- Specified by:
getClusterRegisterTimeoutInMsin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder- Returns:
- The clusterRegisterTimeoutInMs.
-
setClusterRegisterTimeoutInMs
public CoordinationConfig.CoordinationServiceConfig.Builder setClusterRegisterTimeoutInMs(long value) Maximum wait time for all members in the cluster to be registered.
int64 cluster_register_timeout_in_ms = 4;- Parameters:
value- The clusterRegisterTimeoutInMs to set.- Returns:
- This builder for chaining.
-
clearClusterRegisterTimeoutInMs
Maximum wait time for all members in the cluster to be registered.
int64 cluster_register_timeout_in_ms = 4;- Returns:
- This builder for chaining.
-
getClusterRegisterWithBarrier
public boolean getClusterRegisterWithBarrier()Denotes if we should synchronize the agents' register attempts by blocking on a barrier. This is useful for synchronized restarts.
bool cluster_register_with_barrier = 14;- Specified by:
getClusterRegisterWithBarrierin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder- Returns:
- The clusterRegisterWithBarrier.
-
setClusterRegisterWithBarrier
public CoordinationConfig.CoordinationServiceConfig.Builder setClusterRegisterWithBarrier(boolean value) Denotes if we should synchronize the agents' register attempts by blocking on a barrier. This is useful for synchronized restarts.
bool cluster_register_with_barrier = 14;- Parameters:
value- The clusterRegisterWithBarrier to set.- Returns:
- This builder for chaining.
-
clearClusterRegisterWithBarrier
Denotes if we should synchronize the agents' register attempts by blocking on a barrier. This is useful for synchronized restarts.
bool cluster_register_with_barrier = 14;- Returns:
- This builder for chaining.
-
getHeartbeatTimeoutInMs
public long getHeartbeatTimeoutInMs()Heartbeat timeout, if a task does not record heartbeat in this time window, it will be considered disconnected. Note: This is also used as a grace period to accept any heartbeats after the agent has disconnected, to account for the lag time between the service recording the state change and the agent stopping heartbeats.
int64 heartbeat_timeout_in_ms = 5;- Specified by:
getHeartbeatTimeoutInMsin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder- Returns:
- The heartbeatTimeoutInMs.
-
setHeartbeatTimeoutInMs
Heartbeat timeout, if a task does not record heartbeat in this time window, it will be considered disconnected. Note: This is also used as a grace period to accept any heartbeats after the agent has disconnected, to account for the lag time between the service recording the state change and the agent stopping heartbeats.
int64 heartbeat_timeout_in_ms = 5;- Parameters:
value- The heartbeatTimeoutInMs to set.- Returns:
- This builder for chaining.
-
clearHeartbeatTimeoutInMs
Heartbeat timeout, if a task does not record heartbeat in this time window, it will be considered disconnected. Note: This is also used as a grace period to accept any heartbeats after the agent has disconnected, to account for the lag time between the service recording the state change and the agent stopping heartbeats.
int64 heartbeat_timeout_in_ms = 5;- Returns:
- This builder for chaining.
-
getCoordinatedJobListList
repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;- Specified by:
getCoordinatedJobListListin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder
-
getCoordinatedJobListCount
public int getCoordinatedJobListCount()repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;- Specified by:
getCoordinatedJobListCountin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder
-
getCoordinatedJobList
repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;- Specified by:
getCoordinatedJobListin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder
-
setCoordinatedJobList
public CoordinationConfig.CoordinationServiceConfig.Builder setCoordinatedJobList(int index, CoordinationConfig.CoordinatedJob value) repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; -
setCoordinatedJobList
public CoordinationConfig.CoordinationServiceConfig.Builder setCoordinatedJobList(int index, CoordinationConfig.CoordinatedJob.Builder builderForValue) repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; -
addCoordinatedJobList
public CoordinationConfig.CoordinationServiceConfig.Builder addCoordinatedJobList(CoordinationConfig.CoordinatedJob value) repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; -
addCoordinatedJobList
public CoordinationConfig.CoordinationServiceConfig.Builder addCoordinatedJobList(int index, CoordinationConfig.CoordinatedJob value) repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; -
addCoordinatedJobList
public CoordinationConfig.CoordinationServiceConfig.Builder addCoordinatedJobList(CoordinationConfig.CoordinatedJob.Builder builderForValue) repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; -
addCoordinatedJobList
public CoordinationConfig.CoordinationServiceConfig.Builder addCoordinatedJobList(int index, CoordinationConfig.CoordinatedJob.Builder builderForValue) repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; -
addAllCoordinatedJobList
public CoordinationConfig.CoordinationServiceConfig.Builder addAllCoordinatedJobList(Iterable<? extends CoordinationConfig.CoordinatedJob> values) repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; -
clearCoordinatedJobList
repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; -
removeCoordinatedJobList
repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; -
getCoordinatedJobListBuilder
repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; -
getCoordinatedJobListOrBuilder
repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;- Specified by:
getCoordinatedJobListOrBuilderin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder
-
getCoordinatedJobListOrBuilderList
public List<? extends CoordinationConfig.CoordinatedJobOrBuilder> getCoordinatedJobListOrBuilderList()repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;- Specified by:
getCoordinatedJobListOrBuilderListin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder
-
addCoordinatedJobListBuilder
repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; -
addCoordinatedJobListBuilder
repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; -
getCoordinatedJobListBuilderList
repeated .tensorflow.CoordinatedJob coordinated_job_list = 10; -
getShutdownBarrierTimeoutInMs
public long getShutdownBarrierTimeoutInMs()Denotes how long to wait for all coordination agents to reach the barriers (after the first shutdown request) before disconnecting together. If set to 0, no barrier is imposed upon shutdown and each worker can disconnect individually.
int64 shutdown_barrier_timeout_in_ms = 7;- Specified by:
getShutdownBarrierTimeoutInMsin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder- Returns:
- The shutdownBarrierTimeoutInMs.
-
setShutdownBarrierTimeoutInMs
public CoordinationConfig.CoordinationServiceConfig.Builder setShutdownBarrierTimeoutInMs(long value) Denotes how long to wait for all coordination agents to reach the barriers (after the first shutdown request) before disconnecting together. If set to 0, no barrier is imposed upon shutdown and each worker can disconnect individually.
int64 shutdown_barrier_timeout_in_ms = 7;- Parameters:
value- The shutdownBarrierTimeoutInMs to set.- Returns:
- This builder for chaining.
-
clearShutdownBarrierTimeoutInMs
Denotes how long to wait for all coordination agents to reach the barriers (after the first shutdown request) before disconnecting together. If set to 0, no barrier is imposed upon shutdown and each worker can disconnect individually.
int64 shutdown_barrier_timeout_in_ms = 7;- Returns:
- This builder for chaining.
-
getAgentDestructionWithoutShutdown
public boolean getAgentDestructionWithoutShutdown()If set, agents do not make an explicit Shutdown() call. Service will only find out about the disconnecte agent via stale heartbeats. Used for testing.
bool agent_destruction_without_shutdown = 8;- Specified by:
getAgentDestructionWithoutShutdownin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder- Returns:
- The agentDestructionWithoutShutdown.
-
setAgentDestructionWithoutShutdown
public CoordinationConfig.CoordinationServiceConfig.Builder setAgentDestructionWithoutShutdown(boolean value) If set, agents do not make an explicit Shutdown() call. Service will only find out about the disconnecte agent via stale heartbeats. Used for testing.
bool agent_destruction_without_shutdown = 8;- Parameters:
value- The agentDestructionWithoutShutdown to set.- Returns:
- This builder for chaining.
-
clearAgentDestructionWithoutShutdown
If set, agents do not make an explicit Shutdown() call. Service will only find out about the disconnecte agent via stale heartbeats. Used for testing.
bool agent_destruction_without_shutdown = 8;- Returns:
- This builder for chaining.
-
getRecoverableJobsList
public com.google.protobuf.ProtocolStringList getRecoverableJobsList()The list of jobs which are recoverable. If a task in this list fails, it will not propagate error to other tasks. If empty, no jobs will be recoverable and every task failure will cause error propagation to other tasks.
repeated string recoverable_jobs = 9;- Specified by:
getRecoverableJobsListin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder- Returns:
- A list containing the recoverableJobs.
-
getRecoverableJobsCount
public int getRecoverableJobsCount()The list of jobs which are recoverable. If a task in this list fails, it will not propagate error to other tasks. If empty, no jobs will be recoverable and every task failure will cause error propagation to other tasks.
repeated string recoverable_jobs = 9;- Specified by:
getRecoverableJobsCountin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder- Returns:
- The count of recoverableJobs.
-
getRecoverableJobs
The list of jobs which are recoverable. If a task in this list fails, it will not propagate error to other tasks. If empty, no jobs will be recoverable and every task failure will cause error propagation to other tasks.
repeated string recoverable_jobs = 9;- Specified by:
getRecoverableJobsin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The recoverableJobs at the given index.
-
getRecoverableJobsBytes
public com.google.protobuf.ByteString getRecoverableJobsBytes(int index) The list of jobs which are recoverable. If a task in this list fails, it will not propagate error to other tasks. If empty, no jobs will be recoverable and every task failure will cause error propagation to other tasks.
repeated string recoverable_jobs = 9;- Specified by:
getRecoverableJobsBytesin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the recoverableJobs at the given index.
-
setRecoverableJobs
public CoordinationConfig.CoordinationServiceConfig.Builder setRecoverableJobs(int index, String value) The list of jobs which are recoverable. If a task in this list fails, it will not propagate error to other tasks. If empty, no jobs will be recoverable and every task failure will cause error propagation to other tasks.
repeated string recoverable_jobs = 9;- Parameters:
index- The index to set the value at.value- The recoverableJobs to set.- Returns:
- This builder for chaining.
-
addRecoverableJobs
The list of jobs which are recoverable. If a task in this list fails, it will not propagate error to other tasks. If empty, no jobs will be recoverable and every task failure will cause error propagation to other tasks.
repeated string recoverable_jobs = 9;- Parameters:
value- The recoverableJobs to add.- Returns:
- This builder for chaining.
-
addAllRecoverableJobs
public CoordinationConfig.CoordinationServiceConfig.Builder addAllRecoverableJobs(Iterable<String> values) The list of jobs which are recoverable. If a task in this list fails, it will not propagate error to other tasks. If empty, no jobs will be recoverable and every task failure will cause error propagation to other tasks.
repeated string recoverable_jobs = 9;- Parameters:
values- The recoverableJobs to add.- Returns:
- This builder for chaining.
-
clearRecoverableJobs
The list of jobs which are recoverable. If a task in this list fails, it will not propagate error to other tasks. If empty, no jobs will be recoverable and every task failure will cause error propagation to other tasks.
repeated string recoverable_jobs = 9;- Returns:
- This builder for chaining.
-
addRecoverableJobsBytes
public CoordinationConfig.CoordinationServiceConfig.Builder addRecoverableJobsBytes(com.google.protobuf.ByteString value) The list of jobs which are recoverable. If a task in this list fails, it will not propagate error to other tasks. If empty, no jobs will be recoverable and every task failure will cause error propagation to other tasks.
repeated string recoverable_jobs = 9;- Parameters:
value- The bytes of the recoverableJobs to add.- Returns:
- This builder for chaining.
-
getAllowNewIncarnationToReconnect
public boolean getAllowNewIncarnationToReconnect()If a task restarts with a new incarnation, we may allow it to reconnect silently. This is useful when we know that a task can immediately resume work upon re-connecting to the service.
bool allow_new_incarnation_to_reconnect = 11;- Specified by:
getAllowNewIncarnationToReconnectin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder- Returns:
- The allowNewIncarnationToReconnect.
-
setAllowNewIncarnationToReconnect
public CoordinationConfig.CoordinationServiceConfig.Builder setAllowNewIncarnationToReconnect(boolean value) If a task restarts with a new incarnation, we may allow it to reconnect silently. This is useful when we know that a task can immediately resume work upon re-connecting to the service.
bool allow_new_incarnation_to_reconnect = 11;- Parameters:
value- The allowNewIncarnationToReconnect to set.- Returns:
- This builder for chaining.
-
clearAllowNewIncarnationToReconnect
If a task restarts with a new incarnation, we may allow it to reconnect silently. This is useful when we know that a task can immediately resume work upon re-connecting to the service.
bool allow_new_incarnation_to_reconnect = 11;- Returns:
- This builder for chaining.
-
getForceDisable
public boolean getForceDisable()Disables coordination service. Some libraries enable coordination service by default even if the user did not specify any config. This field allows users to explicitly disable coordination service under all situations.
bool force_disable = 12;- Specified by:
getForceDisablein interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder- Returns:
- The forceDisable.
-
setForceDisable
Disables coordination service. Some libraries enable coordination service by default even if the user did not specify any config. This field allows users to explicitly disable coordination service under all situations.
bool force_disable = 12;- Parameters:
value- The forceDisable to set.- Returns:
- This builder for chaining.
-
clearForceDisable
Disables coordination service. Some libraries enable coordination service by default even if the user did not specify any config. This field allows users to explicitly disable coordination service under all situations.
bool force_disable = 12;- Returns:
- This builder for chaining.
-
getPollForErrorFromServiceAtStartup
public boolean getPollForErrorFromServiceAtStartup()Use long polling to get error from coordination service as the error propagation mechanism.
bool poll_for_error_from_service_at_startup = 13;- Specified by:
getPollForErrorFromServiceAtStartupin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder- Returns:
- The pollForErrorFromServiceAtStartup.
-
setPollForErrorFromServiceAtStartup
public CoordinationConfig.CoordinationServiceConfig.Builder setPollForErrorFromServiceAtStartup(boolean value) Use long polling to get error from coordination service as the error propagation mechanism.
bool poll_for_error_from_service_at_startup = 13;- Parameters:
value- The pollForErrorFromServiceAtStartup to set.- Returns:
- This builder for chaining.
-
clearPollForErrorFromServiceAtStartup
Use long polling to get error from coordination service as the error propagation mechanism.
bool poll_for_error_from_service_at_startup = 13;- Returns:
- This builder for chaining.
-
setUnknownFields
public final CoordinationConfig.CoordinationServiceConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
mergeUnknownFields
public final CoordinationConfig.CoordinationServiceConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-