org.apache.hadoop.yarn.server.resourcemanager
Class ClientRMService

java.lang.Object
  extended by org.apache.hadoop.yarn.service.AbstractService
      extended by org.apache.hadoop.yarn.server.resourcemanager.ClientRMService
All Implemented Interfaces:
org.apache.hadoop.yarn.api.ClientRMProtocol, org.apache.hadoop.yarn.service.Service

public class ClientRMService
extends org.apache.hadoop.yarn.service.AbstractService
implements org.apache.hadoop.yarn.api.ClientRMProtocol

The client interface to the Resource Manager. This module handles all the rpc interfaces to the resource manager from the client.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service
org.apache.hadoop.yarn.service.Service.STATE
 
Constructor Summary
ClientRMService(RMContext rmContext, YarnScheduler scheduler, RMAppManager rmAppManager, org.apache.hadoop.yarn.server.security.ApplicationACLsManager applicationACLsManager, org.apache.hadoop.yarn.server.RMDelegationTokenSecretManager rmDTSecretManager)
           
 
Method Summary
 org.apache.hadoop.yarn.api.protocolrecords.KillApplicationResponse forceKillApplication(org.apache.hadoop.yarn.api.protocolrecords.KillApplicationRequest request)
           
 org.apache.hadoop.yarn.api.protocolrecords.GetAllApplicationsResponse getAllApplications(org.apache.hadoop.yarn.api.protocolrecords.GetAllApplicationsRequest request)
           
 org.apache.hadoop.yarn.api.protocolrecords.GetApplicationReportResponse getApplicationReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationReportRequest request)
           
 InetSocketAddress getBindAddress()
           
 org.apache.hadoop.yarn.api.protocolrecords.GetClusterMetricsResponse getClusterMetrics(org.apache.hadoop.yarn.api.protocolrecords.GetClusterMetricsRequest request)
           
 org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodesResponse getClusterNodes(org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodesRequest request)
           
 org.apache.hadoop.yarn.api.protocolrecords.GetDelegationTokenResponse getDelegationToken(org.apache.hadoop.yarn.api.protocolrecords.GetDelegationTokenRequest request)
           
 org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse getNewApplication(org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationRequest request)
           
 org.apache.hadoop.yarn.api.protocolrecords.GetQueueInfoResponse getQueueInfo(org.apache.hadoop.yarn.api.protocolrecords.GetQueueInfoRequest request)
           
 org.apache.hadoop.yarn.api.protocolrecords.GetQueueUserAclsInfoResponse getQueueUserAcls(org.apache.hadoop.yarn.api.protocolrecords.GetQueueUserAclsInfoRequest request)
           
 void init(org.apache.hadoop.conf.Configuration conf)
           
 void start()
           
 void stop()
           
 org.apache.hadoop.yarn.api.protocolrecords.SubmitApplicationResponse submitApplication(org.apache.hadoop.yarn.api.protocolrecords.SubmitApplicationRequest request)
           
 
Methods inherited from class org.apache.hadoop.yarn.service.AbstractService
getConfig, getName, getServiceState, getStartTime, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientRMService

public ClientRMService(RMContext rmContext,
                       YarnScheduler scheduler,
                       RMAppManager rmAppManager,
                       org.apache.hadoop.yarn.server.security.ApplicationACLsManager applicationACLsManager,
                       org.apache.hadoop.yarn.server.RMDelegationTokenSecretManager rmDTSecretManager)
Method Detail

init

public void init(org.apache.hadoop.conf.Configuration conf)
Specified by:
init in interface org.apache.hadoop.yarn.service.Service
Overrides:
init in class org.apache.hadoop.yarn.service.AbstractService

start

public void start()
Specified by:
start in interface org.apache.hadoop.yarn.service.Service
Overrides:
start in class org.apache.hadoop.yarn.service.AbstractService

getBindAddress

@InterfaceAudience.Private
public InetSocketAddress getBindAddress()

getNewApplication

public org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse getNewApplication(org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationRequest request)
                                                                                       throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
getNewApplication in interface org.apache.hadoop.yarn.api.ClientRMProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

getApplicationReport

public org.apache.hadoop.yarn.api.protocolrecords.GetApplicationReportResponse getApplicationReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationReportRequest request)
                                                                                             throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
getApplicationReport in interface org.apache.hadoop.yarn.api.ClientRMProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

submitApplication

public org.apache.hadoop.yarn.api.protocolrecords.SubmitApplicationResponse submitApplication(org.apache.hadoop.yarn.api.protocolrecords.SubmitApplicationRequest request)
                                                                                       throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
submitApplication in interface org.apache.hadoop.yarn.api.ClientRMProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

forceKillApplication

public org.apache.hadoop.yarn.api.protocolrecords.KillApplicationResponse forceKillApplication(org.apache.hadoop.yarn.api.protocolrecords.KillApplicationRequest request)
                                                                                        throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
forceKillApplication in interface org.apache.hadoop.yarn.api.ClientRMProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

getClusterMetrics

public org.apache.hadoop.yarn.api.protocolrecords.GetClusterMetricsResponse getClusterMetrics(org.apache.hadoop.yarn.api.protocolrecords.GetClusterMetricsRequest request)
                                                                                       throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
getClusterMetrics in interface org.apache.hadoop.yarn.api.ClientRMProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

getAllApplications

public org.apache.hadoop.yarn.api.protocolrecords.GetAllApplicationsResponse getAllApplications(org.apache.hadoop.yarn.api.protocolrecords.GetAllApplicationsRequest request)
                                                                                         throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
getAllApplications in interface org.apache.hadoop.yarn.api.ClientRMProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

getClusterNodes

public org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodesResponse getClusterNodes(org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodesRequest request)
                                                                                   throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
getClusterNodes in interface org.apache.hadoop.yarn.api.ClientRMProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

getQueueInfo

public org.apache.hadoop.yarn.api.protocolrecords.GetQueueInfoResponse getQueueInfo(org.apache.hadoop.yarn.api.protocolrecords.GetQueueInfoRequest request)
                                                                             throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
getQueueInfo in interface org.apache.hadoop.yarn.api.ClientRMProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

getQueueUserAcls

public org.apache.hadoop.yarn.api.protocolrecords.GetQueueUserAclsInfoResponse getQueueUserAcls(org.apache.hadoop.yarn.api.protocolrecords.GetQueueUserAclsInfoRequest request)
                                                                                         throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
getQueueUserAcls in interface org.apache.hadoop.yarn.api.ClientRMProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

getDelegationToken

public org.apache.hadoop.yarn.api.protocolrecords.GetDelegationTokenResponse getDelegationToken(org.apache.hadoop.yarn.api.protocolrecords.GetDelegationTokenRequest request)
                                                                                         throws org.apache.hadoop.yarn.exceptions.YarnRemoteException
Specified by:
getDelegationToken in interface org.apache.hadoop.yarn.api.ClientRMProtocol
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException

stop

public void stop()
Specified by:
stop in interface org.apache.hadoop.yarn.service.Service
Overrides:
stop in class org.apache.hadoop.yarn.service.AbstractService


Copyright © 2012 Apache Software Foundation. All Rights Reserved.