|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Public @InterfaceStability.Evolving public interface PigProgressNotificationListener
Should be implemented by an object that wants to receive notifications
from PigRunner
.
Method Summary | |
---|---|
void |
jobFailedNotification(JobStats jobStats)
Invoked when a MR job fails. |
void |
jobFinishedNotification(JobStats jobStats)
Invoked just after a MR job is completed successfully. |
void |
jobsSubmittedNotification(int numJobsSubmitted)
Invoked just before submitting a batch of MR jobs. |
void |
jobStartedNotification(String assignedJobId)
Invoked after a MR job is started. |
void |
launchCompletedNotification(int numJobsSucceeded)
Invoked just after all MR jobs spawned by the script are completed. |
void |
launchStartedNotification(int numJobsToLaunch)
Invoked just before launching MR jobs spawned by the script. |
void |
outputCompletedNotification(OutputStats outputStats)
Invoked just after an output is successfully written. |
void |
progressUpdatedNotification(int progress)
Invoked to update the execution progress. |
Method Detail |
---|
void launchStartedNotification(int numJobsToLaunch)
numJobsToLaunch
- the total number of MR jobs spawned by the scriptvoid jobsSubmittedNotification(int numJobsSubmitted)
numJobsSubmitted
- the number of MR jobs in the batchvoid jobStartedNotification(String assignedJobId)
assignedJobId
- the MR job idvoid jobFinishedNotification(JobStats jobStats)
jobStats
- the JobStats
object associated with the MR jobvoid jobFailedNotification(JobStats jobStats)
jobStats
- the JobStats
object associated with the MR jobvoid outputCompletedNotification(OutputStats outputStats)
outputStats
- the OutputStats
object associated with the outputvoid progressUpdatedNotification(int progress)
progress
- the percentage of the execution progressvoid launchCompletedNotification(int numJobsSucceeded)
numJobsSucceeded
- the total number of MR jobs succeeded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |