关注 spark技术分享,
撸spark源码 玩spark最佳实践

WebUITab — Contract of Tabs in Web UI

WebUITab — Contract of Tabs in Web UI

WebUITab represents a tab in web UI with a name and pages.

WebUITab can be:

WebUITab is simply a collection of WebUIPages that can be attached to the tab.

WebUITab has a name (and defaults to prefix capitalized).

Note
SparkUITab is the one and only implementation of WebUITab contract.
Note
WebUITab is a private[spark] contract.

Attaching Page to Tab — attachPage Method

attachPage prepends the page prefix (of the input WebUIPage) with the tab prefix (with no ending slash, i.e. /, if the page prefix is undefined).

In the end, attachPage adds the WebUIPage to pages registry.

Note
attachPage is used when web UI tabs register their pages.

Requesting Base URI Path — basePath Method

basePath requests the parent WebUI for the base path.

Note
basePath is used when…​FIXME

Requesting Header Tabs — headerTabs Method

headerTabs requests the parent WebUI for the header tabs.

Note
headerTabs is used exclusively when UIUtils is requested to headerSparkPage.

Creating WebUITab Instance

WebUITab takes the following when created:

WebUITab initializes the internal registries and counters.

Note
WebUITab is a Scala abstract class and cannot be created directly, but only as one of the implementations.
赞(0) 打赏
未经允许不得转载:spark技术分享 » WebUITab — Contract of Tabs in Web UI
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏