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>
org.tensorflow.proto.CoordinationConfig.CoordinationServiceConfig.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, CoordinationConfig.CoordinationServiceConfigOrBuilder
- Enclosing class:
CoordinationConfig.CoordinationServiceConfig
public static final class CoordinationConfig.CoordinationServiceConfig.Builder
extends 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.The list of jobs which are recoverable.addRepeatedField(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.repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;Whether to enable the health check mechanism.Disables coordination service.Heartbeat timeout, if a task does not record heartbeat in this time window, it will be considered disconnected.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.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 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.getRecoverableJobsBytes(int index) The list of jobs which are recoverable.intThe list of jobs which are recoverable.The list of jobs which are recoverable.Address where the coordination service instance is hosted.Address where the coordination service instance is hosted.Type of coordination service implementation to enable.Type 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 GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeUnknownFields(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.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.setField(Descriptors.FieldDescriptor field, Object value) 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(Descriptors.FieldDescriptor field, int index, Object value) setServiceLeader(String value) Address where the coordination service instance is hosted.setServiceLeaderBytes(ByteString value) Address where the coordination service instance is hosted.setServiceType(String value) Type of coordination service implementation to enable.setServiceTypeBytes(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(UnknownFieldSet unknownFields) Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
setField
public CoordinationConfig.CoordinationServiceConfig.Builder setField(Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
clearField
public CoordinationConfig.CoordinationServiceConfig.Builder clearField(Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
clearOneof
public CoordinationConfig.CoordinationServiceConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
setRepeatedField
public CoordinationConfig.CoordinationServiceConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
addRepeatedField
public CoordinationConfig.CoordinationServiceConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
mergeFrom
public CoordinationConfig.CoordinationServiceConfig.Builder mergeFrom(CoordinationConfig.CoordinationServiceConfig other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
mergeFrom
public CoordinationConfig.CoordinationServiceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.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
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
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
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
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.
-
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
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
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(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(UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-
mergeUnknownFields
public final CoordinationConfig.CoordinationServiceConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<CoordinationConfig.CoordinationServiceConfig.Builder>
-