MAPREDUCE-5220. Setter methods in TaskCompletionEvent are public in MR1 and protected in MR2. (sandyr via tucu)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1482142 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Alejandro Abdelnur 2013-05-13 23:08:10 +00:00
parent d027b947d6
commit 2103c80b77
2 changed files with 12 additions and 4 deletions

View File

@ -407,6 +407,9 @@ Release 2.0.5-beta - UNRELEASED
MAPREDUCE-5208. Modified ShuffleHandler to use SecureIOUtils for reading
local files. (Omkar Vinit Joshi via vinodkv)
MAPREDUCE-5220. Setter methods in TaskCompletionEvent are public in MR1 and
protected in MR2. (sandyr via tucu)
Release 2.0.4-alpha - 2013-04-25
INCOMPATIBLE CHANGES

View File

@ -19,6 +19,7 @@
package org.apache.hadoop.mapred;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceAudience.Private;
import org.apache.hadoop.classification.InterfaceStability;
/**
@ -117,7 +118,8 @@ protected void setTaskAttemptId(TaskAttemptID taskId) {
* Set task status.
* @param status
*/
protected void setTaskStatus(Status status) {
@Private
public void setTaskStatus(Status status) {
super.setTaskStatus(org.apache.hadoop.mapreduce.
TaskCompletionEvent.Status.valueOf(status.name()));
}
@ -126,7 +128,8 @@ protected void setTaskStatus(Status status) {
* Set the task completion time
* @param taskCompletionTime time (in millisec) the task took to complete
*/
protected void setTaskRunTime(int taskCompletionTime) {
@Private
public void setTaskRunTime(int taskCompletionTime) {
super.setTaskRunTime(taskCompletionTime);
}
@ -134,7 +137,8 @@ protected void setTaskRunTime(int taskCompletionTime) {
* set event Id. should be assigned incrementally starting from 0.
* @param eventId
*/
protected void setEventId(int eventId) {
@Private
public void setEventId(int eventId) {
super.setEventId(eventId);
}
@ -142,7 +146,8 @@ protected void setEventId(int eventId) {
* Set task tracker http location.
* @param taskTrackerHttp
*/
protected void setTaskTrackerHttp(String taskTrackerHttp) {
@Private
public void setTaskTrackerHttp(String taskTrackerHttp) {
super.setTaskTrackerHttp(taskTrackerHttp);
}
}