use of org.apache.hadoop.yarn.server.api.protocolrecords.RefreshServiceAclsRequest in project hadoop by apache.
the class RMAdminCLI method refreshServiceAcls.
private int refreshServiceAcls() throws IOException, YarnException {
// Refresh the service acls
ResourceManagerAdministrationProtocol adminProtocol = createAdminProtocol();
RefreshServiceAclsRequest request = recordFactory.newRecordInstance(RefreshServiceAclsRequest.class);
adminProtocol.refreshServiceAcls(request);
return 0;
}
use of org.apache.hadoop.yarn.server.api.protocolrecords.RefreshServiceAclsRequest in project hadoop by apache.
the class TestResourceManagerAdministrationProtocolPBClientImpl method testRefreshServiceAcls.
@Test
public void testRefreshServiceAcls() throws Exception {
RefreshServiceAclsRequest request = recordFactory.newRecordInstance(RefreshServiceAclsRequest.class);
RefreshServiceAclsResponse response = client.refreshServiceAcls(request);
assertNotNull(response);
}
Aggregations