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, AMRMProtocol

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(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId, 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(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
                                                                                                       java.lang.String host,
                                                                                                       java.lang.Integer rpcPort,
                                                                                                       java.lang.String trackUrl)
Register application master.

Parameters:
appAttemptId - the app attempt id
host - the host
rpcPort - the rpc port
trackUrl - the track url
Returns:
the register application master response

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 request
Returns:
the finish application master response

Spring for Apache Hadoop