|
@@ -171,6 +171,13 @@ public class BuilderUtils {
|
|
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,
|