Search in sources :

Example 1 with RefreshClusterMaxPriorityRequest

use of org.apache.hadoop.yarn.server.api.protocolrecords.RefreshClusterMaxPriorityRequest in project hadoop by apache.

the class RMAdminCLI method refreshClusterMaxPriority.

private int refreshClusterMaxPriority() throws IOException, YarnException {
    // Refresh cluster max priority
    ResourceManagerAdministrationProtocol adminProtocol = createAdminProtocol();
    RefreshClusterMaxPriorityRequest request = recordFactory.newRecordInstance(RefreshClusterMaxPriorityRequest.class);
    adminProtocol.refreshClusterMaxPriority(request);
    return 0;
}
Also used : ResourceManagerAdministrationProtocol(org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol) RefreshClusterMaxPriorityRequest(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshClusterMaxPriorityRequest)

Aggregations

ResourceManagerAdministrationProtocol (org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol)1 RefreshClusterMaxPriorityRequest (org.apache.hadoop.yarn.server.api.protocolrecords.RefreshClusterMaxPriorityRequest)1