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);
}
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;
}
Aggregations