@@ -33,13 +33,13 @@ private[ui] class StreamingPage(parent: StreamingTab)
33
33
34
34
private val listener = parent.listener
35
35
private val startTime = Calendar .getInstance().getTime()
36
- private val emptyCellTest = " -"
36
+ private val emptyCell = " -"
37
37
38
38
/** Render the page */
39
39
override def render (request : HttpServletRequest ): Seq [Node ] = {
40
40
val content =
41
41
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 > ++
43
43
generateNetworkStatsTable() ++
44
44
generateBatchStatsTable()
45
45
UIUtils .headerSparkPage(
@@ -89,12 +89,12 @@ private[ui] class StreamingPage(parent: StreamingTab)
89
89
val dataRows = (0 until listener.numNetworkReceivers).map { receiverId =>
90
90
val receiverInfo = listener.receiverInfo(receiverId)
91
91
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 )
93
93
val receiverLastBatchRecords = formatDurationVerbose(lastBatchReceivedRecord(receiverId))
94
94
val receivedRecordStats = receivedRecordDistributions(receiverId).map { d =>
95
95
d.getQuantiles().map(r => formatDurationVerbose(r.toLong))
96
96
}.getOrElse {
97
- Seq (emptyCellTest, emptyCellTest, emptyCellTest, emptyCellTest, emptyCellTest )
97
+ Seq (emptyCell, emptyCell, emptyCell, emptyCell, emptyCell )
98
98
}
99
99
Seq (receiverName, receiverLocation, receiverLastBatchRecords) ++ receivedRecordStats
100
100
}
@@ -112,7 +112,7 @@ private[ui] class StreamingPage(parent: StreamingTab)
112
112
113
113
/** Generate stats of batch jobs of the streaming program */
114
114
private def generateBatchStatsTable (): Seq [Node ] = {
115
- val numBatches = listener.completedBatches .size
115
+ val numBatches = listener.retainedCompletedBatches .size
116
116
val lastCompletedBatch = listener.lastCompletedBatch
117
117
val table = if (numBatches > 0 ) {
118
118
val processingDelayQuantilesRow = {
@@ -161,7 +161,7 @@ private[ui] class StreamingPage(parent: StreamingTab)
161
161
* Returns a human-readable string representing a duration such as "5 second 35 ms"
162
162
*/
163
163
private def formatDurationOption (msOption : Option [Long ]): String = {
164
- msOption.map(formatDurationVerbose).getOrElse(emptyCellTest )
164
+ msOption.map(formatDurationVerbose).getOrElse(emptyCell )
165
165
}
166
166
167
167
/** Get quantiles for any time distribution */
0 commit comments