ServiceConfig.DispatcherConfigOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
Public Methods
abstract
boolean
|
getFaultTolerantMode()
Whether to run in fault tolerant mode, where dispatcher state is saved
across restarts.
|
abstract
long
|
|
abstract
long
|
getJobGcTimeoutMs()
How long a job needs to be unused before it becomes a candidate for garbage
collection.
|
abstract
long
|
getPort()
The port for the dispatcher to bind to.
|
abstract
String
|
getProtocol()
The protocol for the dispatcher to use when connecting to workers.
|
abstract
com.google.protobuf.ByteString
|
getProtocolBytes()
The protocol for the dispatcher to use when connecting to workers.
|
abstract
String
|
getWorkDir()
A work directory to use for storing dispatcher state, and for recovering
during restarts.
|
abstract
com.google.protobuf.ByteString
|
getWorkDirBytes()
A work directory to use for storing dispatcher state, and for recovering
during restarts.
|
Public Methods
public
abstract
boolean
getFaultTolerantMode
()
Whether to run in fault tolerant mode, where dispatcher state is saved
across restarts. Requires that `work_dir` is nonempty.
bool fault_tolerant_mode = 4;
public
abstract
long
getJobGcCheckIntervalMs
()
How often the dispatcher should scan through to delete old and unused jobs.
int64 job_gc_check_interval_ms = 5;
public
abstract
long
getJobGcTimeoutMs
()
How long a job needs to be unused before it becomes a candidate for garbage
collection.
int64 job_gc_timeout_ms = 6;
public
abstract
long
getPort
()
The port for the dispatcher to bind to. A value of 0 indicates that the
dispatcher may bind to any available port.
int64 port = 1;
public
abstract
String
getProtocol
()
The protocol for the dispatcher to use when connecting to workers.
string protocol = 2;
public
abstract
com.google.protobuf.ByteString
getProtocolBytes
()
The protocol for the dispatcher to use when connecting to workers.
string protocol = 2;
public
abstract
String
getWorkDir
()
A work directory to use for storing dispatcher state, and for recovering
during restarts. The empty string indicates not to use any work directory.
string work_dir = 3;
public
abstract
com.google.protobuf.ByteString
getWorkDirBytes
()
A work directory to use for storing dispatcher state, and for recovering
during restarts. The empty string indicates not to use any work directory.
string work_dir = 3;
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.DispatcherConfigOrBuilder\n\npublic static interface **ServiceConfig.DispatcherConfigOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [ServiceConfig.DispatcherConfig](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.DispatcherConfig), [ServiceConfig.DispatcherConfig.Builder](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.DispatcherConfig.Builder) |--------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------| | [ServiceConfig.DispatcherConfig](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.DispatcherConfig) | ``` Configuration for a tf.data service DispatchServer. ``` | | [ServiceConfig.DispatcherConfig.Builder](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.DispatcherConfig.Builder) | ``` Configuration for a tf.data service DispatchServer. ``` | |||\n\n### Public Methods\n\n|-----------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract boolean | [getFaultTolerantMode](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.DispatcherConfigOrBuilder#getFaultTolerantMode())() ``` Whether to run in fault tolerant mode, where dispatcher state is saved across restarts. ``` |\n| abstract long | [getJobGcCheckIntervalMs](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.DispatcherConfigOrBuilder#getJobGcCheckIntervalMs())() ``` How often the dispatcher should scan through to delete old and unused jobs. ``` |\n| abstract long | [getJobGcTimeoutMs](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.DispatcherConfigOrBuilder#getJobGcTimeoutMs())() ``` How long a job needs to be unused before it becomes a candidate for garbage collection. ``` |\n| abstract long | [getPort](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.DispatcherConfigOrBuilder#getPort())() ``` The port for the dispatcher to bind to. ``` |\n| abstract String | [getProtocol](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.DispatcherConfigOrBuilder#getProtocol())() ``` The protocol for the dispatcher to use when connecting to workers. ``` |\n| abstract com.google.protobuf.ByteString | [getProtocolBytes](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.DispatcherConfigOrBuilder#getProtocolBytes())() ``` The protocol for the dispatcher to use when connecting to workers. ``` |\n| abstract String | [getWorkDir](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.DispatcherConfigOrBuilder#getWorkDir())() ``` A work directory to use for storing dispatcher state, and for recovering during restarts. ``` |\n| abstract com.google.protobuf.ByteString | [getWorkDirBytes](/jvm/api_docs/java/org/tensorflow/proto/data/experimental/ServiceConfig.DispatcherConfigOrBuilder#getWorkDirBytes())() ``` A work directory to use for storing dispatcher state, and for recovering during restarts. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract boolean\n**getFaultTolerantMode**\n()\n\n\u003cbr /\u003e\n\n```\n Whether to run in fault tolerant mode, where dispatcher state is saved\n across restarts. Requires that `work_dir` is nonempty.\n \n```\n`bool fault_tolerant_mode = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getJobGcCheckIntervalMs**\n()\n\n\u003cbr /\u003e\n\n```\n How often the dispatcher should scan through to delete old and unused jobs.\n \n```\n`int64 job_gc_check_interval_ms = 5;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getJobGcTimeoutMs**\n()\n\n\u003cbr /\u003e\n\n```\n How long a job needs to be unused before it becomes a candidate for garbage\n collection.\n \n```\n`int64 job_gc_timeout_ms = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getPort**\n()\n\n\u003cbr /\u003e\n\n```\n The port for the dispatcher to bind to. A value of 0 indicates that the\n dispatcher 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 dispatcher to use when connecting to workers.\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 dispatcher to use when connecting to workers.\n \n```\n`string protocol = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getWorkDir**\n()\n\n\u003cbr /\u003e\n\n```\n A work directory to use for storing dispatcher state, and for recovering\n during restarts. The empty string indicates not to use any work directory.\n \n```\n`string work_dir = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getWorkDirBytes**\n()\n\n\u003cbr /\u003e\n\n```\n A work directory to use for storing dispatcher state, and for recovering\n during restarts. The empty string indicates not to use any work directory.\n \n```\n`string work_dir = 3;`\n\n\u003cbr /\u003e"]]