|
@@ -57,7 +57,8 @@ public abstract class ApplicationReport {
|
|
|
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,
|
|
|
+ long startTime, long submitTime, long finishTime,
|
|
|
+ FinalApplicationStatus finalStatus,
|
|
|
ApplicationResourceUsageReport appResources, String origTrackingUrl,
|
|
|
float progress, String applicationType, Token amRmToken) {
|
|
|
ApplicationReport report = Records.newRecord(ApplicationReport.class);
|
|
@@ -73,6 +74,7 @@ public abstract class ApplicationReport {
|
|
|
report.setDiagnostics(diagnostics);
|
|
|
report.setTrackingUrl(url);
|
|
|
report.setStartTime(startTime);
|
|
|
+ report.setSubmitTime(submitTime);
|
|
|
report.setFinishTime(finishTime);
|
|
|
report.setFinalApplicationStatus(finalStatus);
|
|
|
report.setApplicationResourceUsageReport(appResources);
|
|
@@ -91,14 +93,30 @@ public abstract class ApplicationReport {
|
|
|
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);
|
|
|
+ }
|
|
|
+
|
|
|
+ @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 submitTime, long finishTime,
|
|
|
+ FinalApplicationStatus finalStatus,
|
|
|
+ ApplicationResourceUsageReport appResources, String origTrackingUrl,
|
|
|
float progress, String applicationType, Token amRmToken, Set<String> tags,
|
|
|
boolean unmanagedApplication, Priority priority,
|
|
|
String appNodeLabelExpression, String amNodeLabelExpression) {
|
|
|
ApplicationReport report =
|
|
|
newInstance(applicationId, applicationAttemptId, user, queue, name,
|
|
|
host, rpcPort, clientToAMToken, state, diagnostics, url, startTime,
|
|
|
- finishTime, finalStatus, appResources, origTrackingUrl, progress,
|
|
|
- applicationType, amRmToken);
|
|
|
+ submitTime, finishTime, finalStatus, appResources, origTrackingUrl,
|
|
|
+ progress, applicationType, amRmToken);
|
|
|
report.setApplicationTags(tags);
|
|
|
report.setUnmanagedApp(unmanagedApplication);
|
|
|
report.setPriority(priority);
|
|
@@ -107,6 +125,25 @@ public abstract class ApplicationReport {
|
|
|
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, Set<String> tags,
|
|
|
+ boolean unmanagedApplication, Priority priority,
|
|
|
+ String appNodeLabelExpression, String amNodeLabelExpression) {
|
|
|
+ return newInstance(applicationId, applicationAttemptId, user, queue,
|
|
|
+ name, host, rpcPort, clientToAMToken, state, diagnostics, url,
|
|
|
+ startTime, startTime, finishTime, finalStatus, appResources,
|
|
|
+ origTrackingUrl, progress, applicationType, amRmToken, tags,
|
|
|
+ unmanagedApplication, priority, appNodeLabelExpression,
|
|
|
+ amNodeLabelExpression);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Get the <code>ApplicationId</code> of the application.
|
|
|
* @return <code>ApplicationId</code> of the application
|
|
@@ -281,6 +318,18 @@ public abstract class ApplicationReport {
|
|
|
@Unstable
|
|
|
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.
|
|
|
* @return <em>finish time</em> of the application
|