ServiceConfig.WorkerConfigOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
Public Methods
abstract
String
|
|
abstract
com.google.protobuf.ByteString
|
|
abstract
long
|
getDispatcherTimeoutMs()
How long to retry requests to the dispatcher before giving up and reporting
an error.
|
abstract
long
|
|
abstract
long
|
getPort()
The port for the worker to bind to.
|
abstract
String
|
getProtocol()
The protocol for the worker to use when connecting to the dispatcher.
|
abstract
com.google.protobuf.ByteString
|
getProtocolBytes()
The protocol for the worker to use when connecting to the dispatcher.
|
abstract
String
|
|
abstract
com.google.protobuf.ByteString
|
|
Public Methods
public
abstract
String
getDispatcherAddress
()
The address of the dispatcher to register with.
string dispatcher_address = 3;
public
abstract
com.google.protobuf.ByteString
getDispatcherAddressBytes
()
The address of the dispatcher to register with.
string dispatcher_address = 3;
public
abstract
long
getDispatcherTimeoutMs
()
How long to retry requests to the dispatcher before giving up and reporting
an error.
int64 dispatcher_timeout_ms = 6;
public
abstract
long
getHeartbeatIntervalMs
()
How often the worker should heartbeat to the master.
int64 heartbeat_interval_ms = 5;
public
abstract
long
getPort
()
The port for the worker to bind to. A value of 0 indicates that the
worker may bind to any available port.
int64 port = 1;
public
abstract
String
getProtocol
()
The protocol for the worker to use when connecting to the dispatcher.
string protocol = 2;
public
abstract
com.google.protobuf.ByteString
getProtocolBytes
()
The protocol for the worker to use when connecting to the dispatcher.
string protocol = 2;
public
abstract
String
getWorkerAddress
()
The address of the worker server. The substring "%port%", if specified,
will be replaced with the worker's bound port. This is useful when the port
is set to `0`.
string worker_address = 4;
public
abstract
com.google.protobuf.ByteString
getWorkerAddressBytes
()
The address of the worker server. The substring "%port%", if specified,
will be replaced with the worker's bound port. This is useful when the port
is set to `0`.
string worker_address = 4;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-11-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-29 UTC."],[],[],null,["# ServiceConfig.WorkerConfigOrBuilder\n\npublic static interface **ServiceConfig.WorkerConfigOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [ServiceConfig.WorkerConfig](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.WorkerConfig), [ServiceConfig.WorkerConfig.Builder](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.WorkerConfig.Builder) |------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------| | [ServiceConfig.WorkerConfig](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.WorkerConfig) | ``` Configuration for a tf.data service WorkerServer. ``` | | [ServiceConfig.WorkerConfig.Builder](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.WorkerConfig.Builder) | ``` Configuration for a tf.data service WorkerServer. ``` | |||\n\n### Public Methods\n\n|-----------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract String | [getDispatcherAddress](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.WorkerConfigOrBuilder#getDispatcherAddress())() ``` The address of the dispatcher to register with. ``` |\n| abstract com.google.protobuf.ByteString | [getDispatcherAddressBytes](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.WorkerConfigOrBuilder#getDispatcherAddressBytes())() ``` The address of the dispatcher to register with. ``` |\n| abstract long | [getDispatcherTimeoutMs](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.WorkerConfigOrBuilder#getDispatcherTimeoutMs())() ``` How long to retry requests to the dispatcher before giving up and reporting an error. ``` |\n| abstract long | [getHeartbeatIntervalMs](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.WorkerConfigOrBuilder#getHeartbeatIntervalMs())() ``` How often the worker should heartbeat to the master. ``` |\n| abstract long | [getPort](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.WorkerConfigOrBuilder#getPort())() ``` The port for the worker to bind to. ``` |\n| abstract String | [getProtocol](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.WorkerConfigOrBuilder#getProtocol())() ``` The protocol for the worker to use when connecting to the dispatcher. ``` |\n| abstract com.google.protobuf.ByteString | [getProtocolBytes](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.WorkerConfigOrBuilder#getProtocolBytes())() ``` The protocol for the worker to use when connecting to the dispatcher. ``` |\n| abstract String | [getWorkerAddress](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.WorkerConfigOrBuilder#getWorkerAddress())() ``` The address of the worker server. ``` |\n| abstract com.google.protobuf.ByteString | [getWorkerAddressBytes](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.WorkerConfigOrBuilder#getWorkerAddressBytes())() ``` The address of the worker server. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract String\n**getDispatcherAddress**\n()\n\n\u003cbr /\u003e\n\n```\n The address of the dispatcher to register with.\n \n```\n`string dispatcher_address = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getDispatcherAddressBytes**\n()\n\n\u003cbr /\u003e\n\n```\n The address of the dispatcher to register with.\n \n```\n`string dispatcher_address = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getDispatcherTimeoutMs**\n()\n\n\u003cbr /\u003e\n\n```\n How long to retry requests to the dispatcher before giving up and reporting\n an error.\n \n```\n`int64 dispatcher_timeout_ms = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getHeartbeatIntervalMs**\n()\n\n\u003cbr /\u003e\n\n```\n How often the worker should heartbeat to the master.\n \n```\n`int64 heartbeat_interval_ms = 5;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getPort**\n()\n\n\u003cbr /\u003e\n\n```\n The port for the worker to bind to. A value of 0 indicates that the\n worker may bind to any available port.\n \n```\n`int64 port = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getProtocol**\n()\n\n\u003cbr /\u003e\n\n```\n The protocol for the worker to use when connecting to the dispatcher.\n \n```\n`string protocol = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getProtocolBytes**\n()\n\n\u003cbr /\u003e\n\n```\n The protocol for the worker to use when connecting to the dispatcher.\n \n```\n`string protocol = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getWorkerAddress**\n()\n\n\u003cbr /\u003e\n\n```\n The address of the worker server. The substring \"%port%\", if specified,\n will be replaced with the worker's bound port. This is useful when the port\n is set to `0`.\n \n```\n`string worker_address = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getWorkerAddressBytes**\n()\n\n\u003cbr /\u003e\n\n```\n The address of the worker server. The substring \"%port%\", if specified,\n will be replaced with the worker's bound port. This is useful when the port\n is set to `0`.\n \n```\n`string worker_address = 4;`\n\n\u003cbr /\u003e"]]