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

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

Introduction

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

Prototype

@Override
    public void setFinishTime(long finishTime) 

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  ww  w.j  av a 2s  .  co m
    ApplicationReportPBImpl ar = new ApplicationReportPBImpl();
    ar.setFinishTime(finishTime);
    ar.setStartTime(startTime);
    ar.setApplicationType(name);
    ar.setYarnApplicationState(state);
    return ar;
}