Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2696#discussion_r19362366
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/SparkUI.scala ---
    @@ -116,4 +94,60 @@ private[spark] object SparkUI {
       def getUIPort(conf: SparkConf): Int = {
         conf.getInt("spark.ui.port", SparkUI.DEFAULT_PORT)
       }
    +
    +  def createLiveUI(
    +      sc: SparkContext,
    +      conf: SparkConf,
    +      listenerBus: SparkListenerBus,
    +      jobProgressListener: JobProgressListener,
    +      securityManager: SecurityManager,
    +      appName: String): SparkUI =  {
    +    create(Some(sc), conf, listenerBus, securityManager, appName,
    +      jobProgressListener = Some(jobProgressListener))
    +  }
    +
    +  def createHistoryUI(
    +      conf: SparkConf,
    +      listenerBus: ReplayListenerBus,
    --- End diff --
    
    Well, don't the method names already convey that difference?
    
    I ask because (i) the distinction is not needed and (ii) I actually have 
code - still not submitted for review - that creates history UIs but does not 
use a ReplayListenerBus...


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to