org.apache.hadoop.conf.Configurablepublic class JobEndNotifier
extends java.lang.Object
implements org.apache.hadoop.conf.Configurable
This class handles job end notification. Submitters of jobs can choose to be notified of the end of a job by supplying a URL to which a connection will be established.
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
numTries |
|
protected java.lang.String |
proxyConf |
|
protected java.net.Proxy |
proxyToUse |
|
protected int |
timeout |
|
protected java.net.URL |
urlToNotify |
|
protected java.lang.String |
userUrl |
|
protected int |
waitInterval |
| Constructor | Description |
|---|---|
JobEndNotifier() |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
|
void |
notify(org.apache.hadoop.mapreduce.v2.api.records.JobReport jobReport) |
Notify a server of the completion of a submitted job.
|
protected boolean |
notifyURLOnce() |
Notify the URL just once.
|
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
Parse the URL that needs to be notified of the end of the job, along
with the number of retries in case of failure, the amount of time to
wait between retries and proxy settings
|
protected java.lang.String userUrl
protected java.lang.String proxyConf
protected int numTries
protected int waitInterval
protected int timeout
protected java.net.URL urlToNotify
protected java.net.Proxy proxyToUse
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurableconf - the configurationpublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurableprotected boolean notifyURLOnce()
public void notify(org.apache.hadoop.mapreduce.v2.api.records.JobReport jobReport)
throws java.lang.InterruptedException
jobReport - JobReport used to read JobId and JobStatusjava.lang.InterruptedExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.