public interface ClientRmOperations
ClientRmTemplate| Modifier and Type | Method and Description | 
|---|---|
| org.apache.hadoop.yarn.api.records.ApplicationReport | getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)Gets a report of the application. | 
| org.apache.hadoop.yarn.api.records.Token | getDelegationToken(java.lang.String renewer)Gets the resource manager delegation token. | 
| org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse | getNewApplication()Requests a new application from a resource manager. | 
| org.apache.hadoop.yarn.api.protocolrecords.KillApplicationResponse | killApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)Requests  ResourceManagerto abort submitted application. | 
| java.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> | listApplications()Gets a list of  ApplicationReports from a resource manager. | 
| java.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> | listApplications(java.util.EnumSet<org.apache.hadoop.yarn.api.records.YarnApplicationState> states,
                java.util.Set<java.lang.String> types)Gets a list of  ApplicationReports from a resource manager. | 
| org.apache.hadoop.yarn.api.protocolrecords.SubmitApplicationResponse | submitApplication(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appSubContext)Submits a new application into resource manager. | 
org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse getNewApplication()
ApplicationId but response
 also contains information about resource capabilities.GetNewApplicationResponseorg.apache.hadoop.yarn.api.protocolrecords.SubmitApplicationResponse submitApplication(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appSubContext)
appSubContext - the Application Submission ContextSubmitApplicationResponsejava.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> listApplications()
ApplicationReports from a resource manager.ApplicationReportsjava.util.List<org.apache.hadoop.yarn.api.records.ApplicationReport> listApplications(java.util.EnumSet<org.apache.hadoop.yarn.api.records.YarnApplicationState> states,
                                                                                    java.util.Set<java.lang.String> types)
ApplicationReports from a resource manager. Allows
 to filter results by using a set of YarnApplicationStates and
 registered application types.states - the yarn application statestypes - the yarn application typesApplicationReportsorg.apache.hadoop.yarn.api.protocolrecords.KillApplicationResponse killApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
ResourceManager to abort submitted application.applicationId - the application idKillApplicationResponseorg.apache.hadoop.yarn.api.records.Token getDelegationToken(java.lang.String renewer)
renewer - the renewer as kerberos principalorg.apache.hadoop.yarn.api.records.ApplicationReport getApplicationReport(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
applicationId - the application idApplicationReport