LiveEntity¶
LiveEntity is the <
[[contract]] [source, scala]
package org.apache.spark.status
abstract class LiveEntity { // only required methods that have no implementation // the others follow protected def doUpdate(): Any }
NOTE: LiveEntity is a private[spark] contract.
.LiveEntity Contract [cols="1,2",options="header",width="100%"] |=== | Method | Description
| doUpdate | [[doUpdate]] Used exclusivey when LiveEntity is requested to <
[[lastWriteTime]] LiveEntity tracks the last <lastWriteTime internal registry).
=== [[write]] write Method
[source, scala]¶
write(store: ElementTrackingStore, now: Long, checkTriggers: Boolean = false): Unit¶
write requests the input ElementTrackingStore to core:ElementTrackingStore.md#write[write] the <
In the end, write records the time in the <
write is used when:
-
AppStatusListeneris requested to update -
SQLAppStatusListeneris created (and registers a flush trigger) and requested toupdate