Example usage for org.apache.hadoop.yarn.api.records NodeReport newInstance

List of usage examples for org.apache.hadoop.yarn.api.records NodeReport newInstance

Introduction

In this page you can find the example usage for org.apache.hadoop.yarn.api.records NodeReport newInstance.

Prototype

@Private
    @Unstable
    public static NodeReport newInstance(NodeId nodeId, NodeState nodeState, String httpAddress, String rackName,
            Resource used, Resource capability, int numContainers, String healthReport, long lastHealthReportTime) 

Source Link

Usage

From source file:org.apache.tez.dag.app.rm.node.TestAMNodeMap.java

License:Apache License

private static NodeReport generateNodeReport(NodeId nodeId, NodeState nodeState) {
    NodeReport nodeReport = NodeReport.newInstance(nodeId, nodeState, nodeId.getHost() + ":3433",
            "/default-rack", Resource.newInstance(0, 0), Resource.newInstance(10240, 12), 10,
            nodeState.toString(), System.currentTimeMillis());
    return nodeReport;
}