|
@@ -74,8 +74,9 @@ public class ApplicationImpl implements Application {
|
|
|
|
|
|
final Dispatcher dispatcher;
|
|
|
final String user;
|
|
|
- final String flowId;
|
|
|
- final String flowRunId;
|
|
|
+ final String flowName;
|
|
|
+ final String flowVersion;
|
|
|
+ final long flowRunId;
|
|
|
final ApplicationId appId;
|
|
|
final Credentials credentials;
|
|
|
Map<ApplicationAccessType, String> applicationACLs;
|
|
@@ -101,13 +102,14 @@ public class ApplicationImpl implements Application {
|
|
|
private long applicationLogInitedTimestamp = -1;
|
|
|
private final NMStateStoreService appStateStore;
|
|
|
|
|
|
- public ApplicationImpl(Dispatcher dispatcher, String user, String flowId,
|
|
|
- String flowRunId, ApplicationId appId, Credentials credentials,
|
|
|
- Context context, long recoveredLogInitedTime) {
|
|
|
-
|
|
|
+ public ApplicationImpl(Dispatcher dispatcher, String user, String flowName,
|
|
|
+ String flowVersion, long flowRunId, ApplicationId appId,
|
|
|
+ Credentials credentials, Context context,
|
|
|
+ long recoveredLogInitedTime) {
|
|
|
this.dispatcher = dispatcher;
|
|
|
this.user = user;
|
|
|
- this.flowId = flowId;
|
|
|
+ this.flowName = flowName;
|
|
|
+ this.flowVersion = flowVersion;
|
|
|
this.flowRunId = flowRunId;
|
|
|
this.appId = appId;
|
|
|
this.credentials = credentials;
|
|
@@ -122,9 +124,9 @@ public class ApplicationImpl implements Application {
|
|
|
}
|
|
|
|
|
|
public ApplicationImpl(Dispatcher dispatcher, String user, String flowId,
|
|
|
- String flowRunId, ApplicationId appId, Credentials credentials,
|
|
|
- Context context) {
|
|
|
- this(dispatcher, user, flowId, flowRunId, appId, credentials,
|
|
|
+ String flowVersion, long flowRunId, ApplicationId appId,
|
|
|
+ Credentials credentials, Context context) {
|
|
|
+ this(dispatcher, user, flowId, flowVersion, flowRunId, appId, credentials,
|
|
|
context, -1);
|
|
|
Configuration conf = context.getConf();
|
|
|
if (YarnConfiguration.systemMetricsPublisherEnabled(conf)) {
|
|
@@ -591,11 +593,18 @@ public class ApplicationImpl implements Application {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public String getFlowId() {
|
|
|
- return flowId;
|
|
|
+ @Override
|
|
|
+ public String getFlowName() {
|
|
|
+ return flowName;
|
|
|
}
|
|
|
|
|
|
- public String getFlowRunId() {
|
|
|
+ @Override
|
|
|
+ public String getFlowVersion() {
|
|
|
+ return flowVersion;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public long getFlowRunId() {
|
|
|
return flowRunId;
|
|
|
}
|
|
|
}
|