Spring for Apache Hadoop

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
 org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse allocate(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest request)
          Allocate container.
 org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterResponse finish(org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest request)
          Finish the application master.
 org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse registerApplicationMaster(java.lang.String host, java.lang.Integer rpcPort, java.lang.String trackUrl)
          Register application master.
 

Method Detail

registerApplicationMaster

org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse registerApplicationMaster(java.lang.String host,
                                                                                                       java.lang.Integer rpcPort,
                                                                                                       java.lang.String trackUrl)
Register application master.

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

allocate

org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse allocate(org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest request)
Allocate container.

Parameters:
request - the request
Returns:
the allocate response

finish

org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterResponse finish(org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationMasterRequest request)
Finish the application master.

Parameters:
request - the FinishApplicationMasterRequest
Returns:
the FinishApplicationMasterResponse

Spring for Apache Hadoop