Interface JobDefOrBuilder
- All Superinterfaces:
MessageLiteOrBuilder, MessageOrBuilder
- All Known Implementing Classes:
JobDef, JobDef.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsTasks(int key) Mapping from task ID to "hostname:port" string.getName()The name of this job.The name of this job.getTasks()Deprecated.intMapping from task ID to "hostname:port" string.Mapping from task ID to "hostname:port" string.getTasksOrDefault(int key, String defaultValue) Mapping from task ID to "hostname:port" string.getTasksOrThrow(int key) Mapping from task ID to "hostname:port" string.Methods inherited from interface MessageLiteOrBuilder
isInitialized
-
Method Details
-
getName
-
getNameBytes
-
getTasksCount
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". If a job has multiple replicas, host-ports will be comma-delimited, with one entry for each replica.
map<int32, string> tasks = 2; -
containsTasks
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". If a job has multiple replicas, host-ports will be comma-delimited, with one entry for each replica.
map<int32, string> tasks = 2; -
getTasks
-
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". If a job has multiple replicas, host-ports will be comma-delimited, with one entry for each replica.
map<int32, string> tasks = 2; -
getTasksOrDefault
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". If a job has multiple replicas, host-ports will be comma-delimited, with one entry for each replica.
map<int32, string> tasks = 2; -
getTasksOrThrow
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". If a job has multiple replicas, host-ports will be comma-delimited, with one entry for each replica.
map<int32, string> tasks = 2;
-