Package org.apache.spark
Class SparkFirehoseListener
Object
org.apache.spark.SparkFirehoseListener
- All Implemented Interfaces:
org.apache.spark.scheduler.SparkListenerInterface
@DeveloperApi
public class SparkFirehoseListener
extends Object
implements org.apache.spark.scheduler.SparkListenerInterface
Class that allows users to receive all SparkListener events.
Users should override the onEvent method.
This is a concrete Java class in order to ensure that we don't forget to update it when adding
new methods to SparkListener: forgetting to add a method will result in a compilation error (if
this was a concrete Scala class, default implementations of new event handlers would be inherited
from the SparkListener trait).
Please note until Spark 3.1.0 this was missing the DevelopApi annotation, this needs to be
taken into account if changing this API before a major release.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidonApplicationEnd(SparkListenerApplicationEnd applicationEnd) final voidonApplicationStart(SparkListenerApplicationStart applicationStart) final voidonBlockManagerAdded(SparkListenerBlockManagerAdded blockManagerAdded) final voidonBlockManagerRemoved(SparkListenerBlockManagerRemoved blockManagerRemoved) voidonBlockUpdated(SparkListenerBlockUpdated blockUpdated) final voidonEnvironmentUpdate(SparkListenerEnvironmentUpdate environmentUpdate) voidonEvent(SparkListenerEvent event) final voidonExecutorAdded(SparkListenerExecutorAdded executorAdded) final voidonExecutorBlacklisted(SparkListenerExecutorBlacklisted executorBlacklisted) voidonExecutorBlacklistedForStage(SparkListenerExecutorBlacklistedForStage executorBlacklistedForStage) final voidonExecutorExcluded(SparkListenerExecutorExcluded executorExcluded) voidonExecutorExcludedForStage(SparkListenerExecutorExcludedForStage executorExcludedForStage) final voidonExecutorMetricsUpdate(SparkListenerExecutorMetricsUpdate executorMetricsUpdate) final voidonExecutorRemoved(SparkListenerExecutorRemoved executorRemoved) final voidonExecutorUnblacklisted(SparkListenerExecutorUnblacklisted executorUnblacklisted) final voidonExecutorUnexcluded(SparkListenerExecutorUnexcluded executorUnexcluded) final voidonJobEnd(SparkListenerJobEnd jobEnd) final voidonJobStart(SparkListenerJobStart jobStart) final voidonNodeBlacklisted(SparkListenerNodeBlacklisted nodeBlacklisted) voidonNodeBlacklistedForStage(SparkListenerNodeBlacklistedForStage nodeBlacklistedForStage) final voidonNodeExcluded(SparkListenerNodeExcluded nodeExcluded) voidonNodeExcludedForStage(SparkListenerNodeExcludedForStage nodeExcludedForStage) final voidonNodeUnblacklisted(SparkListenerNodeUnblacklisted nodeUnblacklisted) final voidonNodeUnexcluded(SparkListenerNodeUnexcluded nodeUnexcluded) voidonOtherEvent(SparkListenerEvent event) voidvoidonSpeculativeTaskSubmitted(SparkListenerSpeculativeTaskSubmitted speculativeTask) final voidonStageCompleted(SparkListenerStageCompleted stageCompleted) final voidonStageExecutorMetrics(SparkListenerStageExecutorMetrics executorMetrics) final voidonStageSubmitted(SparkListenerStageSubmitted stageSubmitted) final voidonTaskEnd(SparkListenerTaskEnd taskEnd) final voidonTaskGettingResult(SparkListenerTaskGettingResult taskGettingResult) final voidonTaskStart(SparkListenerTaskStart taskStart) final voidonUnpersistRDD(SparkListenerUnpersistRDD unpersistRDD) voidonUnschedulableTaskSetAdded(SparkListenerUnschedulableTaskSetAdded unschedulableTaskSetAdded) voidonUnschedulableTaskSetRemoved(SparkListenerUnschedulableTaskSetRemoved unschedulableTaskSetRemoved)
-
Constructor Details
-
SparkFirehoseListener
public SparkFirehoseListener()
-
-
Method Details
-
onEvent
-
onStageCompleted
- Specified by:
onStageCompletedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onStageSubmitted
- Specified by:
onStageSubmittedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onTaskStart
- Specified by:
onTaskStartin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onTaskGettingResult
- Specified by:
onTaskGettingResultin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onTaskEnd
- Specified by:
onTaskEndin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onJobStart
- Specified by:
onJobStartin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onJobEnd
- Specified by:
onJobEndin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onEnvironmentUpdate
- Specified by:
onEnvironmentUpdatein interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onBlockManagerAdded
- Specified by:
onBlockManagerAddedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onBlockManagerRemoved
- Specified by:
onBlockManagerRemovedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onUnpersistRDD
- Specified by:
onUnpersistRDDin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onApplicationStart
- Specified by:
onApplicationStartin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onApplicationEnd
- Specified by:
onApplicationEndin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onExecutorMetricsUpdate
- Specified by:
onExecutorMetricsUpdatein interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onStageExecutorMetrics
- Specified by:
onStageExecutorMetricsin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onExecutorAdded
- Specified by:
onExecutorAddedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onExecutorRemoved
- Specified by:
onExecutorRemovedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onExecutorBlacklisted
- Specified by:
onExecutorBlacklistedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onExecutorExcluded
- Specified by:
onExecutorExcludedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onExecutorBlacklistedForStage
public void onExecutorBlacklistedForStage(SparkListenerExecutorBlacklistedForStage executorBlacklistedForStage) - Specified by:
onExecutorBlacklistedForStagein interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onExecutorExcludedForStage
public void onExecutorExcludedForStage(SparkListenerExecutorExcludedForStage executorExcludedForStage) - Specified by:
onExecutorExcludedForStagein interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onNodeBlacklistedForStage
- Specified by:
onNodeBlacklistedForStagein interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onNodeExcludedForStage
- Specified by:
onNodeExcludedForStagein interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onExecutorUnblacklisted
- Specified by:
onExecutorUnblacklistedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onExecutorUnexcluded
- Specified by:
onExecutorUnexcludedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onNodeBlacklisted
- Specified by:
onNodeBlacklistedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onNodeExcluded
- Specified by:
onNodeExcludedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onNodeUnblacklisted
- Specified by:
onNodeUnblacklistedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onNodeUnexcluded
- Specified by:
onNodeUnexcludedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onBlockUpdated
- Specified by:
onBlockUpdatedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onSpeculativeTaskSubmitted
- Specified by:
onSpeculativeTaskSubmittedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onUnschedulableTaskSetAdded
public void onUnschedulableTaskSetAdded(SparkListenerUnschedulableTaskSetAdded unschedulableTaskSetAdded) - Specified by:
onUnschedulableTaskSetAddedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onUnschedulableTaskSetRemoved
public void onUnschedulableTaskSetRemoved(SparkListenerUnschedulableTaskSetRemoved unschedulableTaskSetRemoved) - Specified by:
onUnschedulableTaskSetRemovedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onResourceProfileAdded
- Specified by:
onResourceProfileAddedin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-
onOtherEvent
- Specified by:
onOtherEventin interfaceorg.apache.spark.scheduler.SparkListenerInterface
-