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 TypeMethodDescriptionbooleancheckUIViewPermissions(String appId, scala.Option<String> attemptId, String user) scala.Option<ApplicationInfo>getApplicationInfo(String appId) scala.collection.Iterator<ApplicationInfo>scala.collection.Iterator<ApplicationInfo>getApplicationInfoList(int max, scala.Function1<ApplicationInfo, Object> filter) org.apache.spark.SecurityManager<T> TwithSparkUI(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.voidwriteEventLogs(String appId, scala.Option<String> attemptId, ZipOutputStream zipStream) Write the event logs for the given app to theZipOutputStreaminstance.
-
Method Details
-
checkUIViewPermissions
-
getApplicationInfo
-
getApplicationInfoList
scala.collection.Iterator<ApplicationInfo> getApplicationInfoList() -
getApplicationInfoList
scala.collection.Iterator<ApplicationInfo> getApplicationInfoList(int max, scala.Function1<ApplicationInfo, Object> filter) -
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 theZipOutputStreaminstance. If attemptId isNone, event logs for all attempts of this application will be written out.- Parameters:
appId- (undocumented)attemptId- (undocumented)zipStream- (undocumented)
-