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