public class AppReportFetcher extends Object
| Constructor and Description |
|---|
AppReportFetcher(org.apache.hadoop.conf.Configuration conf)
Create a new Connection to the RM to fetch Application reports.
|
AppReportFetcher(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.api.ApplicationClientProtocol applicationsManager)
Just call directly into the applicationsManager given instead of creating
a remote connection to it.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.yarn.api.records.ApplicationReport |
getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId appId)
Get a report for the specified app.
|
void |
stop() |
public AppReportFetcher(org.apache.hadoop.conf.Configuration conf)
conf - the conf to use to know where the RM is.public AppReportFetcher(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.api.ApplicationClientProtocol applicationsManager)
conf - the configuration to useapplicationsManager - what to use to get the RM reports.public org.apache.hadoop.yarn.api.records.ApplicationReport getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId appId)
throws org.apache.hadoop.yarn.exceptions.YarnException,
IOException
appId - the id of the application to get.org.apache.hadoop.yarn.exceptions.YarnException - on any error.IOExceptionpublic void stop()
Copyright © 2015 Apache Software Foundation. All Rights Reserved.