@@ -33,13 +33,13 @@ private[ui] class StreamingPage(parent: StreamingTab)
3333
3434 private val listener = parent.listener
3535 private val startTime = Calendar .getInstance().getTime()
36- private val emptyCellTest = " -"
36+ private val emptyCell = " -"
3737
3838 /** Render the page */
3939 override def render (request : HttpServletRequest ): Seq [Node ] = {
4040 val content =
4141 generateBasicStats() ++
42- <br ></br ><h4 >Statistics over last {listener.completedBatches .size} processed batches</h4 > ++
42+ <br ></br ><h4 >Statistics over last {listener.retainedCompletedBatches .size} processed batches</h4 > ++
4343 generateNetworkStatsTable() ++
4444 generateBatchStatsTable()
4545 UIUtils .headerSparkPage(
@@ -89,12 +89,12 @@ private[ui] class StreamingPage(parent: StreamingTab)
8989 val dataRows = (0 until listener.numNetworkReceivers).map { receiverId =>
9090 val receiverInfo = listener.receiverInfo(receiverId)
9191 val receiverName = receiverInfo.map(_.toString).getOrElse(s " Receiver- $receiverId" )
92- val receiverLocation = receiverInfo.map(_.location).getOrElse(emptyCellTest )
92+ val receiverLocation = receiverInfo.map(_.location).getOrElse(emptyCell )
9393 val receiverLastBatchRecords = formatDurationVerbose(lastBatchReceivedRecord(receiverId))
9494 val receivedRecordStats = receivedRecordDistributions(receiverId).map { d =>
9595 d.getQuantiles().map(r => formatDurationVerbose(r.toLong))
9696 }.getOrElse {
97- Seq (emptyCellTest, emptyCellTest, emptyCellTest, emptyCellTest, emptyCellTest )
97+ Seq (emptyCell, emptyCell, emptyCell, emptyCell, emptyCell )
9898 }
9999 Seq (receiverName, receiverLocation, receiverLastBatchRecords) ++ receivedRecordStats
100100 }
@@ -112,7 +112,7 @@ private[ui] class StreamingPage(parent: StreamingTab)
112112
113113 /** Generate stats of batch jobs of the streaming program */
114114 private def generateBatchStatsTable (): Seq [Node ] = {
115- val numBatches = listener.completedBatches .size
115+ val numBatches = listener.retainedCompletedBatches .size
116116 val lastCompletedBatch = listener.lastCompletedBatch
117117 val table = if (numBatches > 0 ) {
118118 val processingDelayQuantilesRow = {
@@ -161,7 +161,7 @@ private[ui] class StreamingPage(parent: StreamingTab)
161161 * Returns a human-readable string representing a duration such as "5 second 35 ms"
162162 */
163163 private def formatDurationOption (msOption : Option [Long ]): String = {
164- msOption.map(formatDurationVerbose).getOrElse(emptyCellTest )
164+ msOption.map(formatDurationVerbose).getOrElse(emptyCell )
165165 }
166166
167167 /** Get quantiles for any time distribution */
0 commit comments