T - the driver context bean typepublic class ToolListenerAdapter<T> extends Object implements ToolListener<T>
ToolListener.Event| Constructor and Description |
|---|
ToolListenerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
onAfterInitCliOptions(ToolEvent<T> event,
org.apache.commons.cli.Options options)
Called immediately following CLI initialization.
|
void |
onAfterMapReduceFinish(int retVal,
ToolEvent<T> event)
Called following a MapReduce job run.
|
void |
onAfterParseCli(ToolEvent<T> event,
org.apache.commons.cli.CommandLine line)
Called immediately following CLI initialization.
|
void |
onBeforeExit(ToolEvent<T> event)
Called just prior to exit but after the default 'cleanup'
|
void |
onBeforeInitDriver(String id,
ToolEvent<T> event)
Called just prior to BaseTool.init being called.
|
void |
onBeforeInitJob(ToolEvent<T> event)
Called just prior to BaseTool.initJob being called.
|
void |
onBeforeMapReduceSubmit(ToolEvent<T> event)
Called just prior to submitting MR job.
|
void |
onJobException(ToolEvent<T> event,
Exception e)
Called if the job throws an exception.
|
public void onAfterInitCliOptions(ToolEvent<T> event, org.apache.commons.cli.Options options) throws Exception
ToolListeneronAfterInitCliOptions in interface ToolListener<T>event - the event that occurred the event that occurredoptions - the driver's parsed command line optionsException - if an exception occurs during handlingpublic void onAfterParseCli(ToolEvent<T> event, org.apache.commons.cli.CommandLine line) throws Exception
ToolListeneronAfterParseCli in interface ToolListener<T>event - the event that occurredline - the command line argumentsException - if an exception occurs during handlingpublic void onBeforeInitDriver(String id, ToolEvent<T> event) throws Exception
ToolListeneronBeforeInitDriver in interface ToolListener<T>id - the uuid generated for this driver instanceevent - the event that occurredException - if an exception occurs during handlingpublic void onBeforeInitJob(ToolEvent<T> event) throws Exception
ToolListeneronBeforeInitJob in interface ToolListener<T>event - the event that occurredException - if an exception occurs during handlingpublic void onBeforeMapReduceSubmit(ToolEvent<T> event) throws Exception
ToolListeneronBeforeMapReduceSubmit in interface ToolListener<T>event - the event that occurredException - if an exception occurs during handlingpublic void onAfterMapReduceFinish(int retVal,
ToolEvent<T> event)
throws Exception
ToolListeneronAfterMapReduceFinish in interface ToolListener<T>retVal - the application exit codeevent - the event that occurredException - if an exception occurs during handlingpublic void onBeforeExit(ToolEvent<T> event) throws Exception
ToolListeneronBeforeExit in interface ToolListener<T>event - the event that occurredException - if an exception occurs during handlingpublic void onJobException(ToolEvent<T> event, Exception e) throws Exception
ToolListeneronJobException in interface ToolListener<T>event - the event that occurrede - the exception encounteredException - if an exception occurs during handlingCopyright © 2015 Conversant. All rights reserved.