[SPARK-25861][MINOR][WEBUI] Remove unused refreshInterval parameter from the headerSparkPage method.

## What changes were proposed in this pull request?
'refreshInterval' is not used any where in the headerSparkPage method. So, we don't need to pass the parameter while calling the  'headerSparkPage' method.

## How was this patch tested?
Existing tests

Closes #22864 from shahidki31/unusedCode.

Authored-by: Shahid <shahidki31@gmail.com>
Signed-off-by: Sean Owen <sean.owen@databricks.com>
This commit is contained in:
Shahid 2018-11-02 17:17:48 -05:00 committed by Sean Owen
parent 3404a73f4c
commit ed0c57e10d
6 changed files with 5 additions and 6 deletions

View file

@ -218,7 +218,6 @@ private[spark] object UIUtils extends Logging {
title: String,
content: => Seq[Node],
activeTab: SparkUITab,
refreshInterval: Option[Int] = None,
helpText: Option[String] = None,
showVisualization: Boolean = false,
useDataTables: Boolean = false): Seq[Node] = {

View file

@ -146,7 +146,7 @@ private[ui] class AllExecutionsPage(parent: SQLTab) extends WebUIPage("") with L
</ul>
</div>
UIUtils.headerSparkPage(request, "SQL", summary ++ content, parent, Some(5000))
UIUtils.headerSparkPage(request, "SQL", summary ++ content, parent)
}
private def executionsTable(

View file

@ -84,7 +84,7 @@ class ExecutionPage(parent: SQLTab) extends WebUIPage("execution") with Logging
}
UIUtils.headerSparkPage(
request, s"Details for Query $executionId", content, parent, Some(5000))
request, s"Details for Query $executionId", content, parent)
}

View file

@ -50,7 +50,7 @@ private[ui] class ThriftServerPage(parent: ThriftServerTab) extends WebUIPage(""
generateSessionStatsTable(request) ++
generateSQLStatsTable(request)
}
UIUtils.headerSparkPage(request, "JDBC/ODBC Server", content, parent, Some(5000))
UIUtils.headerSparkPage(request, "JDBC/ODBC Server", content, parent)
}
/** Generate basic stats of the thrift server program */

View file

@ -58,7 +58,7 @@ private[ui] class ThriftServerSessionPage(parent: ThriftServerTab)
</h4> ++
generateSQLStatsTable(request, sessionStat.sessionId)
}
UIUtils.headerSparkPage(request, "JDBC/ODBC Session", content, parent, Some(5000))
UIUtils.headerSparkPage(request, "JDBC/ODBC Session", content, parent)
}
/** Generate basic stats of the thrift server program */

View file

@ -156,7 +156,7 @@ private[ui] class StreamingPage(parent: StreamingTab)
generateStatTable() ++
generateBatchListTables()
}
SparkUIUtils.headerSparkPage(request, "Streaming Statistics", content, parent, Some(5000))
SparkUIUtils.headerSparkPage(request, "Streaming Statistics", content, parent)
}
/**