HSAdminServer extends AbstractService implements HSAdminProtocol { @Override public void refreshLogRetentionSettings() throws IOException { UserGroupInformation user = checkAcls("refreshLogRetentionSettings"); try { loginUGI.doAs(new PrivilegedExceptionAction<Void>() { @Override public Void run() throws IOException { aggLogDelService.refreshLogRetentionSettings(); return null; } }); } catch (InterruptedException e) { throw new IOException(e); } HSAuditLogger.logSuccess(user.getShortUserName(), "refreshLogRetentionSettings", "HSAdminServer"); } HSAdminServer(AggregatedLogDeletionService aggLogDelService,
      JobHistory jobHistoryService); @Override void serviceInit(Configuration conf); @Override String[] getGroupsForUser(String user); @Override void refreshUserToGroupsMappings(); @Override void refreshSuperUserGroupsConfiguration(); @Override void refreshAdminAcls(); @Override void refreshLoadedJobCache(); @Override void refreshLogRetentionSettings(); @Override void refreshJobRetentionSettings();  }
@Test public void testRefreshLogRetentionSettings() throws Exception { String[] args = new String[1]; args[0] = "-refreshLogRetentionSettings"; hsAdminClient.run(args); verify(alds).refreshLogRetentionSettings(); }