Search in sources :

Example 1 with RefreshAdminAclsRequest

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

the class TestResourceManagerAdministrationProtocolPBClientImpl method testRefreshAdminAcls.

/**
   * Test method refreshAdminAcls. This method is present and it works.
   */
@Test
public void testRefreshAdminAcls() throws Exception {
    RefreshAdminAclsRequest request = recordFactory.newRecordInstance(RefreshAdminAclsRequest.class);
    RefreshAdminAclsResponse response = client.refreshAdminAcls(request);
    assertNotNull(response);
}
Also used : RefreshAdminAclsRequest(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsRequest) RefreshAdminAclsResponse(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsResponse) Test(org.junit.Test)

Example 2 with RefreshAdminAclsRequest

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

the class RMAdminCLI method refreshAdminAcls.

private int refreshAdminAcls() throws IOException, YarnException {
    // Refresh the admin acls
    ResourceManagerAdministrationProtocol adminProtocol = createAdminProtocol();
    RefreshAdminAclsRequest request = recordFactory.newRecordInstance(RefreshAdminAclsRequest.class);
    adminProtocol.refreshAdminAcls(request);
    return 0;
}
Also used : RefreshAdminAclsRequest(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsRequest) ResourceManagerAdministrationProtocol(org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol)

Aggregations

RefreshAdminAclsRequest (org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsRequest)2 ResourceManagerAdministrationProtocol (org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol)1 RefreshAdminAclsResponse (org.apache.hadoop.yarn.server.api.protocolrecords.RefreshAdminAclsResponse)1 Test (org.junit.Test)1