Search in sources :

Example 1 with RefreshNodesResponse

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

the class TestResourceManagerAdministrationProtocolPBClientImpl method testRefreshNodes.

/**
   * Test method refreshNodes. This method is present and it works.
   */
@Test
public void testRefreshNodes() throws Exception {
    resourceManager.getClientRMService();
    RefreshNodesRequest request = RefreshNodesRequest.newInstance(DecommissionType.NORMAL);
    RefreshNodesResponse response = client.refreshNodes(request);
    assertNotNull(response);
}
Also used : RefreshNodesRequest(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshNodesRequest) RefreshNodesResponse(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshNodesResponse) Test(org.junit.Test)

Aggregations

RefreshNodesRequest (org.apache.hadoop.yarn.server.api.protocolrecords.RefreshNodesRequest)1 RefreshNodesResponse (org.apache.hadoop.yarn.server.api.protocolrecords.RefreshNodesResponse)1 Test (org.junit.Test)1