public final class WorkItemServiceState
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
Constructor and Description |
---|
WorkItemServiceState() |
Modifier and Type | Method and Description |
---|---|
WorkItemServiceState |
clone() |
java.util.Map<java.lang.String,java.lang.Object> |
getHarnessData()
Other data returned by the service, specific to the particular worker harness.
|
java.lang.String |
getLeaseExpireTime()
Time at which the current lease will expire.
|
java.util.List<MetricShortId> |
getMetricShortId()
The short ids that workers should use in subsequent metric updates.
|
java.lang.Long |
getNextReportIndex()
The index value to use for the next report sent by the worker.
|
java.lang.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(java.lang.String fieldName,
java.lang.Object value) |
WorkItemServiceState |
setHarnessData(java.util.Map<java.lang.String,java.lang.Object> harnessData)
Other data returned by the service, specific to the particular worker harness.
|
WorkItemServiceState |
setLeaseExpireTime(java.lang.String leaseExpireTime)
Time at which the current lease will expire.
|
WorkItemServiceState |
setMetricShortId(java.util.List<MetricShortId> metricShortId)
The short ids that workers should use in subsequent metric updates.
|
WorkItemServiceState |
setNextReportIndex(java.lang.Long nextReportIndex)
The index value to use for the next report sent by the worker.
|
WorkItemServiceState |
setReportStatusInterval(java.lang.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 java.util.Map<java.lang.String,java.lang.Object> getHarnessData()
null
for nonepublic WorkItemServiceState setHarnessData(java.util.Map<java.lang.String,java.lang.Object> harnessData)
harnessData
- harnessData or null
for nonepublic java.lang.String getLeaseExpireTime()
null
for nonepublic WorkItemServiceState setLeaseExpireTime(java.lang.String leaseExpireTime)
leaseExpireTime
- leaseExpireTime or null
for nonepublic java.util.List<MetricShortId> getMetricShortId()
null
for nonepublic WorkItemServiceState setMetricShortId(java.util.List<MetricShortId> metricShortId)
metricShortId
- metricShortId or null
for nonepublic java.lang.Long getNextReportIndex()
null
for nonepublic WorkItemServiceState setNextReportIndex(java.lang.Long nextReportIndex)
nextReportIndex
- nextReportIndex or null
for nonepublic java.lang.String getReportStatusInterval()
null
for nonepublic WorkItemServiceState setReportStatusInterval(java.lang.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(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public WorkItemServiceState clone()
clone
in class com.google.api.client.json.GenericJson