WebUIPage¶
WebUIPage is an abstraction of pages (of a WebUI) that can be rendered to HTML and JSON.
Contract¶
Rendering Page (to HTML)¶
render(
  request: HttpServletRequest): Seq[Node]
Used when:
WebUIis requested to attach a page (to handle the URL)
Implementations¶
- AllExecutionsPage
 - AllJobsPage
 - AllStagesPage
 - ApplicationPage
 - BatchPage
 - DriverPage
 - EnvironmentPage
 - ExecutionPage
 - ExecutorsPage
 - ExecutorThreadDumpPage
 - HistoryPage
 - JobPage
 - LogPage
 - MasterPage
 - MesosClusterPage
 - PoolPage
 - RDDPage
 - StagePage
 - StoragePage
 - StreamingPage
 - StreamingQueryPage
 - StreamingQueryStatisticsPage
 - ThriftServerPage
 - ThriftServerSessionPage
 - WorkerPage
 
Creating Instance¶
WebUIPage takes the following to be created:
- URL Prefix
 
Abstract Class
WebUIPage is an abstract class and cannot be created directly. It is created indirectly for the concrete WebUIPages.
Rendering Page to JSON¶
renderJson(
  request: HttpServletRequest): JValue
renderJson returns a JNothing by default.
renderJson is used when:
WebUIis requested to attach a page (and handle the/jsonURL)