YARN-2789. Re-instated the NodeReport.newInstance private unstable API modified in YARN-2698 so that tests in YARN frameworks don't break. Contributed by Wangda Tan.

(cherry picked from commit 6ce32f593bff6788084ce9bc1e11ade74ed3dbaf)
This commit is contained in:
Vinod Kumar Vavilapalli 2014-10-31 15:32:21 -07:00
parent aa13977001
commit f71d940e42
3 changed files with 20 additions and 0 deletions

View File

@ -747,6 +747,10 @@ Release 2.6.0 - UNRELEASED
YARN-2698. Moved some node label APIs to be correctly placed in client YARN-2698. Moved some node label APIs to be correctly placed in client
protocol. (Wangda Tan via vinodkv) protocol. (Wangda Tan via vinodkv)
YARN-2789. Re-instated the NodeReport.newInstance private unstable API
modified in YARN-2698 so that tests in YARN frameworks don't break. (Wangda
Tan via vinodkv)
Release 2.5.1 - 2014-09-05 Release 2.5.1 - 2014-09-05
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -48,6 +48,15 @@
@Stable @Stable
public abstract class NodeReport { public abstract class NodeReport {
@Private
@Unstable
public static NodeReport newInstance(NodeId nodeId, NodeState nodeState,
String httpAddress, String rackName, Resource used, Resource capability,
int numContainers, String healthReport, long lastHealthReportTime) {
return newInstance(nodeId, nodeState, httpAddress, rackName, used,
capability, numContainers, healthReport, lastHealthReportTime, null);
}
@Private @Private
@Unstable @Unstable
public static NodeReport newInstance(NodeId nodeId, NodeState nodeState, public static NodeReport newInstance(NodeId nodeId, NodeState nodeState,

View File

@ -171,6 +171,13 @@ public static NodeId newNodeId(String host, int port) {
return NodeId.newInstance(host, port); return NodeId.newInstance(host, port);
} }
public static NodeReport newNodeReport(NodeId nodeId, NodeState nodeState,
String httpAddress, String rackName, Resource used, Resource capability,
int numContainers, String healthReport, long lastHealthReportTime) {
return newNodeReport(nodeId, nodeState, httpAddress, rackName, used,
capability, numContainers, healthReport, lastHealthReportTime, null);
}
public static NodeReport newNodeReport(NodeId nodeId, NodeState nodeState, public static NodeReport newNodeReport(NodeId nodeId, NodeState nodeState,
String httpAddress, String rackName, Resource used, Resource capability, String httpAddress, String rackName, Resource used, Resource capability,
int numContainers, String healthReport, long lastHealthReportTime, int numContainers, String healthReport, long lastHealthReportTime,