public final class WorkItemServiceState 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 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 |
---|
WorkItemServiceState() |
Modifier and Type | Method and Description |
---|---|
WorkItemServiceState |
clone() |
Map<String,Object> |
getHarnessData()
Other data returned by the service, specific to the particular worker harness.
|
String |
getLeaseExpireTime()
Time at which the current lease will expire.
|
List<MetricShortId> |
getMetricShortId()
The short ids that workers should use in subsequent metric updates.
|
Long |
getNextReportIndex()
The index value to use for the next report sent by the worker.
|
String |
getReportStatusInterval()
New recommended reporting interval.
|
ApproximateSplitRequest |
getSplitRequest()
The progress point in the WorkItem where the Dataflow service suggests that the worker truncate
the task.
|
ApproximateProgress |
getSuggestedStopPoint()
DEPRECATED in favor of split_request.
|
Position |
getSuggestedStopPosition()
Obsolete, always empty.
|
WorkItemServiceState |
set(String fieldName,
Object value) |
WorkItemServiceState |
setHarnessData(Map<String,Object> harnessData)
Other data returned by the service, specific to the particular worker harness.
|
WorkItemServiceState |
setLeaseExpireTime(String leaseExpireTime)
Time at which the current lease will expire.
|
WorkItemServiceState |
setMetricShortId(List<MetricShortId> metricShortId)
The short ids that workers should use in subsequent metric updates.
|
WorkItemServiceState |
setNextReportIndex(Long nextReportIndex)
The index value to use for the next report sent by the worker.
|
WorkItemServiceState |
setReportStatusInterval(String reportStatusInterval)
New recommended reporting interval.
|
WorkItemServiceState |
setSplitRequest(ApproximateSplitRequest splitRequest)
The progress point in the WorkItem where the Dataflow service suggests that the worker truncate
the task.
|
WorkItemServiceState |
setSuggestedStopPoint(ApproximateProgress suggestedStopPoint)
DEPRECATED in favor of split_request.
|
WorkItemServiceState |
setSuggestedStopPosition(Position suggestedStopPosition)
Obsolete, always empty.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Map<String,Object> getHarnessData()
null
for nonepublic WorkItemServiceState setHarnessData(Map<String,Object> harnessData)
harnessData
- harnessData or null
for nonepublic String getLeaseExpireTime()
null
for nonepublic WorkItemServiceState setLeaseExpireTime(String leaseExpireTime)
leaseExpireTime
- leaseExpireTime or null
for nonepublic List<MetricShortId> getMetricShortId()
null
for nonepublic WorkItemServiceState setMetricShortId(List<MetricShortId> metricShortId)
metricShortId
- metricShortId or null
for nonepublic Long getNextReportIndex()
null
for nonepublic WorkItemServiceState setNextReportIndex(Long nextReportIndex)
nextReportIndex
- nextReportIndex or null
for nonepublic String getReportStatusInterval()
null
for nonepublic WorkItemServiceState setReportStatusInterval(String reportStatusInterval)
reportStatusInterval
- reportStatusInterval or null
for nonepublic ApproximateSplitRequest getSplitRequest()
null
for nonepublic WorkItemServiceState setSplitRequest(ApproximateSplitRequest splitRequest)
splitRequest
- splitRequest or null
for nonepublic ApproximateProgress getSuggestedStopPoint()
null
for nonepublic WorkItemServiceState setSuggestedStopPoint(ApproximateProgress suggestedStopPoint)
suggestedStopPoint
- suggestedStopPoint or null
for nonepublic Position getSuggestedStopPosition()
null
for nonepublic WorkItemServiceState setSuggestedStopPosition(Position suggestedStopPosition)
suggestedStopPosition
- suggestedStopPosition or null
for nonepublic WorkItemServiceState set(String fieldName, Object value)
set
in class GenericJson
public WorkItemServiceState clone()
clone
in class GenericJson