org.apache.pig.tools.pigstats
Interface PigProgressNotificationListener

All Superinterfaces:
EventListener

@InterfaceAudience.Public
@InterfaceStability.Evolving
public interface PigProgressNotificationListener
extends EventListener

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

launchStartedNotification

void launchStartedNotification(int numJobsToLaunch)
Invoked just before launching MR jobs spawned by the script.

Parameters:
numJobsToLaunch - the total number of MR jobs spawned by the script

jobsSubmittedNotification

void jobsSubmittedNotification(int numJobsSubmitted)
Invoked just before submitting a batch of MR jobs.

Parameters:
numJobsSubmitted - the number of MR jobs in the batch

jobStartedNotification

void jobStartedNotification(String assignedJobId)
Invoked after a MR job is started.

Parameters:
assignedJobId - the MR job id

jobFinishedNotification

void jobFinishedNotification(JobStats jobStats)
Invoked just after a MR job is completed successfully.

Parameters:
jobStats - the JobStats object associated with the MR job

jobFailedNotification

void jobFailedNotification(JobStats jobStats)
Invoked when a MR job fails.

Parameters:
jobStats - the JobStats object associated with the MR job

outputCompletedNotification

void outputCompletedNotification(OutputStats outputStats)
Invoked just after an output is successfully written.

Parameters:
outputStats - the OutputStats object associated with the output

progressUpdatedNotification

void progressUpdatedNotification(int progress)
Invoked to update the execution progress.

Parameters:
progress - the percentage of the execution progress

launchCompletedNotification

void launchCompletedNotification(int numJobsSucceeded)
Invoked just after all MR jobs spawned by the script are completed.

Parameters:
numJobsSucceeded - the total number of MR jobs succeeded


Copyright © ${year} The Apache Software Foundation