|
@@ -629,7 +629,8 @@ public class RMWebServices {
|
|
@GET
|
|
@GET
|
|
@Path("/apps/{appid}/appattempts")
|
|
@Path("/apps/{appid}/appattempts")
|
|
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
|
|
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
|
|
- public AppAttemptsInfo getAppAttempts(@PathParam("appid") String appId) {
|
|
|
|
|
|
+ public AppAttemptsInfo getAppAttempts(@Context HttpServletRequest hsr,
|
|
|
|
+ @PathParam("appid") String appId) {
|
|
|
|
|
|
init();
|
|
init();
|
|
if (appId == null || appId.isEmpty()) {
|
|
if (appId == null || appId.isEmpty()) {
|
|
@@ -647,7 +648,8 @@ public class RMWebServices {
|
|
|
|
|
|
AppAttemptsInfo appAttemptsInfo = new AppAttemptsInfo();
|
|
AppAttemptsInfo appAttemptsInfo = new AppAttemptsInfo();
|
|
for (RMAppAttempt attempt : app.getAppAttempts().values()) {
|
|
for (RMAppAttempt attempt : app.getAppAttempts().values()) {
|
|
- AppAttemptInfo attemptInfo = new AppAttemptInfo(attempt, app.getUser());
|
|
|
|
|
|
+ AppAttemptInfo attemptInfo = new AppAttemptInfo(attempt, app.getUser(),
|
|
|
|
+ hsr.getScheme() + "://");
|
|
appAttemptsInfo.add(attemptInfo);
|
|
appAttemptsInfo.add(attemptInfo);
|
|
}
|
|
}
|
|
|
|
|