Package tensorflow
Class CoordinationConfig.CoordinationServiceConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
tensorflow.CoordinationConfig.CoordinationServiceConfig
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,CoordinationConfig.CoordinationServiceConfigOrBuilder
- Enclosing class:
CoordinationConfig
public static final class CoordinationConfig.CoordinationServiceConfig
extends com.google.protobuf.GeneratedMessageV3
implements CoordinationConfig.CoordinationServiceConfigOrBuilder
Coordination service configuration parameters. The system picks appropriate values for fields that are not set.Protobuf type
tensorflow.CoordinationServiceConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classCoordination service configuration parameters.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanIf 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;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.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.com.google.protobuf.Parser<CoordinationConfig.CoordinationServiceConfig> 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.intAddress 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.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CoordinationConfig.CoordinationServiceConfig> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SERVICE_TYPE_FIELD_NUMBER
public static final int SERVICE_TYPE_FIELD_NUMBER- See Also:
-
SERVICE_LEADER_FIELD_NUMBER
public static final int SERVICE_LEADER_FIELD_NUMBER- See Also:
-
ENABLE_HEALTH_CHECK_FIELD_NUMBER
public static final int ENABLE_HEALTH_CHECK_FIELD_NUMBER- See Also:
-
CLUSTER_REGISTER_TIMEOUT_IN_MS_FIELD_NUMBER
public static final int CLUSTER_REGISTER_TIMEOUT_IN_MS_FIELD_NUMBER- See Also:
-
CLUSTER_REGISTER_WITH_BARRIER_FIELD_NUMBER
public static final int CLUSTER_REGISTER_WITH_BARRIER_FIELD_NUMBER- See Also:
-
HEARTBEAT_TIMEOUT_IN_MS_FIELD_NUMBER
public static final int HEARTBEAT_TIMEOUT_IN_MS_FIELD_NUMBER- See Also:
-
COORDINATED_JOB_LIST_FIELD_NUMBER
public static final int COORDINATED_JOB_LIST_FIELD_NUMBER- See Also:
-
SHUTDOWN_BARRIER_TIMEOUT_IN_MS_FIELD_NUMBER
public static final int SHUTDOWN_BARRIER_TIMEOUT_IN_MS_FIELD_NUMBER- See Also:
-
AGENT_DESTRUCTION_WITHOUT_SHUTDOWN_FIELD_NUMBER
public static final int AGENT_DESTRUCTION_WITHOUT_SHUTDOWN_FIELD_NUMBER- See Also:
-
RECOVERABLE_JOBS_FIELD_NUMBER
public static final int RECOVERABLE_JOBS_FIELD_NUMBER- See Also:
-
ALLOW_NEW_INCARNATION_TO_RECONNECT_FIELD_NUMBER
public static final int ALLOW_NEW_INCARNATION_TO_RECONNECT_FIELD_NUMBER- See Also:
-
FORCE_DISABLE_FIELD_NUMBER
public static final int FORCE_DISABLE_FIELD_NUMBER- See Also:
-
POLL_FOR_ERROR_FROM_SERVICE_AT_STARTUP_FIELD_NUMBER
public static final int POLL_FOR_ERROR_FROM_SERVICE_AT_STARTUP_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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.
-
getEnableHealthCheck
public boolean getEnableHealthCheck()Whether to enable the health check mechanism.
bool enable_health_check = 3;- Specified by:
getEnableHealthCheckin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder- Returns:
- The enableHealthCheck.
-
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.
-
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.
-
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.
-
getCoordinatedJobListList
repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;- Specified by:
getCoordinatedJobListListin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder
-
getCoordinatedJobListOrBuilderList
public List<? extends CoordinationConfig.CoordinatedJobOrBuilder> getCoordinatedJobListOrBuilderList()repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;- Specified by:
getCoordinatedJobListOrBuilderListin 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
-
getCoordinatedJobListOrBuilder
repeated .tensorflow.CoordinatedJob coordinated_job_list = 10;- Specified by:
getCoordinatedJobListOrBuilderin interfaceCoordinationConfig.CoordinationServiceConfigOrBuilder
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CoordinationConfig.CoordinationServiceConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CoordinationConfig.CoordinationServiceConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CoordinationConfig.CoordinationServiceConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CoordinationConfig.CoordinationServiceConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CoordinationConfig.CoordinationServiceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CoordinationConfig.CoordinationServiceConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CoordinationConfig.CoordinationServiceConfig parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CoordinationConfig.CoordinationServiceConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static CoordinationConfig.CoordinationServiceConfig parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static CoordinationConfig.CoordinationServiceConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static CoordinationConfig.CoordinationServiceConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CoordinationConfig.CoordinationServiceConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static CoordinationConfig.CoordinationServiceConfig.Builder newBuilder(CoordinationConfig.CoordinationServiceConfig prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CoordinationConfig.CoordinationServiceConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-