Package org.apache.spark
Class SpillListener
Object
org.apache.spark.scheduler.SparkListener
org.apache.spark.SpillListener
- All Implemented Interfaces:
SparkListenerInterface
A
SparkListener
that detects whether spills have occurred in Spark jobs.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
void
onStageCompleted
(SparkListenerStageCompleted stageComplete) Called when a stage completes successfully or fails, with information on the completed stage.void
onTaskEnd
(SparkListenerTaskEnd taskEnd) Called when a task endsMethods inherited from class org.apache.spark.scheduler.SparkListener
onApplicationEnd, onApplicationStart, onBlockManagerAdded, onBlockManagerRemoved, onBlockUpdated, onEnvironmentUpdate, onExecutorAdded, onExecutorBlacklisted, onExecutorBlacklistedForStage, onExecutorExcluded, onExecutorExcludedForStage, onExecutorMetricsUpdate, onExecutorRemoved, onExecutorUnblacklisted, onExecutorUnexcluded, onJobEnd, onJobStart, onNodeBlacklisted, onNodeBlacklistedForStage, onNodeExcluded, onNodeExcludedForStage, onNodeUnblacklisted, onNodeUnexcluded, onOtherEvent, onResourceProfileAdded, onSpeculativeTaskSubmitted, onStageExecutorMetrics, onStageSubmitted, onTaskGettingResult, onTaskStart, onUnpersistRDD, onUnschedulableTaskSetAdded, onUnschedulableTaskSetRemoved
-
Constructor Details
-
SpillListener
public SpillListener()
-
-
Method Details
-
numSpilledStages
public int numSpilledStages() -
onStageCompleted
Description copied from interface:SparkListenerInterface
Called when a stage completes successfully or fails, with information on the completed stage.- Specified by:
onStageCompleted
in interfaceSparkListenerInterface
- Overrides:
onStageCompleted
in classSparkListener
- Parameters:
stageComplete
- (undocumented)
-
onTaskEnd
Description copied from interface:SparkListenerInterface
Called when a task ends- Specified by:
onTaskEnd
in interfaceSparkListenerInterface
- Overrides:
onTaskEnd
in classSparkListener
- Parameters:
taskEnd
- (undocumented)
-