public class JavaSparkListener extends Object implements SparkListener
| Constructor and Description |
|---|
JavaSparkListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onApplicationEnd(SparkListenerApplicationEnd applicationEnd)
Called when the application ends
|
void |
onApplicationStart(SparkListenerApplicationStart applicationStart)
Called when the application starts
|
void |
onBlockManagerAdded(SparkListenerBlockManagerAdded blockManagerAdded)
Called when a new block manager has joined
|
void |
onBlockManagerRemoved(SparkListenerBlockManagerRemoved blockManagerRemoved)
Called when an existing block manager has been removed
|
void |
onEnvironmentUpdate(SparkListenerEnvironmentUpdate environmentUpdate)
Called when environment properties have been updated
|
void |
onExecutorAdded(SparkListenerExecutorAdded executorAdded)
Called when the driver registers a new executor.
|
void |
onExecutorMetricsUpdate(SparkListenerExecutorMetricsUpdate executorMetricsUpdate)
Called when the driver receives task metrics from an executor in a heartbeat.
|
void |
onExecutorRemoved(SparkListenerExecutorRemoved executorRemoved)
Called when the driver removes an executor.
|
void |
onJobEnd(SparkListenerJobEnd jobEnd)
Called when a job ends
|
void |
onJobStart(SparkListenerJobStart jobStart)
Called when a job starts
|
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)
Called when a task ends
|
void |
onTaskGettingResult(SparkListenerTaskGettingResult taskGettingResult)
Called when a task begins remotely fetching its result (will not be called for tasks that do
not need to fetch the result remotely).
|
void |
onTaskStart(SparkListenerTaskStart taskStart)
Called when a task starts
|
void |
onUnpersistRDD(SparkListenerUnpersistRDD unpersistRDD)
Called when an RDD is manually unpersisted by the application
|
public void onStageCompleted(SparkListenerStageCompleted stageCompleted)
SparkListeneronStageCompleted in interface SparkListenerpublic void onStageSubmitted(SparkListenerStageSubmitted stageSubmitted)
SparkListeneronStageSubmitted in interface SparkListenerpublic void onTaskStart(SparkListenerTaskStart taskStart)
SparkListeneronTaskStart in interface SparkListenerpublic void onTaskGettingResult(SparkListenerTaskGettingResult taskGettingResult)
SparkListeneronTaskGettingResult in interface SparkListenerpublic void onTaskEnd(SparkListenerTaskEnd taskEnd)
SparkListeneronTaskEnd in interface SparkListenerpublic void onJobStart(SparkListenerJobStart jobStart)
SparkListeneronJobStart in interface SparkListenerpublic void onJobEnd(SparkListenerJobEnd jobEnd)
SparkListeneronJobEnd in interface SparkListenerpublic void onEnvironmentUpdate(SparkListenerEnvironmentUpdate environmentUpdate)
SparkListeneronEnvironmentUpdate in interface SparkListenerpublic void onBlockManagerAdded(SparkListenerBlockManagerAdded blockManagerAdded)
SparkListeneronBlockManagerAdded in interface SparkListenerpublic void onBlockManagerRemoved(SparkListenerBlockManagerRemoved blockManagerRemoved)
SparkListeneronBlockManagerRemoved in interface SparkListenerpublic void onUnpersistRDD(SparkListenerUnpersistRDD unpersistRDD)
SparkListeneronUnpersistRDD in interface SparkListenerpublic void onApplicationStart(SparkListenerApplicationStart applicationStart)
SparkListeneronApplicationStart in interface SparkListenerpublic void onApplicationEnd(SparkListenerApplicationEnd applicationEnd)
SparkListeneronApplicationEnd in interface SparkListenerpublic void onExecutorMetricsUpdate(SparkListenerExecutorMetricsUpdate executorMetricsUpdate)
SparkListeneronExecutorMetricsUpdate in interface SparkListenerpublic void onExecutorAdded(SparkListenerExecutorAdded executorAdded)
SparkListeneronExecutorAdded in interface SparkListenerpublic void onExecutorRemoved(SparkListenerExecutorRemoved executorRemoved)
SparkListeneronExecutorRemoved in interface SparkListener