public class AMWebServices extends Object
Constructor and Description |
---|
AMWebServices(App app,
AppContext context) |
Modifier and Type | Method and Description |
---|---|
AppInfo |
get() |
AppInfo |
getAppInfo() |
BlacklistedNodesInfo |
getBlacklistedNodes() |
JobInfo |
getJob(javax.servlet.http.HttpServletRequest hsr,
String jid) |
AMAttemptsInfo |
getJobAttempts(String jid) |
ConfInfo |
getJobConf(javax.servlet.http.HttpServletRequest hsr,
String jid) |
JobCounterInfo |
getJobCounters(javax.servlet.http.HttpServletRequest hsr,
String jid) |
static Job |
getJobFromJobIdString(String jid,
AppContext appCtx)
convert a job id string to an actual job and handle all the error checking.
|
JobsInfo |
getJobs(javax.servlet.http.HttpServletRequest hsr) |
TaskInfo |
getJobTask(javax.servlet.http.HttpServletRequest hsr,
String jid,
String tid) |
TaskAttemptInfo |
getJobTaskAttemptId(javax.servlet.http.HttpServletRequest hsr,
String jid,
String tid,
String attId) |
JobTaskAttemptCounterInfo |
getJobTaskAttemptIdCounters(javax.servlet.http.HttpServletRequest hsr,
String jid,
String tid,
String attId) |
TaskAttemptsInfo |
getJobTaskAttempts(javax.servlet.http.HttpServletRequest hsr,
String jid,
String tid) |
JobTaskAttemptState |
getJobTaskAttemptState(javax.servlet.http.HttpServletRequest hsr,
String jid,
String tid,
String attId) |
TasksInfo |
getJobTasks(javax.servlet.http.HttpServletRequest hsr,
String jid,
String type) |
JobTaskCounterInfo |
getSingleTaskCounters(javax.servlet.http.HttpServletRequest hsr,
String jid,
String tid) |
static TaskAttempt |
getTaskAttemptFromTaskAttemptString(String attId,
Task task)
convert a task attempt id string to an actual task attempt and handle all
the error checking.
|
static Task |
getTaskFromTaskIdString(String tid,
Job job)
convert a task id string to an actual task and handle all the error
checking.
|
protected javax.ws.rs.core.Response |
killJobTaskAttempt(TaskAttempt ta,
org.apache.hadoop.security.UserGroupInformation callerUGI,
javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
updateJobTaskAttemptState(JobTaskAttemptState targetState,
javax.servlet.http.HttpServletRequest hsr,
String jid,
String tid,
String attId) |
@Inject public AMWebServices(App app, AppContext context)
public static Job getJobFromJobIdString(String jid, AppContext appCtx) throws org.apache.hadoop.yarn.webapp.NotFoundException
org.apache.hadoop.yarn.webapp.NotFoundException
public static Task getTaskFromTaskIdString(String tid, Job job) throws org.apache.hadoop.yarn.webapp.NotFoundException
org.apache.hadoop.yarn.webapp.NotFoundException
public static TaskAttempt getTaskAttemptFromTaskAttemptString(String attId, Task task) throws org.apache.hadoop.yarn.webapp.NotFoundException
org.apache.hadoop.yarn.webapp.NotFoundException
public AppInfo get()
public AppInfo getAppInfo()
public BlacklistedNodesInfo getBlacklistedNodes()
public JobsInfo getJobs(@Context javax.servlet.http.HttpServletRequest hsr)
public AMAttemptsInfo getJobAttempts(String jid)
public JobCounterInfo getJobCounters(@Context javax.servlet.http.HttpServletRequest hsr, String jid)
public ConfInfo getJobConf(@Context javax.servlet.http.HttpServletRequest hsr, String jid)
public TasksInfo getJobTasks(@Context javax.servlet.http.HttpServletRequest hsr, String jid, String type)
public TaskInfo getJobTask(@Context javax.servlet.http.HttpServletRequest hsr, String jid, String tid)
public JobTaskCounterInfo getSingleTaskCounters(@Context javax.servlet.http.HttpServletRequest hsr, String jid, String tid)
public TaskAttemptsInfo getJobTaskAttempts(@Context javax.servlet.http.HttpServletRequest hsr, String jid, String tid)
public TaskAttemptInfo getJobTaskAttemptId(@Context javax.servlet.http.HttpServletRequest hsr, String jid, String tid, String attId)
public JobTaskAttemptState getJobTaskAttemptState(@Context javax.servlet.http.HttpServletRequest hsr, String jid, String tid, String attId) throws IOException, InterruptedException
IOException
InterruptedException
public javax.ws.rs.core.Response updateJobTaskAttemptState(JobTaskAttemptState targetState, @Context javax.servlet.http.HttpServletRequest hsr, String jid, String tid, String attId) throws IOException, InterruptedException
IOException
InterruptedException
public JobTaskAttemptCounterInfo getJobTaskAttemptIdCounters(@Context javax.servlet.http.HttpServletRequest hsr, String jid, String tid, String attId)
protected javax.ws.rs.core.Response killJobTaskAttempt(TaskAttempt ta, org.apache.hadoop.security.UserGroupInformation callerUGI, javax.servlet.http.HttpServletRequest hsr) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.