org.apache.hadoop.yarn.server.webproxy
Class AppReportFetcher

java.lang.Object
  extended by org.apache.hadoop.yarn.server.webproxy.AppReportFetcher

public class AppReportFetcher
extends Object

This class abstracts away how ApplicationReports are fetched.


Constructor Summary
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.
 
Method Summary
 org.apache.hadoop.yarn.api.records.ApplicationReport getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId appId)
          Get a report for the specified app.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppReportFetcher

public AppReportFetcher(org.apache.hadoop.conf.Configuration conf)
Create a new Connection to the RM to fetch Application reports.

Parameters:
conf - the conf to use to know where the RM is.

AppReportFetcher

public 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. This is mostly for when the Proxy is running as part of the RM already.

Parameters:
conf - the configuration to use
applicationsManager - what to use to get the RM reports.
Method Detail

getApplicationReport

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
Get a report for the specified app.

Parameters:
appId - the id of the application to get.
Returns:
the ApplicationReport for that app.
Throws:
org.apache.hadoop.yarn.exceptions.YarnException - on any error.
IOException


Copyright © 2013 Apache Software Foundation. All Rights Reserved.