Search in sources :

Example 1 with RefreshQueuesRequest

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;
}
Also used : ResourceManagerAdministrationProtocol(org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol) RefreshQueuesRequest(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesRequest)

Example 2 with RefreshQueuesRequest

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);
}
Also used : RefreshQueuesRequest(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesRequest) RefreshQueuesResponse(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse) Test(org.junit.Test)

Aggregations

RefreshQueuesRequest (org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesRequest)2 ResourceManagerAdministrationProtocol (org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol)1 RefreshQueuesResponse (org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse)1 Test (org.junit.Test)1