public class StorageListener extends Object implements SparkListener
| Constructor and Description |
|---|
StorageListener(StorageStatusListener storageStatusListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
onStageCompleted(SparkListenerStageCompleted stageCompleted)
Called when a stage completes successfully or fails, with information on the completed stage.
|
void |
onStageSubmitted(SparkListenerStageSubmitted stageSubmitted)
Called when a stage is submitted
|
void |
onTaskEnd(SparkListenerTaskEnd taskEnd)
Assumes the storage status list is fully up-to-date.
|
void |
onUnpersistRDD(SparkListenerUnpersistRDD unpersistRDD)
Called when an RDD is manually unpersisted by the application
|
scala.collection.Seq<RDDInfo> |
rddInfoList()
Filter RDD info to include only those with cached partitions
|
scala.collection.Seq<StorageStatus> |
storageStatusList() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonApplicationEnd, onApplicationStart, onBlockManagerAdded, onBlockManagerRemoved, onEnvironmentUpdate, onJobEnd, onJobStart, onTaskGettingResult, onTaskStartpublic StorageListener(StorageStatusListener storageStatusListener)
public scala.collection.Seq<StorageStatus> storageStatusList()
public scala.collection.Seq<RDDInfo> rddInfoList()
public void onTaskEnd(SparkListenerTaskEnd taskEnd)
onTaskEnd in interface SparkListenerpublic void onStageSubmitted(SparkListenerStageSubmitted stageSubmitted)
SparkListeneronStageSubmitted in interface SparkListenerpublic void onStageCompleted(SparkListenerStageCompleted stageCompleted)
SparkListeneronStageCompleted in interface SparkListenerpublic void onUnpersistRDD(SparkListenerUnpersistRDD unpersistRDD)
SparkListeneronUnpersistRDD in interface SparkListener