MAPREDUCE-4846. Some JobQueueInfo methods are public in MR1 but protected in MR2. Contributed by Sandy Ryza.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1448597 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
567ab4335f
commit
7555b4df74
@ -177,6 +177,9 @@ Release 2.0.4-beta - UNRELEASED
|
||||
|
||||
MAPREDUCE-4994. Addendum fixing testcases failures. (sandyr via tucu)
|
||||
|
||||
MAPREDUCE-4846. Some JobQueueInfo methods are public in MR1 but protected
|
||||
in MR2. (Sandy Ryza via tomwhite)
|
||||
|
||||
Release 2.0.3-alpha - 2013-02-06
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -67,7 +67,8 @@ public JobQueueInfo(String queueName, String schedulingInfo) {
|
||||
*
|
||||
* @param queueName Name of the job queue.
|
||||
*/
|
||||
protected void setQueueName(String queueName) {
|
||||
@InterfaceAudience.Private
|
||||
public void setQueueName(String queueName) {
|
||||
super.setQueueName(queueName);
|
||||
}
|
||||
|
||||
@ -76,7 +77,8 @@ protected void setQueueName(String queueName) {
|
||||
*
|
||||
* @param schedulingInfo
|
||||
*/
|
||||
protected void setSchedulingInfo(String schedulingInfo) {
|
||||
@InterfaceAudience.Private
|
||||
public void setSchedulingInfo(String schedulingInfo) {
|
||||
super.setSchedulingInfo(schedulingInfo);
|
||||
}
|
||||
|
||||
@ -84,15 +86,21 @@ protected void setSchedulingInfo(String schedulingInfo) {
|
||||
* Set the state of the queue
|
||||
* @param state state of the queue.
|
||||
*/
|
||||
protected void setQueueState(String state) {
|
||||
@InterfaceAudience.Private
|
||||
public void setQueueState(String state) {
|
||||
super.setState(QueueState.getState(state));
|
||||
}
|
||||
|
||||
String getQueueState() {
|
||||
/**
|
||||
* Use getState() instead
|
||||
*/
|
||||
@Deprecated
|
||||
public String getQueueState() {
|
||||
return super.getState().toString();
|
||||
}
|
||||
|
||||
protected void setChildren(List<JobQueueInfo> children) {
|
||||
@InterfaceAudience.Private
|
||||
public void setChildren(List<JobQueueInfo> children) {
|
||||
List<QueueInfo> list = new ArrayList<QueueInfo>();
|
||||
for (JobQueueInfo q : children) {
|
||||
list.add(q);
|
||||
@ -108,7 +116,8 @@ public List<JobQueueInfo> getChildren() {
|
||||
return list;
|
||||
}
|
||||
|
||||
protected void setProperties(Properties props) {
|
||||
@InterfaceAudience.Private
|
||||
public void setProperties(Properties props) {
|
||||
super.setProperties(props);
|
||||
}
|
||||
|
||||
@ -141,7 +150,8 @@ void removeChild(JobQueueInfo child) {
|
||||
setChildren(children);
|
||||
}
|
||||
|
||||
protected void setJobStatuses(org.apache.hadoop.mapreduce.JobStatus[] stats) {
|
||||
@InterfaceAudience.Private
|
||||
public void setJobStatuses(org.apache.hadoop.mapreduce.JobStatus[] stats) {
|
||||
super.setJobStatuses(stats);
|
||||
}
|
||||
|
||||
|
@ -449,7 +449,7 @@ static Element getQueueElement(Document document, JobQueueInfo jqi) {
|
||||
q.appendChild(propsElement);
|
||||
|
||||
// Queue-state
|
||||
String queueState = jqi.getQueueState();
|
||||
String queueState = jqi.getState().getStateName();
|
||||
if (queueState != null
|
||||
&& !queueState.equals(QueueState.UNDEFINED.getStateName())) {
|
||||
Element qStateElement = document.createElement(STATE_TAG);
|
||||
|
Loading…
Reference in New Issue
Block a user