|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.rpc.YarnRpcAccessor<ApplicationClientProtocol>
org.springframework.yarn.client.ClientRmTemplate
public class ClientRmTemplate
Template implementation for ClientRmOperations wrapping
communication using ApplicationClientProtocol. Methods for this
template wraps possible exceptions into Spring Dao exception hierarchy.
| Constructor Summary | |
|---|---|
ClientRmTemplate(Configuration config)
Constructs a ClientRmTemplate with a given yarn configuration. |
|
| Method Summary | |
|---|---|
ApplicationReport |
getApplicationReport(ApplicationId applicationId)
Gets a report of the application. |
Token |
getDelegationToken(String renewer)
Gets the resource manager delegation token. |
GetNewApplicationResponse |
getNewApplication()
Requests a new application from a resource manager. |
protected InetSocketAddress |
getRpcAddress(Configuration config)
Gets the InetSocketAddress where this accessor should connect. |
KillApplicationResponse |
killApplication(ApplicationId applicationId)
Requests ResourceManager to abort submitted application. |
List<ApplicationReport> |
listApplications()
Gets a list of ApplicationReports from a resource manager. |
List<ApplicationReport> |
listApplications(EnumSet<YarnApplicationState> states,
Set<String> types)
Gets a list of ApplicationReports from a resource manager. |
SubmitApplicationResponse |
submitApplication(ApplicationSubmissionContext appSubContext)
Submits a new application into resource manager. |
| Methods inherited from class org.springframework.yarn.rpc.YarnRpcAccessor |
|---|
afterPropertiesSet, createProxy, destroy, execute, getConfiguration, getProxy, getUser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientRmTemplate(Configuration config)
ClientRmTemplate with a given yarn configuration.
config - the yarn configuration| Method Detail |
|---|
public List<ApplicationReport> listApplications(EnumSet<YarnApplicationState> states,
Set<String> types)
ClientRmOperationsApplicationReports from a resource manager. Allows
to filter results by using a set of YarnApplicationStates and
registered application types.
listApplications in interface ClientRmOperationsstates - the yarn application statestypes - the yarn application types
ApplicationReportspublic List<ApplicationReport> listApplications()
ClientRmOperationsApplicationReports from a resource manager.
listApplications in interface ClientRmOperationsApplicationReportspublic GetNewApplicationResponse getNewApplication()
ClientRmOperationsApplicationId but response
also contains information about resource capabilities.
getNewApplication in interface ClientRmOperationsGetNewApplicationResponsepublic SubmitApplicationResponse submitApplication(ApplicationSubmissionContext appSubContext)
ClientRmOperations
submitApplication in interface ClientRmOperationsappSubContext - the Application Submission Context
SubmitApplicationResponsepublic KillApplicationResponse killApplication(ApplicationId applicationId)
ClientRmOperationsResourceManager to abort submitted application.
killApplication in interface ClientRmOperationsapplicationId - the application id
KillApplicationResponsepublic Token getDelegationToken(String renewer)
ClientRmOperations
getDelegationToken in interface ClientRmOperationsrenewer - the renewer as kerberos principal
public ApplicationReport getApplicationReport(ApplicationId applicationId)
ClientRmOperations
getApplicationReport in interface ClientRmOperationsapplicationId - the application id
ApplicationReportprotected InetSocketAddress getRpcAddress(Configuration config)
YarnRpcAccessorInetSocketAddress where this accessor should connect.
getRpcAddress in class YarnRpcAccessor<ApplicationClientProtocol>config - the yarn configuration
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||