class StatsReportListener extends StreamingListener
:: DeveloperApi :: A simple StreamingListener that logs summary statistics across Spark Streaming batches
- Annotations
- @DeveloperApi()
- Alphabetic
- By Inheritance
- StatsReportListener
- StreamingListener
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
StatsReportListener(numBatchInfos: Int = 10)
- numBatchInfos
Number of last batches to consider for generating statistics (default: 10)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val batchInfos: Queue[BatchInfo]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def extractDistribution(getMetric: (BatchInfo) ⇒ Option[Long]): Option[Distribution]
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
onBatchCompleted(batchStarted: StreamingListenerBatchCompleted): Unit
Called when processing of a batch of jobs has completed.
Called when processing of a batch of jobs has completed.
- Definition Classes
- StatsReportListener → StreamingListener
-
def
onBatchStarted(batchStarted: StreamingListenerBatchStarted): Unit
Called when processing of a batch of jobs has started.
Called when processing of a batch of jobs has started.
- Definition Classes
- StreamingListener
-
def
onBatchSubmitted(batchSubmitted: StreamingListenerBatchSubmitted): Unit
Called when a batch of jobs has been submitted for processing.
Called when a batch of jobs has been submitted for processing.
- Definition Classes
- StreamingListener
-
def
onOutputOperationCompleted(outputOperationCompleted: StreamingListenerOutputOperationCompleted): Unit
Called when processing of a job of a batch has completed.
Called when processing of a job of a batch has completed.
- Definition Classes
- StreamingListener
-
def
onOutputOperationStarted(outputOperationStarted: StreamingListenerOutputOperationStarted): Unit
Called when processing of a job of a batch has started.
Called when processing of a job of a batch has started.
- Definition Classes
- StreamingListener
-
def
onReceiverError(receiverError: StreamingListenerReceiverError): Unit
Called when a receiver has reported an error
Called when a receiver has reported an error
- Definition Classes
- StreamingListener
-
def
onReceiverStarted(receiverStarted: StreamingListenerReceiverStarted): Unit
Called when a receiver has been started
Called when a receiver has been started
- Definition Classes
- StreamingListener
-
def
onReceiverStopped(receiverStopped: StreamingListenerReceiverStopped): Unit
Called when a receiver has been stopped
Called when a receiver has been stopped
- Definition Classes
- StreamingListener
-
def
onStreamingStarted(streamingStarted: StreamingListenerStreamingStarted): Unit
Called when the streaming has been started
Called when the streaming has been started
- Definition Classes
- StreamingListener
- def printStats(): Unit
- def showMillisDistribution(heading: String, getMetric: (BatchInfo) ⇒ Option[Long]): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()