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.
This commit is contained in:
parent
86ff28dea0
commit
6ce32f593b
@ -822,6 +822,10 @@ Release 2.6.0 - UNRELEASED
|
||||
YARN-2698. Moved some node label APIs to be correctly placed in client
|
||||
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
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -47,6 +47,15 @@
|
||||
@Public
|
||||
@Stable
|
||||
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
|
||||
@Unstable
|
||||
|
@ -171,6 +171,13 @@ public static NodeId newNodeId(String host, int 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,
|
||||
String httpAddress, String rackName, Resource used, Resource capability,
|
||||
int numContainers, String healthReport, long lastHealthReportTime,
|
||||
|
Loading…
Reference in New Issue
Block a user