Package org.apache.spark.status.api.v1
Interface UIRoot
public interface UIRoot
This trait is shared by the all the root containers for application UI information --
the HistoryServer and the application UI. This provides the common
interface needed for them all to expose application info as json.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkUIViewPermissions
(String appId, scala.Option<String> attemptId, String user) scala.Option<ApplicationInfo>
getApplicationInfo
(String appId) scala.collection.Iterator<ApplicationInfo>
org.apache.spark.SecurityManager
<T> T
withSparkUI
(String appId, scala.Option<String> attemptId, scala.Function1<org.apache.spark.ui.SparkUI, T> fn) Runs some code with the current SparkUI instance for the app / attempt.void
writeEventLogs
(String appId, scala.Option<String> attemptId, ZipOutputStream zipStream) Write the event logs for the given app to theZipOutputStream
instance.
-
Method Details
-
checkUIViewPermissions
-
getApplicationInfo
-
getApplicationInfoList
scala.collection.Iterator<ApplicationInfo> getApplicationInfoList() -
securityManager
org.apache.spark.SecurityManager securityManager() -
withSparkUI
<T> T withSparkUI(String appId, scala.Option<String> attemptId, scala.Function1<org.apache.spark.ui.SparkUI, T> fn) Runs some code with the current SparkUI instance for the app / attempt.- Parameters:
appId
- (undocumented)attemptId
- (undocumented)fn
- (undocumented)- Returns:
- (undocumented)
- Throws:
NoSuchElementException
- If the app / attempt pair does not exist.
-
writeEventLogs
Write the event logs for the given app to theZipOutputStream
instance. If attemptId isNone
, event logs for all attempts of this application will be written out.- Parameters:
appId
- (undocumented)attemptId
- (undocumented)zipStream
- (undocumented)
-