|
@@ -57,7 +57,8 @@ public abstract class ApplicationReport {
|
|
ApplicationAttemptId applicationAttemptId, String user, String queue,
|
|
ApplicationAttemptId applicationAttemptId, String user, String queue,
|
|
String name, String host, int rpcPort, Token clientToAMToken,
|
|
String name, String host, int rpcPort, Token clientToAMToken,
|
|
YarnApplicationState state, String diagnostics, String url,
|
|
YarnApplicationState state, String diagnostics, String url,
|
|
- long startTime, long finishTime, FinalApplicationStatus finalStatus,
|
|
|
|
|
|
+ long startTime, long submitTime, long finishTime,
|
|
|
|
+ FinalApplicationStatus finalStatus,
|
|
ApplicationResourceUsageReport appResources, String origTrackingUrl,
|
|
ApplicationResourceUsageReport appResources, String origTrackingUrl,
|
|
float progress, String applicationType, Token amRmToken) {
|
|
float progress, String applicationType, Token amRmToken) {
|
|
ApplicationReport report = Records.newRecord(ApplicationReport.class);
|
|
ApplicationReport report = Records.newRecord(ApplicationReport.class);
|
|
@@ -73,6 +74,7 @@ public abstract class ApplicationReport {
|
|
report.setDiagnostics(diagnostics);
|
|
report.setDiagnostics(diagnostics);
|
|
report.setTrackingUrl(url);
|
|
report.setTrackingUrl(url);
|
|
report.setStartTime(startTime);
|
|
report.setStartTime(startTime);
|
|
|
|
+ report.setSubmitTime(submitTime);
|
|
report.setFinishTime(finishTime);
|
|
report.setFinishTime(finishTime);
|
|
report.setFinalApplicationStatus(finalStatus);
|
|
report.setFinalApplicationStatus(finalStatus);
|
|
report.setApplicationResourceUsageReport(appResources);
|
|
report.setApplicationResourceUsageReport(appResources);
|
|
@@ -83,6 +85,21 @@ public abstract class ApplicationReport {
|
|
return report;
|
|
return report;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Private
|
|
|
|
+ @Unstable
|
|
|
|
+ public static ApplicationReport newInstance(ApplicationId applicationId,
|
|
|
|
+ ApplicationAttemptId applicationAttemptId, String user, String queue,
|
|
|
|
+ String name, String host, int rpcPort, Token clientToAMToken,
|
|
|
|
+ YarnApplicationState state, String diagnostics, String url,
|
|
|
|
+ long startTime, long finishTime, FinalApplicationStatus finalStatus,
|
|
|
|
+ ApplicationResourceUsageReport appResources, String origTrackingUrl,
|
|
|
|
+ float progress, String applicationType, Token amRmToken) {
|
|
|
|
+ return newInstance(applicationId, applicationAttemptId, user, queue, name,
|
|
|
|
+ host, rpcPort, clientToAMToken, state, diagnostics, url, startTime,
|
|
|
|
+ startTime, finishTime, finalStatus, appResources, origTrackingUrl,
|
|
|
|
+ progress, applicationType, amRmToken);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Get the <code>ApplicationId</code> of the application.
|
|
* Get the <code>ApplicationId</code> of the application.
|
|
* @return <code>ApplicationId</code> of the application
|
|
* @return <code>ApplicationId</code> of the application
|
|
@@ -257,6 +274,18 @@ public abstract class ApplicationReport {
|
|
@Unstable
|
|
@Unstable
|
|
public abstract void setStartTime(long startTime);
|
|
public abstract void setStartTime(long startTime);
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Get the <em>submit time</em> of the application.
|
|
|
|
+ * @return <em>submit time</em> of the application
|
|
|
|
+ */
|
|
|
|
+ @Public
|
|
|
|
+ @Stable
|
|
|
|
+ public abstract long getSubmitTime();
|
|
|
|
+
|
|
|
|
+ @Private
|
|
|
|
+ @Unstable
|
|
|
|
+ public abstract void setSubmitTime(long submitTime);
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Get the <em>finish time</em> of the application.
|
|
* Get the <em>finish time</em> of the application.
|
|
* @return <em>finish time</em> of the application
|
|
* @return <em>finish time</em> of the application
|