public class StatsReportListener extends java.lang.Object implements StreamingListener
| Constructor and Description |
|---|
StatsReportListener(int numBatchInfos) |
| Modifier and Type | Method and Description |
|---|---|
scala.collection.mutable.Queue<BatchInfo> |
batchInfos() |
scala.Option<org.apache.spark.util.Distribution> |
extractDistribution(scala.Function1<BatchInfo,scala.Option<java.lang.Object>> getMetric) |
void |
onBatchCompleted(StreamingListenerBatchCompleted batchStarted)
Called when processing of a batch of jobs has completed.
|
static void |
onBatchStarted(StreamingListenerBatchStarted batchStarted) |
static void |
onBatchSubmitted(StreamingListenerBatchSubmitted batchSubmitted) |
static void |
onOutputOperationCompleted(StreamingListenerOutputOperationCompleted outputOperationCompleted) |
static void |
onOutputOperationStarted(StreamingListenerOutputOperationStarted outputOperationStarted) |
static void |
onReceiverError(StreamingListenerReceiverError receiverError) |
static void |
onReceiverStarted(StreamingListenerReceiverStarted receiverStarted) |
static void |
onReceiverStopped(StreamingListenerReceiverStopped receiverStopped) |
void |
printStats() |
void |
showMillisDistribution(java.lang.String heading,
scala.Function1<BatchInfo,scala.Option<java.lang.Object>> getMetric) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonBatchStarted, onBatchSubmitted, onOutputOperationCompleted, onOutputOperationStarted, onReceiverError, onReceiverStarted, onReceiverStoppedpublic static void onReceiverStarted(StreamingListenerReceiverStarted receiverStarted)
public static void onReceiverError(StreamingListenerReceiverError receiverError)
public static void onReceiverStopped(StreamingListenerReceiverStopped receiverStopped)
public static void onBatchSubmitted(StreamingListenerBatchSubmitted batchSubmitted)
public static void onBatchStarted(StreamingListenerBatchStarted batchStarted)
public static void onOutputOperationStarted(StreamingListenerOutputOperationStarted outputOperationStarted)
public static void onOutputOperationCompleted(StreamingListenerOutputOperationCompleted outputOperationCompleted)
public scala.collection.mutable.Queue<BatchInfo> batchInfos()
public void onBatchCompleted(StreamingListenerBatchCompleted batchStarted)
StreamingListeneronBatchCompleted in interface StreamingListenerpublic void printStats()
public void showMillisDistribution(java.lang.String heading,
scala.Function1<BatchInfo,scala.Option<java.lang.Object>> getMetric)
public scala.Option<org.apache.spark.util.Distribution> extractDistribution(scala.Function1<BatchInfo,scala.Option<java.lang.Object>> getMetric)