public class AppController extends Controller implements AMParams
Controller.RequestContext
Modifier and Type | Field and Description |
---|---|
protected App |
app |
APP_ID, ATTEMPT_STATE, COUNTER_GROUP, COUNTER_NAME, JOB_ID, RM_WEB, TASK_ID, TASK_TYPE
ERROR_DETAILS, TITLE, TITLE_LINK, USER
Modifier | Constructor and Description |
---|---|
protected |
AppController(App app,
Configuration conf,
Controller.RequestContext ctx) |
protected |
AppController(App app,
Configuration conf,
Controller.RequestContext ctx,
String title) |
Modifier and Type | Method and Description |
---|---|
void |
attempts()
Render the attempts page
|
protected Class<? extends View> |
attemptsPage() |
void |
conf()
Render the /conf page
|
protected Class<? extends View> |
confPage() |
protected Class<? extends View> |
countersPage() |
void |
index()
Render the default(index.html) page for the Application Controller
|
void |
info()
Render the /info page with an overview of current application.
|
void |
job()
Render the /job page
|
void |
jobCounters()
Render the /jobcounters page
|
protected Class<? extends View> |
jobPage() |
void |
requireJob()
Ensure that a JOB_ID was passed into the page.
|
void |
requireTask()
Ensure that a TASK_ID was passed into the page.
|
protected Class<? extends View> |
singleCounterPage() |
void |
singleJobCounter()
Render the /singlejobcounter page
|
void |
singleTaskCounter()
Render the /singletaskcounter page
|
void |
task()
Render the /task page
|
void |
taskCounters()
Display a page showing a task's counters
|
protected Class<? extends View> |
taskPage() |
void |
tasks()
Render the /tasks page
|
protected Class<? extends View> |
tasksPage() |
$, context, cookies, echo, error, get, getInstance, inDevMode, info, injector, render, renderJSON, renderJSON, renderText, request, response, set, setStatus, setTitle, setTitle, status, url, writer
protected final App app
protected AppController(App app, Configuration conf, Controller.RequestContext ctx, String title)
@Inject protected AppController(App app, Configuration conf, Controller.RequestContext ctx)
public void index()
index
in class Controller
public void info()
public void job()
protected Class<? extends View> countersPage()
public void jobCounters()
public void taskCounters()
protected Class<? extends View> singleCounterPage()
public void singleJobCounter() throws IOException
IOException
- on any error.public void singleTaskCounter() throws IOException
IOException
- on any error.protected Class<? extends View> tasksPage()
public void tasks()
protected Class<? extends View> taskPage()
public void task()
protected Class<? extends View> attemptsPage()
public void attempts()
protected Class<? extends View> confPage()
public void conf()
public void requireJob()
public void requireTask()
Copyright © 2013 Apache Software Foundation. All rights reserved.