|
@@ -129,6 +129,21 @@ public abstract class ApplicationSubmissionContext {
|
|
|
return context;
|
|
|
}
|
|
|
|
|
|
+ @Public
|
|
|
+ @Stable
|
|
|
+ public static ApplicationSubmissionContext newInstance(
|
|
|
+ ApplicationId applicationId, String applicationName, String queue,
|
|
|
+ Priority priority, ContainerLaunchContext amContainer,
|
|
|
+ boolean isUnmanagedAM, boolean cancelTokensWhenComplete,
|
|
|
+ int maxAppAttempts, Resource resource, String applicationType,
|
|
|
+ boolean keepContainers, LogAggregationContext logAggregationContext) {
|
|
|
+ ApplicationSubmissionContext context =
|
|
|
+ newInstance(applicationId, applicationName, queue, priority,
|
|
|
+ amContainer, isUnmanagedAM, cancelTokensWhenComplete, maxAppAttempts,
|
|
|
+ resource, applicationType, keepContainers);
|
|
|
+ context.setLogAggregationContext(logAggregationContext);
|
|
|
+ return context;
|
|
|
+ }
|
|
|
/**
|
|
|
* Get the <code>ApplicationId</code> of the submitted application.
|
|
|
* @return <code>ApplicationId</code> of the submitted application
|
|
@@ -406,7 +421,7 @@ public abstract class ApplicationSubmissionContext {
|
|
|
/**
|
|
|
* Get the reservation id, that corresponds to a valid resource allocation in
|
|
|
* the scheduler (between start and end time of the corresponding reservation)
|
|
|
- *
|
|
|
+ *
|
|
|
* @return the reservation id representing the unique id of the corresponding
|
|
|
* reserved resource allocation in the scheduler
|
|
|
*/
|
|
@@ -417,7 +432,7 @@ public abstract class ApplicationSubmissionContext {
|
|
|
/**
|
|
|
* Set the reservation id, that correspond to a valid resource allocation in
|
|
|
* the scheduler (between start and end time of the corresponding reservation)
|
|
|
- *
|
|
|
+ *
|
|
|
* @param reservationID representing the unique id of the
|
|
|
* corresponding reserved resource allocation in the scheduler
|
|
|
*/
|