@InterfaceAudience.Public @InterfaceStability.Evolving public interface PigProgressNotificationListener extends java.util.EventListener
PigRunner
.Modifier and Type | Method and Description |
---|---|
void |
initialPlanNotification(java.lang.String scriptId,
MROperPlan plan)
Invoked before any MR jobs are run with the plan that is to be executed.
|
void |
jobFailedNotification(java.lang.String scriptId,
JobStats jobStats)
Invoked when a MR job fails.
|
void |
jobFinishedNotification(java.lang.String scriptId,
JobStats jobStats)
Invoked just after a MR job is completed successfully.
|
void |
jobsSubmittedNotification(java.lang.String scriptId,
int numJobsSubmitted)
Invoked just before submitting a batch of MR jobs.
|
void |
jobStartedNotification(java.lang.String scriptId,
java.lang.String assignedJobId)
Invoked after a MR job is started.
|
void |
launchCompletedNotification(java.lang.String scriptId,
int numJobsSucceeded)
Invoked just after all MR jobs spawned by the script are completed.
|
void |
launchStartedNotification(java.lang.String scriptId,
int numJobsToLaunch)
Invoked just before launching MR jobs spawned by the script.
|
void |
outputCompletedNotification(java.lang.String scriptId,
OutputStats outputStats)
Invoked just after an output is successfully written.
|
void |
progressUpdatedNotification(java.lang.String scriptId,
int progress)
Invoked to update the execution progress.
|
void initialPlanNotification(java.lang.String scriptId, MROperPlan plan)
scriptId
- the unique id of the scriptplan
- the MROperPlan that is to be executedvoid launchStartedNotification(java.lang.String scriptId, int numJobsToLaunch)
scriptId
- the unique id of the scriptnumJobsToLaunch
- the total number of MR jobs spawned by the scriptvoid jobsSubmittedNotification(java.lang.String scriptId, int numJobsSubmitted)
scriptId
- the unique id of the scriptnumJobsSubmitted
- the number of MR jobs in the batchvoid jobStartedNotification(java.lang.String scriptId, java.lang.String assignedJobId)
scriptId
- the unique id of the scriptassignedJobId
- the MR job idvoid jobFinishedNotification(java.lang.String scriptId, JobStats jobStats)
scriptId
- the unique id of the scriptjobStats
- the JobStats
object associated with the MR jobvoid jobFailedNotification(java.lang.String scriptId, JobStats jobStats)
scriptId
- the unique id of the scriptjobStats
- the JobStats
object associated with the MR jobvoid outputCompletedNotification(java.lang.String scriptId, OutputStats outputStats)
scriptId
- the unique id of the scriptoutputStats
- the OutputStats
object associated with the outputvoid progressUpdatedNotification(java.lang.String scriptId, int progress)
scriptId
- the unique id of the scriptprogress
- the percentage of the execution progressvoid launchCompletedNotification(java.lang.String scriptId, int numJobsSucceeded)
scriptId
- the unique id of the scriptnumJobsSucceeded
- the total number of MR jobs succeededCopyright © 2007-2012 The Apache Software Foundation