Skip to content

Commit 3377e61

Browse files
committed
scaladoc
1 parent d05f7a9 commit 3377e61

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/main/scala/org/apache/spark/status/api/v1/JsonRootResource.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ object JsonRootResource {
9494
private[spark] trait UIRoot {
9595
def getSparkUI(appKey: String): Option[SparkUI]
9696
def getApplicationInfoList: Seq[ApplicationInfo]
97+
98+
/**
99+
* Get the spark UI with the given appID, and apply a function
100+
* to it. If there is no such app, throw an appropriate exception
101+
*/
97102
def withSparkUI[T](appId: String)(f: SparkUI => T): T = {
98103
getSparkUI(appId) match {
99104
case Some(ui) => f(ui)

0 commit comments

Comments
 (0)