public final class CPUTime 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 |
---|
CPUTime() |
Modifier and Type | Method and Description |
---|---|
CPUTime |
clone() |
Double |
getRate()
Average CPU utilization rate (% non-idle cpu / second) since previous sample.
|
String |
getTimestamp()
Timestamp of the measurement.
|
BigInteger |
getTotalMs()
Total active CPU time across all cores (ie., non-idle) in milliseconds since start-up.
|
CPUTime |
set(String fieldName,
Object value) |
CPUTime |
setRate(Double rate)
Average CPU utilization rate (% non-idle cpu / second) since previous sample.
|
CPUTime |
setTimestamp(String timestamp)
Timestamp of the measurement.
|
CPUTime |
setTotalMs(BigInteger totalMs)
Total active CPU time across all cores (ie., non-idle) in milliseconds since start-up.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Double getRate()
null
for nonepublic CPUTime setRate(Double rate)
rate
- rate or null
for nonepublic String getTimestamp()
null
for nonepublic CPUTime setTimestamp(String timestamp)
timestamp
- timestamp or null
for nonepublic BigInteger getTotalMs()
null
for nonepublic CPUTime setTotalMs(BigInteger totalMs)
totalMs
- totalMs or null
for nonepublic CPUTime set(String fieldName, Object value)
set
in class GenericJson
public CPUTime clone()
clone
in class GenericJson