Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.datapipeline.model
Class ReportTaskProgressRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.datapipeline.model.ReportTaskProgressRequest
All Implemented Interfaces:
Serializable

public class ReportTaskProgressRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the ReportTaskProgress operation.

Updates the AWS Data Pipeline service on the progress of the calling task runner. When the task runner is assigned a task, it should call ReportTaskProgress to acknowledge that it has the task within 2 minutes. If the web service does not recieve this acknowledgement within the 2 minute window, it will assign the task in a subsequent PollForTask call. After this initial acknowledgement, the task runner only needs to report progress every 15 minutes to maintain its ownership of the task. You can change this reporting time from 15 minutes by specifying a reportProgressTimeout field in your pipeline. If a task runner does not report its status after 5 minutes, AWS Data Pipeline will assume that the task runner is unable to process the task and will reassign the task in a subsequent response to PollForTask. task runners should call ReportTaskProgress every 60 seconds.

See Also:
DataPipeline.reportTaskProgress(ReportTaskProgressRequest), Serialized Form

Constructor Summary
ReportTaskProgressRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getTaskId()
          Identifier of the task assigned to the task runner.
 int hashCode()
           
 void setTaskId(String taskId)
          Identifier of the task assigned to the task runner.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ReportTaskProgressRequest withTaskId(String taskId)
          Identifier of the task assigned to the task runner.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReportTaskProgressRequest

public ReportTaskProgressRequest()
Method Detail

getTaskId

public String getTaskId()
Identifier of the task assigned to the task runner. This value is provided in the TaskObject that the service returns with the response for the PollForTask action.

Constraints:
Length: 1 - 2048
Pattern: [ -??-??-?\r\n\t]*

Returns:
Identifier of the task assigned to the task runner. This value is provided in the TaskObject that the service returns with the response for the PollForTask action.

setTaskId

public void setTaskId(String taskId)
Identifier of the task assigned to the task runner. This value is provided in the TaskObject that the service returns with the response for the PollForTask action.

Constraints:
Length: 1 - 2048
Pattern: [ -??-??-?\r\n\t]*

Parameters:
taskId - Identifier of the task assigned to the task runner. This value is provided in the TaskObject that the service returns with the response for the PollForTask action.

withTaskId

public ReportTaskProgressRequest withTaskId(String taskId)
Identifier of the task assigned to the task runner. This value is provided in the TaskObject that the service returns with the response for the PollForTask action.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 2048
Pattern: [ -??-??-?\r\n\t]*

Parameters:
taskId - Identifier of the task assigned to the task runner. This value is provided in the TaskObject that the service returns with the response for the PollForTask action.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.