Adds a listener in the form of a Scala closure to be executed on task completion.
Adds a (Java friendly) listener to be executed on task completion.
How many times this task has been attempted.
::DeveloperApi:: Returns all metrics sources with the given name which are associated with the instance which runs the task.
Returns true if the task has completed.
Returns true if the task has been killed.
Returns true if the task is running locally in the driver program.
The ID of the RDD partition that is computed by this task.
The ID of the stage that this task belong to.
An ID that is unique to this task attempt (within the same SparkContext, no two task attempts will share the same attempt ID).
Adds a callback function to be executed on task completion.
(Since version 1.2.0) use addTaskCompletionListener
(Since version 1.3.0) use attemptNumber
(Since version 1.2.0) use isRunningLocally