T - the driver context bean typepublic interface ToolListener<T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
ToolListener.Event |
| 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.
|
void onAfterInitCliOptions(ToolEvent<T> event, org.apache.commons.cli.Options options) throws Exception
event - the event that occurred the event that occurredoptions - the driver's parsed command line optionsException - if an exception occurs during handlingvoid onAfterParseCli(ToolEvent<T> event, org.apache.commons.cli.CommandLine line) throws Exception
event - the event that occurredline - the command line argumentsException - if an exception occurs during handlingvoid onBeforeInitDriver(String id, ToolEvent<T> event) throws Exception
id - the uuid generated for this driver instanceevent - the event that occurredException - if an exception occurs during handlingvoid onBeforeInitJob(ToolEvent<T> event) throws Exception
event - the event that occurredException - if an exception occurs during handlingvoid onBeforeMapReduceSubmit(ToolEvent<T> event) throws Exception
event - the event that occurredException - if an exception occurs during handlingvoid onAfterMapReduceFinish(int retVal,
ToolEvent<T> event)
throws Exception
retVal - the application exit codeevent - the event that occurredException - if an exception occurs during handlingvoid onBeforeExit(ToolEvent<T> event) throws Exception
event - the event that occurredException - if an exception occurs during handlingCopyright © 2015 Conversant. All rights reserved.