Class WebUiPageTree
java.lang.Object
javax.ws.rs.core.Application
org.glassfish.jersey.server.ResourceConfig
org.apache.drill.yarn.appMaster.http.PageTree
org.apache.drill.yarn.appMaster.http.WebUiPageTree
- All Implemented Interfaces:
javax.ws.rs.core.Configurable<org.glassfish.jersey.server.ResourceConfig>,javax.ws.rs.core.Configuration,org.glassfish.jersey.ExtendedConfig,org.glassfish.jersey.server.ServerConfig
The Drill AM web UI. The format is highly compact. We use javax.ws.rs to mark
up a Pojo with page path, permissions and HTTP methods. The ADMIN_ROLE is
reused from Drill's web UI.
In general, all pages require admin role, except for two: the login page and the redirect page which the YARN web UI follows to start the AM UI.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPasses information to the acknowledgement page.static classDisplays a warning page to ask the user if they want to cancel a Drillbit.static classDisplay the configuration page which displays the contents of DoY and selected Drill config as name/value pairs.static classPasses information to the confirmation page.static classDisplays the list of Drillbits showing details for each Drillbit.static classDisplays a history of completed tasks which indicates failed or cancelled Drillbits.static classPages, adapted from Drill, that display the login and logout pages.static classPage that lets the admin change the cluster size or shut down the cluster.static classDoY provides a link to YARN to display the AM UI.static classConfirm that the user wants to resize the cluster.static classMain DoY page that displays cluster status, and the status of the resource groups.static classConfirmation page when the admin asks to stop the cluster. -
Constructor Summary
ConstructorsConstructorDescriptionWebUiPageTree(Dispatcher dispatcher) Build the pages for the Web UI using Freemarker to implement the MVC mechanism. -
Method Summary
Methods inherited from class org.apache.drill.yarn.appMaster.http.PageTree
toMapModel, toModel, toModelMethods inherited from class org.glassfish.jersey.server.ResourceConfig
addProperties, files, files, forApplication, forApplicationClass, forApplicationClass, getApplication, getApplicationName, getClasses, getClassLoader, getConfiguration, getContracts, getInstances, getProperties, getProperty, getPropertyNames, getResources, getRuntimeType, getSingletons, isEnabled, isEnabled, isProperty, isRegistered, isRegistered, packages, packages, packages, property, register, register, register, register, register, register, register, register, registerClasses, registerClasses, registerFinder, registerInstances, registerInstances, registerResources, registerResources, setApplicationName, setClassLoader, setProperties
-
Constructor Details
-
WebUiPageTree
Build the pages for the Web UI using Freemarker to implement the MVC mechanism. This class builds on a rather complex mechanism; understand that to understand what the lines of code below are doing.- Parameters:
dispatcher- the DoY AM dispatcher that receives requests for information about, or requests to change the state of, the Drill clutser
-