use of org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesRequest in project hadoop by apache.
the class RMAdminCLI method refreshQueues.
private int refreshQueues() throws IOException, YarnException {
// Refresh the queue properties
ResourceManagerAdministrationProtocol adminProtocol = createAdminProtocol();
RefreshQueuesRequest request = recordFactory.newRecordInstance(RefreshQueuesRequest.class);
adminProtocol.refreshQueues(request);
return 0;
}
use of org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesRequest in project hadoop by apache.
the class TestResourceManagerAdministrationProtocolPBClientImpl method testRefreshQueues.
/**
* Test method refreshQueues. This method is present and it works.
*/
@Test
public void testRefreshQueues() throws Exception {
RefreshQueuesRequest request = recordFactory.newRecordInstance(RefreshQueuesRequest.class);
RefreshQueuesResponse response = client.refreshQueues(request);
assertNotNull(response);
}
Aggregations