public final class WorkerMessage extends 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 Google Dataflow API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
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.
|
WorkerMessageCode |
getWorkerMessageCode()
A worker message code.
|
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 |
setWorkerMessageCode(WorkerMessageCode workerMessageCode)
A worker message code.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
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 WorkerMessageCode getWorkerMessageCode()
null
for nonepublic WorkerMessage setWorkerMessageCode(WorkerMessageCode workerMessageCode)
workerMessageCode
- workerMessageCode or null
for nonepublic WorkerMessage set(String fieldName, Object value)
set
in class GenericJson
public WorkerMessage clone()
clone
in class GenericJson