JobDefOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
JobDef |
Defines a single job in a TensorFlow cluster. |
JobDef.Builder |
Defines a single job in a TensorFlow cluster. |
|
Public Methods
abstract
boolean
|
containsTasks(int key)
Mapping from task ID to "hostname:port" string.
|
abstract
String
|
|
abstract
com.google.protobuf.ByteString
|
|
abstract
Map<Integer, String>
|
|
abstract
int
|
|
abstract
Map<Integer, String>
|
getTasksMap()
Mapping from task ID to "hostname:port" string.
|
abstract
String
|
getTasksOrDefault(int key, String defaultValue)
Mapping from task ID to "hostname:port" string.
|
abstract
String
|
|
Public Methods
public
abstract
boolean
containsTasks
(int key)
Mapping from task ID to "hostname:port" string.
If the `name` field contains "worker", and the `tasks` map contains a
mapping from 7 to "example.org:2222", then the device prefix
"/job:worker/task:7" will be assigned to "example.org:2222".
map<int32, string> tasks = 2;
public
abstract
String
getName
()
The name of this job.
string name = 1;
public
abstract
com.google.protobuf.ByteString
getNameBytes
()
The name of this job.
string name = 1;
public
abstract
Map<Integer, String>
getTasks
()
public
abstract
int
getTasksCount
()
Mapping from task ID to "hostname:port" string.
If the `name` field contains "worker", and the `tasks` map contains a
mapping from 7 to "example.org:2222", then the device prefix
"/job:worker/task:7" will be assigned to "example.org:2222".
map<int32, string> tasks = 2;
public
abstract
Map<Integer, String>
getTasksMap
()
Mapping from task ID to "hostname:port" string.
If the `name` field contains "worker", and the `tasks` map contains a
mapping from 7 to "example.org:2222", then the device prefix
"/job:worker/task:7" will be assigned to "example.org:2222".
map<int32, string> tasks = 2;
public
abstract
String
getTasksOrDefault
(int key, String defaultValue)
Mapping from task ID to "hostname:port" string.
If the `name` field contains "worker", and the `tasks` map contains a
mapping from 7 to "example.org:2222", then the device prefix
"/job:worker/task:7" will be assigned to "example.org:2222".
map<int32, string> tasks = 2;
public
abstract
String
getTasksOrThrow
(int key)
Mapping from task ID to "hostname:port" string.
If the `name` field contains "worker", and the `tasks` map contains a
mapping from 7 to "example.org:2222", then the device prefix
"/job:worker/task:7" will be assigned to "example.org:2222".
map<int32, string> tasks = 2;
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,["# JobDefOrBuilder\n\npublic interface **JobDefOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [JobDef](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDef), [JobDef.Builder](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDef.Builder) |--------------------------------------------------------------------------------------|--------------------------------------------------------| | [JobDef](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDef) | ``` Defines a single job in a TensorFlow cluster. ``` | | [JobDef.Builder](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDef.Builder) | ``` Defines a single job in a TensorFlow cluster. ``` | |||\n\n### Public Methods\n\n|-----------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract boolean | [containsTasks](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#containsTasks(int))(int key) ``` Mapping from task ID to \"hostname:port\" string. ``` |\n| abstract String | [getName](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getName())() ``` The name of this job. ``` |\n| abstract com.google.protobuf.ByteString | [getNameBytes](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getNameBytes())() ``` The name of this job. ``` |\n| abstract Map\\\u003cInteger, String\\\u003e | [getTasks](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasks())() Use [getTasksMap()](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasksMap()) instead. |\n| abstract int | [getTasksCount](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasksCount())() ``` Mapping from task ID to \"hostname:port\" string. ``` |\n| abstract Map\\\u003cInteger, String\\\u003e | [getTasksMap](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasksMap())() ``` Mapping from task ID to \"hostname:port\" string. ``` |\n| abstract String | [getTasksOrDefault](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasksOrDefault(int, java.lang.String))(int key, String defaultValue) ``` Mapping from task ID to \"hostname:port\" string. ``` |\n| abstract String | [getTasksOrThrow](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasksOrThrow(int))(int key) ``` Mapping from task ID to \"hostname:port\" string. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract boolean\n**containsTasks**\n(int key)\n\n\u003cbr /\u003e\n\n```\n Mapping from task ID to \"hostname:port\" string.\n If the `name` field contains \"worker\", and the `tasks` map contains a\n mapping from 7 to \"example.org:2222\", then the device prefix\n \"/job:worker/task:7\" will be assigned to \"example.org:2222\".\n \n```\n`map\u003cint32, string\u003e tasks = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getName**\n()\n\n\u003cbr /\u003e\n\n```\n The name of this job.\n \n```\n`string name = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getNameBytes**\n()\n\n\u003cbr /\u003e\n\n```\n The name of this job.\n \n```\n`string name = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract Map\\\u003cInteger, String\\\u003e\n**getTasks**\n()\n\nUse [getTasksMap()](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasksMap()) instead. \n\n#### public abstract int\n**getTasksCount**\n()\n\n\u003cbr /\u003e\n\n```\n Mapping from task ID to \"hostname:port\" string.\n If the `name` field contains \"worker\", and the `tasks` map contains a\n mapping from 7 to \"example.org:2222\", then the device prefix\n \"/job:worker/task:7\" will be assigned to \"example.org:2222\".\n \n```\n`map\u003cint32, string\u003e tasks = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract Map\\\u003cInteger, String\\\u003e\n**getTasksMap**\n()\n\n\u003cbr /\u003e\n\n```\n Mapping from task ID to \"hostname:port\" string.\n If the `name` field contains \"worker\", and the `tasks` map contains a\n mapping from 7 to \"example.org:2222\", then the device prefix\n \"/job:worker/task:7\" will be assigned to \"example.org:2222\".\n \n```\n`map\u003cint32, string\u003e tasks = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getTasksOrDefault**\n(int key, String defaultValue)\n\n\u003cbr /\u003e\n\n```\n Mapping from task ID to \"hostname:port\" string.\n If the `name` field contains \"worker\", and the `tasks` map contains a\n mapping from 7 to \"example.org:2222\", then the device prefix\n \"/job:worker/task:7\" will be assigned to \"example.org:2222\".\n \n```\n`map\u003cint32, string\u003e tasks = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getTasksOrThrow**\n(int key)\n\n\u003cbr /\u003e\n\n```\n Mapping from task ID to \"hostname:port\" string.\n If the `name` field contains \"worker\", and the `tasks` map contains a\n mapping from 7 to \"example.org:2222\", then the device prefix\n \"/job:worker/task:7\" will be assigned to \"example.org:2222\".\n \n```\n`map\u003cint32, string\u003e tasks = 2;`\n\n\u003cbr /\u003e"]]