|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.rpc.YarnRpcAccessor<ApplicationMasterProtocol>
org.springframework.yarn.am.AppmasterRmTemplate
public class AppmasterRmTemplate
Template implementation for AppmasterRmOperations wrapping
communication using ApplicationMasterProtocol. Methods for this
template wraps possible exceptions into Spring Dao exception hierarchy.
| Constructor Summary | |
|---|---|
AppmasterRmTemplate(Configuration config)
Instantiates a new AppmasterRmTemplate. |
|
| Method Summary | |
|---|---|
AllocateResponse |
allocate(AllocateRequest request)
Allocate container. |
FinishApplicationMasterResponse |
finish(FinishApplicationMasterRequest request)
Finish the application master. |
protected InetSocketAddress |
getRpcAddress(Configuration config)
Gets the InetSocketAddress where this accessor should connect. |
RegisterApplicationMasterResponse |
registerApplicationMaster(String host,
Integer rpcPort,
String trackUrl)
Register application master. |
| 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 AppmasterRmTemplate(Configuration config)
config - the hadoop configuration| Method Detail |
|---|
public RegisterApplicationMasterResponse registerApplicationMaster(String host,
Integer rpcPort,
String trackUrl)
AppmasterRmOperations
registerApplicationMaster in interface AppmasterRmOperationshost - the hostrpcPort - the rpc porttrackUrl - the track url
RegisterApplicationMasterResponsepublic AllocateResponse allocate(AllocateRequest request)
AppmasterRmOperations
allocate in interface AppmasterRmOperationsrequest - the request
public FinishApplicationMasterResponse finish(FinishApplicationMasterRequest request)
AppmasterRmOperations
finish in interface AppmasterRmOperationsrequest - the FinishApplicationMasterRequest
FinishApplicationMasterResponseprotected InetSocketAddress getRpcAddress(Configuration config)
YarnRpcAccessorInetSocketAddress where this accessor should connect.
getRpcAddress in class YarnRpcAccessor<ApplicationMasterProtocol>config - the yarn configuration
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||