public final class WorkItemStatus 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 |
---|
WorkItemStatus() |
Modifier and Type | Method and Description |
---|---|
WorkItemStatus |
clone() |
Boolean |
getCompleted()
True if the WorkItem was completed (successfully or unsuccessfully).
|
List<CounterUpdate> |
getCounterUpdates()
Worker output counters for this WorkItem.
|
DynamicSourceSplit |
getDynamicSourceSplit()
See documentation of stop_position.
|
List<Status> |
getErrors()
Specifies errors which occurred during processing.
|
List<MetricUpdate> |
getMetricUpdates()
DEPRECATED in favor of counter_updates.
|
ApproximateProgress |
getProgress()
DEPRECATED in favor of reported_progress.
|
ApproximateReportedProgress |
getReportedProgress()
The worker's progress through this WorkItem.
|
Long |
getReportIndex()
The report index.
|
String |
getRequestedLeaseDuration()
Amount of time the worker requests for its lease.
|
SourceFork |
getSourceFork()
DEPRECATED in favor of dynamic_source_split.
|
SourceOperationResponse |
getSourceOperationResponse()
If the work item represented a SourceOperationRequest, and the work is completed, contains the
result of the operation.
|
Position |
getStopPosition()
A worker may split an active map task in two parts, "primary" and "residual", continuing to
process the primary part and returning the residual part into the pool of available work.
|
String |
getWorkItemId()
Identifies the WorkItem.
|
WorkItemStatus |
set(String fieldName,
Object value) |
WorkItemStatus |
setCompleted(Boolean completed)
True if the WorkItem was completed (successfully or unsuccessfully).
|
WorkItemStatus |
setCounterUpdates(List<CounterUpdate> counterUpdates)
Worker output counters for this WorkItem.
|
WorkItemStatus |
setDynamicSourceSplit(DynamicSourceSplit dynamicSourceSplit)
See documentation of stop_position.
|
WorkItemStatus |
setErrors(List<Status> errors)
Specifies errors which occurred during processing.
|
WorkItemStatus |
setMetricUpdates(List<MetricUpdate> metricUpdates)
DEPRECATED in favor of counter_updates.
|
WorkItemStatus |
setProgress(ApproximateProgress progress)
DEPRECATED in favor of reported_progress.
|
WorkItemStatus |
setReportedProgress(ApproximateReportedProgress reportedProgress)
The worker's progress through this WorkItem.
|
WorkItemStatus |
setReportIndex(Long reportIndex)
The report index.
|
WorkItemStatus |
setRequestedLeaseDuration(String requestedLeaseDuration)
Amount of time the worker requests for its lease.
|
WorkItemStatus |
setSourceFork(SourceFork sourceFork)
DEPRECATED in favor of dynamic_source_split.
|
WorkItemStatus |
setSourceOperationResponse(SourceOperationResponse sourceOperationResponse)
If the work item represented a SourceOperationRequest, and the work is completed, contains the
result of the operation.
|
WorkItemStatus |
setStopPosition(Position stopPosition)
A worker may split an active map task in two parts, "primary" and "residual", continuing to
process the primary part and returning the residual part into the pool of available work.
|
WorkItemStatus |
setWorkItemId(String workItemId)
Identifies the WorkItem.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Boolean getCompleted()
null
for nonepublic WorkItemStatus setCompleted(Boolean completed)
completed
- completed or null
for nonepublic List<CounterUpdate> getCounterUpdates()
null
for nonepublic WorkItemStatus setCounterUpdates(List<CounterUpdate> counterUpdates)
counterUpdates
- counterUpdates or null
for nonepublic DynamicSourceSplit getDynamicSourceSplit()
null
for nonepublic WorkItemStatus setDynamicSourceSplit(DynamicSourceSplit dynamicSourceSplit)
dynamicSourceSplit
- dynamicSourceSplit or null
for nonepublic List<Status> getErrors()
null
for nonepublic WorkItemStatus setErrors(List<Status> errors)
errors
- errors or null
for nonepublic List<MetricUpdate> getMetricUpdates()
null
for nonepublic WorkItemStatus setMetricUpdates(List<MetricUpdate> metricUpdates)
metricUpdates
- metricUpdates or null
for nonepublic ApproximateProgress getProgress()
null
for nonepublic WorkItemStatus setProgress(ApproximateProgress progress)
progress
- progress or null
for nonepublic Long getReportIndex()
null
for nonepublic WorkItemStatus setReportIndex(Long reportIndex)
reportIndex
- reportIndex or null
for nonepublic ApproximateReportedProgress getReportedProgress()
null
for nonepublic WorkItemStatus setReportedProgress(ApproximateReportedProgress reportedProgress)
reportedProgress
- reportedProgress or null
for nonepublic String getRequestedLeaseDuration()
null
for nonepublic WorkItemStatus setRequestedLeaseDuration(String requestedLeaseDuration)
requestedLeaseDuration
- requestedLeaseDuration or null
for nonepublic SourceFork getSourceFork()
null
for nonepublic WorkItemStatus setSourceFork(SourceFork sourceFork)
sourceFork
- sourceFork or null
for nonepublic SourceOperationResponse getSourceOperationResponse()
null
for nonepublic WorkItemStatus setSourceOperationResponse(SourceOperationResponse sourceOperationResponse)
sourceOperationResponse
- sourceOperationResponse or null
for nonepublic Position getStopPosition()
null
for nonepublic WorkItemStatus setStopPosition(Position stopPosition)
stopPosition
- stopPosition or null
for nonepublic String getWorkItemId()
null
for nonepublic WorkItemStatus setWorkItemId(String workItemId)
workItemId
- workItemId or null
for nonepublic WorkItemStatus set(String fieldName, Object value)
set
in class GenericJson
public WorkItemStatus clone()
clone
in class GenericJson