Class AppController
java.lang.Object
org.apache.hadoop.yarn.webapp.Controller
org.apache.hadoop.mapreduce.v2.app.webapp.AppController
- All Implemented Interfaces:
AMParams,org.apache.hadoop.yarn.webapp.Params
This class renders the various pages that the web app supports.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.webapp.Controller
org.apache.hadoop.yarn.webapp.Controller.RequestContext -
Field Summary
FieldsFields inherited from interface org.apache.hadoop.mapreduce.v2.app.webapp.AMParams
APP_ID, ATTEMPT_STATE, COUNTER_GROUP, COUNTER_NAME, JOB_ID, RM_WEB, TASK_ID, TASK_STATE, TASK_TYPEFields inherited from interface org.apache.hadoop.yarn.webapp.Params
ERROR_DETAILS, TITLE, TITLE_LINK, USER -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAppController(App app, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.yarn.webapp.Controller.RequestContext ctx) protectedAppController(App app, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.yarn.webapp.Controller.RequestContext ctx, String title) -
Method Summary
Modifier and TypeMethodDescriptionvoidattempts()Render the attempts pageprotected Class<? extends org.apache.hadoop.yarn.webapp.View>voidconf()Render the /conf pageprotected Class<? extends org.apache.hadoop.yarn.webapp.View>confPage()protected Class<? extends org.apache.hadoop.yarn.webapp.View>voidHandle requests to download the job configuration.voidindex()Render the default(index.html) page for the Application Controllervoidinfo()Render the /info page with an overview of current application.voidjob()Render the /job pagevoidRender the /jobcounters pageprotected Class<? extends org.apache.hadoop.yarn.webapp.View>jobPage()voidEnsure that a JOB_ID was passed into the page.voidEnsure that a TASK_ID was passed into the page.protected Class<? extends org.apache.hadoop.yarn.webapp.View>voidRender the /singlejobcounter pagevoidRender the /singletaskcounter pagevoidtask()Render the /task pagevoidDisplay a page showing a task's countersprotected Class<? extends org.apache.hadoop.yarn.webapp.View>taskPage()voidtasks()Render the /tasks pageprotected Class<? extends org.apache.hadoop.yarn.webapp.View>Methods inherited from class org.apache.hadoop.yarn.webapp.Controller
$, context, cookies, echo, error, get, getInstance, inDevMode, info, injector, render, renderJSON, renderJSON, renderText, request, response, set, setStatus, setTitle, setTitle, status, url, writer
-
Field Details
-
app
-
-
Constructor Details
-
AppController
-
AppController
@Inject protected AppController(App app, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.yarn.webapp.Controller.RequestContext ctx)
-
-
Method Details
-
index
public void index()Render the default(index.html) page for the Application Controller- Specified by:
indexin classorg.apache.hadoop.yarn.webapp.Controller
-
info
public void info()Render the /info page with an overview of current application. -
jobPage
- Returns:
- The class that will render the /job page
-
job
public void job()Render the /job page -
countersPage
- Returns:
- the class that will render the /jobcounters page
-
jobCounters
public void jobCounters()Render the /jobcounters page -
taskCounters
public void taskCounters()Display a page showing a task's counters -
singleCounterPage
- Returns:
- the class that will render the /singlejobcounter page
-
singleJobCounter
Render the /singlejobcounter page- Throws:
IOException- on any error.
-
singleTaskCounter
Render the /singletaskcounter page- Throws:
IOException- on any error.
-
tasksPage
- Returns:
- the class that will render the /tasks page
-
tasks
public void tasks()Render the /tasks page -
taskPage
- Returns:
- the class that will render the /task page
-
task
public void task()Render the /task page -
attemptsPage
- Returns:
- the class that will render the /attempts page
-
attempts
public void attempts()Render the attempts page -
confPage
- Returns:
- the page that will be used to render the /conf page
-
conf
public void conf()Render the /conf page -
downloadConf
public void downloadConf()Handle requests to download the job configuration. -
requireJob
public void requireJob()Ensure that a JOB_ID was passed into the page. -
requireTask
public void requireTask()Ensure that a TASK_ID was passed into the page.
-