public final class WorkerMessage
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Dataflow API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
WorkerMessage() |
Modifier and Type | Method and Description |
---|---|
WorkerMessage |
clone() |
Map<String,String> |
getLabels()
Labels are used to group WorkerMessages.
|
String |
getTime()
The timestamp of the worker_message.
|
WorkerHealthReport |
getWorkerHealthReport()
The health of a worker.
|
WorkerLifecycleEvent |
getWorkerLifecycleEvent()
Record of worker lifecycle events.
|
WorkerMessageCode |
getWorkerMessageCode()
A worker message code.
|
ResourceUtilizationReport |
getWorkerMetrics()
Resource metrics reported by workers.
|
WorkerShutdownNotice |
getWorkerShutdownNotice()
Shutdown notice by workers.
|
WorkerMessage |
set(String fieldName,
Object value) |
WorkerMessage |
setLabels(Map<String,String> labels)
Labels are used to group WorkerMessages.
|
WorkerMessage |
setTime(String time)
The timestamp of the worker_message.
|
WorkerMessage |
setWorkerHealthReport(WorkerHealthReport workerHealthReport)
The health of a worker.
|
WorkerMessage |
setWorkerLifecycleEvent(WorkerLifecycleEvent workerLifecycleEvent)
Record of worker lifecycle events.
|
WorkerMessage |
setWorkerMessageCode(WorkerMessageCode workerMessageCode)
A worker message code.
|
WorkerMessage |
setWorkerMetrics(ResourceUtilizationReport workerMetrics)
Resource metrics reported by workers.
|
WorkerMessage |
setWorkerShutdownNotice(WorkerShutdownNotice workerShutdownNotice)
Shutdown notice by workers.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Map<String,String> getLabels()
null
for nonepublic WorkerMessage setLabels(Map<String,String> labels)
labels
- labels or null
for nonepublic String getTime()
null
for nonepublic WorkerMessage setTime(String time)
time
- time or null
for nonepublic WorkerHealthReport getWorkerHealthReport()
null
for nonepublic WorkerMessage setWorkerHealthReport(WorkerHealthReport workerHealthReport)
workerHealthReport
- workerHealthReport or null
for nonepublic WorkerLifecycleEvent getWorkerLifecycleEvent()
null
for nonepublic WorkerMessage setWorkerLifecycleEvent(WorkerLifecycleEvent workerLifecycleEvent)
workerLifecycleEvent
- workerLifecycleEvent or null
for nonepublic WorkerMessageCode getWorkerMessageCode()
null
for nonepublic WorkerMessage setWorkerMessageCode(WorkerMessageCode workerMessageCode)
workerMessageCode
- workerMessageCode or null
for nonepublic ResourceUtilizationReport getWorkerMetrics()
null
for nonepublic WorkerMessage setWorkerMetrics(ResourceUtilizationReport workerMetrics)
workerMetrics
- workerMetrics or null
for nonepublic WorkerShutdownNotice getWorkerShutdownNotice()
null
for nonepublic WorkerMessage setWorkerShutdownNotice(WorkerShutdownNotice workerShutdownNotice)
workerShutdownNotice
- workerShutdownNotice or null
for nonepublic WorkerMessage set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public WorkerMessage clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.