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

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

Introduction

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

Prototype

@Override
    public void setStartTime(long startTime) 

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  w  w.  j a v a2 s . c o  m
    ApplicationReportPBImpl ar = new ApplicationReportPBImpl();
    ar.setFinishTime(finishTime);
    ar.setStartTime(startTime);
    ar.setApplicationType(name);
    ar.setYarnApplicationState(state);
    return ar;
}