AppStatusPlugin — Contract for

AppStatusPlugin is the contract for…​FIXME

package org.apache.spark.status

trait AppStatusPlugin {
  def setupListeners(
    conf: SparkConf,
    store: KVStore,
    addListenerFn: SparkListener => Unit,
    live: Boolean): Unit

  def setupUI(ui: SparkUI): Unit
}
AppStatusPlugin is a private[spark] Scala trait.
Table 1. AppStatusPlugin Contract
Method Description

setupListeners

setupUI

loadPlugins Method

loadPlugins(): Iterable[AppStatusPlugin]

loadPlugins…​FIXME

loadPlugins is used when:

  • SparkContext is created (and creates a web UI)

  • FsHistoryProvider is requested to create a web UI

  • AppStatusStore creates an in-memory store for a live Spark application