public class JobEndNotifier extends 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 and Description |
---|---|
protected int |
numTries |
protected String |
proxyConf |
protected Proxy |
proxyToUse |
protected int |
timeout |
protected URL |
urlToNotify |
protected String |
userUrl |
protected int |
waitInterval |
Constructor and Description |
---|
JobEndNotifier() |
Modifier and Type | Method and 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 String userUrl
protected String proxyConf
protected int numTries
protected int waitInterval
protected int timeout
protected URL urlToNotify
protected Proxy proxyToUse
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
conf
- the configurationpublic org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
protected boolean notifyURLOnce()
public void notify(org.apache.hadoop.mapreduce.v2.api.records.JobReport jobReport) throws InterruptedException
jobReport
- JobReport used to read JobId and JobStatusInterruptedException
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.