@InterfaceAudience.Public @InterfaceStability.Evolving public interface PigProgressNotificationListener extends java.util.EventListener
PigRunner.| Modifier and Type | Method and Description |
|---|---|
void |
initialPlanNotification(java.lang.String scriptId,
OperatorPlan<?> plan)
Invoked before any Hadoop jobs (or a Tez DAG) are run with the plan that is to be executed.
|
void |
jobFailedNotification(java.lang.String scriptId,
JobStats jobStats)
Invoked when a Hadoop job fails.
|
void |
jobFinishedNotification(java.lang.String scriptId,
JobStats jobStats)
Invoked just after a Hadoop job (or Tez DAG) is completed successfully.
|
void |
jobsSubmittedNotification(java.lang.String scriptId,
int numJobsSubmitted)
Invoked just before submitting a batch of Hadoop jobs (or Tez DAGs).
|
void |
jobStartedNotification(java.lang.String scriptId,
java.lang.String assignedJobId)
Invoked after a Hadoop job (or Tez DAG) is started.
|
void |
launchCompletedNotification(java.lang.String scriptId,
int numJobsSucceeded)
Invoked just after all Hadoop jobs (Tez DAGs) spawned by the script are completed.
|
void |
launchStartedNotification(java.lang.String scriptId,
int numJobsToLaunch)
Invoked just before launching Hadoop jobs (or tez DAGs) 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,
OperatorPlan<?> plan)
scriptId - the unique id of the scriptplan - the OperatorPlan that is to be executedvoid launchStartedNotification(java.lang.String scriptId,
int numJobsToLaunch)
scriptId - the unique id of the scriptnumJobsToLaunch - the total number of Hadoop jobs (or Tez DAGs) spawned by the scriptvoid jobsSubmittedNotification(java.lang.String scriptId,
int numJobsSubmitted)
scriptId - the unique id of the scriptnumJobsSubmitted - the number of Hadoop jobs (or Tez DAGs) in the batchvoid jobStartedNotification(java.lang.String scriptId,
java.lang.String assignedJobId)
scriptId - the unique id of the scriptassignedJobId - the Hadoop job id (or Tez DAG job id)void jobFinishedNotification(java.lang.String scriptId,
JobStats jobStats)
scriptId - the unique id of the scriptjobStats - the JobStats object associated with the Hadoop job (or Tez DAG)void jobFailedNotification(java.lang.String scriptId,
JobStats jobStats)
scriptId - the unique id of the scriptjobStats - the JobStats object associated with the Hadoop 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 Hadoop jobs (Tez DAGs) succeededCopyright © 2007-2012 The Apache Software Foundation