org.springframework.yarn.am
Interface AppmasterRmOperations

All Known Implementing Classes:
AppmasterRmTemplate

public interface AppmasterRmOperations

Interface for appmaster to resource manager communication.

Author:
Janne Valkealahti
See Also:
AppmasterRmTemplate, ApplicationMasterProtocol

Method Summary
 AllocateResponse allocate(AllocateRequest request)
          Allocate container.
 FinishApplicationMasterResponse finish(FinishApplicationMasterRequest request)
          Finish the application master.
 RegisterApplicationMasterResponse registerApplicationMaster(String host, Integer rpcPort, String trackUrl)
          Register application master.
 

Method Detail

registerApplicationMaster

RegisterApplicationMasterResponse registerApplicationMaster(String host,
                                                            Integer rpcPort,
                                                            String trackUrl)
Register application master.

Parameters:
host - the host
rpcPort - the rpc port
trackUrl - the track url
Returns:
the RegisterApplicationMasterResponse

allocate

AllocateResponse allocate(AllocateRequest request)
Allocate container.

Parameters:
request - the request
Returns:
the allocate response

finish

FinishApplicationMasterResponse finish(FinishApplicationMasterRequest request)
Finish the application master.

Parameters:
request - the FinishApplicationMasterRequest
Returns:
the FinishApplicationMasterResponse