use of org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse 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);
}
use of org.apache.hadoop.yarn.server.api.protocolrecords.RefreshQueuesResponse in project hadoop by apache.
the class AdminService method refreshQueues.
@Override
public RefreshQueuesResponse refreshQueues(RefreshQueuesRequest request) throws YarnException, StandbyException {
final String operation = "refreshQueues";
final String msg = "refresh queues.";
UserGroupInformation user = checkAcls(operation);
checkRMStatus(user.getShortUserName(), operation, msg);
RefreshQueuesResponse response = recordFactory.newRecordInstance(RefreshQueuesResponse.class);
try {
refreshQueues();
RMAuditLogger.logSuccess(user.getShortUserName(), operation, "AdminService");
return response;
} catch (IOException ioe) {
throw logAndWrapException(ioe, user.getShortUserName(), operation, msg);
}
}
Aggregations