Example usage for org.apache.hadoop.yarn.api.records.impl.pb ApplicationReportPBImpl ApplicationReportPBImpl

List of usage examples for org.apache.hadoop.yarn.api.records.impl.pb ApplicationReportPBImpl ApplicationReportPBImpl

Introduction

In this page you can find the example usage for org.apache.hadoop.yarn.api.records.impl.pb ApplicationReportPBImpl ApplicationReportPBImpl.

Prototype

public ApplicationReportPBImpl() 

Source Link

Usage

From source file:org.apache.slider.common.tools.TestSliderUtils.java

License:Apache License

private ApplicationReportPBImpl getApplicationReport(long startTime, long finishTime, String name,
        YarnApplicationState state) {/*from  w  ww  .ja v  a 2s.  c  o m*/
    ApplicationReportPBImpl ar = new ApplicationReportPBImpl();
    ar.setFinishTime(finishTime);
    ar.setStartTime(startTime);
    ar.setApplicationType(name);
    ar.setYarnApplicationState(state);
    return ar;
}