diff options
author | Josh Rosen <joshrosen@databricks.com> | 2015-02-02 23:35:07 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-02-02 23:35:07 -0800 |
commit | b8ebebeaaa259be4fcddf65b3280d23165b011a1 (patch) | |
tree | d700dfbdd5408dabf15840074474808f55bb2e7a /project | |
parent | 13531dd97c08563e53dacdaeaf1102bdd13ef825 (diff) | |
download | spark-b8ebebeaaa259be4fcddf65b3280d23165b011a1.tar.gz spark-b8ebebeaaa259be4fcddf65b3280d23165b011a1.tar.bz2 spark-b8ebebeaaa259be4fcddf65b3280d23165b011a1.zip |
[SPARK-5414] Add SparkFirehoseListener class for consuming all SparkListener events
There isn't a good way to write a SparkListener that receives all SparkListener events and which will be future-compatible (e.g. it will receive events introduced in newer versions of Spark without having to override new methods to process those events).
To address this, this patch adds `SparkFirehoseListener`, a SparkListener implementation that receives all events and dispatches them to a single `onEvent` method (which can be overridden by users).
Author: Josh Rosen <joshrosen@databricks.com>
Closes #4210 from JoshRosen/firehose-listener and squashes the following commits:
223f579 [Josh Rosen] Expand comment to explain rationale for this being a Java class.
ecdfaed [Josh Rosen] Add SparkFirehoseListener class for consuming all SparkListener events.
Diffstat (limited to 'project')
0 files changed, 0 insertions, 0 deletions