@Override public RefreshLogRetentionSettingsResponseProto refreshLogRetentionSettings( RpcController controller, RefreshLogRetentionSettingsRequestProto request) throws ServiceException { try { impl.refreshLogRetentionSettings(); } catch (IOException e) { throw new ServiceException(e); } return VOID_REFRESH_LOG_RETENTION_SETTINGS_RESPONSE; } }
@Override public RefreshLogRetentionSettingsResponseProto refreshLogRetentionSettings( RpcController controller, RefreshLogRetentionSettingsRequestProto request) throws ServiceException { try { impl.refreshLogRetentionSettings(); } catch (IOException e) { throw new ServiceException(e); } return VOID_REFRESH_LOG_RETENTION_SETTINGS_RESPONSE; } }
@Override public RefreshLogRetentionSettingsResponseProto refreshLogRetentionSettings( RpcController controller, RefreshLogRetentionSettingsRequestProto request) throws ServiceException { try { impl.refreshLogRetentionSettings(); } catch (IOException e) { throw new ServiceException(e); } return VOID_REFRESH_LOG_RETENTION_SETTINGS_RESPONSE; } }
private int refreshLogRetentionSettings() throws IOException { // Refresh log retention settings Configuration conf = getConf(); InetSocketAddress address = conf.getSocketAddr( JHAdminConfig.JHS_ADMIN_ADDRESS, JHAdminConfig.DEFAULT_JHS_ADMIN_ADDRESS, JHAdminConfig.DEFAULT_JHS_ADMIN_PORT); HSAdminRefreshProtocol refreshProtocol = HSProxies.createProxy(conf, address, HSAdminRefreshProtocol.class, UserGroupInformation.getCurrentUser()); refreshProtocol.refreshLogRetentionSettings(); return 0; }
private int refreshLogRetentionSettings() throws IOException { // Refresh log retention settings Configuration conf = getConf(); InetSocketAddress address = conf.getSocketAddr( JHAdminConfig.JHS_ADMIN_ADDRESS, JHAdminConfig.DEFAULT_JHS_ADMIN_ADDRESS, JHAdminConfig.DEFAULT_JHS_ADMIN_PORT); HSAdminRefreshProtocol refreshProtocol = HSProxies.createProxy(conf, address, HSAdminRefreshProtocol.class, UserGroupInformation.getCurrentUser()); refreshProtocol.refreshLogRetentionSettings(); return 0; }
private int refreshLogRetentionSettings() throws IOException { // Refresh log retention settings Configuration conf = getConf(); InetSocketAddress address = conf.getSocketAddr( JHAdminConfig.JHS_ADMIN_ADDRESS, JHAdminConfig.DEFAULT_JHS_ADMIN_ADDRESS, JHAdminConfig.DEFAULT_JHS_ADMIN_PORT); HSAdminRefreshProtocol refreshProtocol = HSProxies.createProxy(conf, address, HSAdminRefreshProtocol.class, UserGroupInformation.getCurrentUser()); refreshProtocol.refreshLogRetentionSettings(); return 0; }