List of usage examples for org.apache.hadoop.yarn.api.protocolrecords RegisterApplicationMasterResponse getNMTokensFromPreviousAttempts
@Public @Stable public abstract List<NMToken> getNMTokensFromPreviousAttempts();
From source file:disAMS.AMRMClient.Impl.AMRMClientImpl.java
License:Apache License
private RegisterApplicationMasterResponse registerApplicationMaster() throws YarnException, IOException { RegisterApplicationMasterRequest request = RegisterApplicationMasterRequest.newInstance(this.appHostName, this.appHostPort, this.appTrackingUrl); RegisterApplicationMasterResponse response = rmClient.registerApplicationMaster(request); synchronized (this) { lastResponseId = 0;// w w w . ja v a 2s .c o m if (!response.getNMTokensFromPreviousAttempts().isEmpty()) { populateNMTokens(response.getNMTokensFromPreviousAttempts()); } } return response; }