public final class WorkerHealthReport 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 |
---|
WorkerHealthReport() |
Modifier and Type | Method and Description |
---|---|
WorkerHealthReport |
clone() |
List<Map<String,Object>> |
getPods()
The pods running on the worker.
|
String |
getReportInterval()
The interval at which the worker is sending health reports.
|
Boolean |
getVmIsHealthy()
Whether the VM is healthy.
|
String |
getVmStartupTime()
The time the VM was booted.
|
WorkerHealthReport |
set(String fieldName,
Object value) |
WorkerHealthReport |
setPods(List<Map<String,Object>> pods)
The pods running on the worker.
|
WorkerHealthReport |
setReportInterval(String reportInterval)
The interval at which the worker is sending health reports.
|
WorkerHealthReport |
setVmIsHealthy(Boolean vmIsHealthy)
Whether the VM is healthy.
|
WorkerHealthReport |
setVmStartupTime(String vmStartupTime)
The time the VM was booted.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public List<Map<String,Object>> getPods()
null
for nonepublic WorkerHealthReport setPods(List<Map<String,Object>> pods)
pods
- pods or null
for nonepublic String getReportInterval()
null
for nonepublic WorkerHealthReport setReportInterval(String reportInterval)
reportInterval
- reportInterval or null
for nonepublic Boolean getVmIsHealthy()
null
for nonepublic WorkerHealthReport setVmIsHealthy(Boolean vmIsHealthy)
vmIsHealthy
- vmIsHealthy or null
for nonepublic String getVmStartupTime()
null
for nonepublic WorkerHealthReport setVmStartupTime(String vmStartupTime)
vmStartupTime
- vmStartupTime or null
for nonepublic WorkerHealthReport set(String fieldName, Object value)
set
in class GenericJson
public WorkerHealthReport clone()
clone
in class GenericJson