public abstract class WebUI extends Object implements Logging
Each WebUI represents a collection of tabs, each of which in turn represents a collection of pages. The use of tabs is optional, however; a WebUI may choose to include pages directly.
Constructor and Description |
---|
WebUI(SecurityManager securityManager,
int port,
SparkConf conf,
String basePath,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
attachHandler(org.eclipse.jetty.servlet.ServletContextHandler handler)
Attach a handler to this UI.
|
void |
attachPage(WebUIPage page)
Attach a page to this UI.
|
void |
attachTab(WebUITab tab)
Attach a tab to this UI, along with all of its attached pages.
|
void |
bind()
Bind to the HTTP server behind this web interface.
|
int |
boundPort()
Return the actual port to which this server is bound.
|
String |
getBasePath() |
scala.collection.Seq<org.eclipse.jetty.servlet.ServletContextHandler> |
getHandlers() |
SecurityManager |
getSecurityManager() |
scala.collection.Seq<WebUITab> |
getTabs() |
abstract void |
initialize()
Initialize all components of the server.
|
void |
stop()
Stop the server behind this web interface.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public WebUI(SecurityManager securityManager, int port, SparkConf conf, String basePath, String name)
public String getBasePath()
public scala.collection.Seq<WebUITab> getTabs()
public scala.collection.Seq<org.eclipse.jetty.servlet.ServletContextHandler> getHandlers()
public SecurityManager getSecurityManager()
public void attachTab(WebUITab tab)
public void attachPage(WebUIPage page)
public void attachHandler(org.eclipse.jetty.servlet.ServletContextHandler handler)
public abstract void initialize()
public void bind()
public int boundPort()
public void stop()