@Override public void init(String serviceName, String appId, String configPropertyPrefix) { if (LOG.isDebugEnabled()) { LOG.debug("==> RangerAdminJersey2RESTClient.init(" + configPropertyPrefix + ")"); } _serviceName = serviceName; _pluginId = _utils.getPluginId(serviceName, appId); _baseUrl = _utils.getPolicyRestUrl(configPropertyPrefix); _sslConfigFileName = _utils.getSsslConfigFileName(configPropertyPrefix); _isSSL = _utils.isSsl(_baseUrl); _restClientConnTimeOutMs = RangerConfiguration.getInstance() .getInt(configPropertyPrefix + ".policy.rest.client.connection.timeoutMs", 120 * 1000); _restClientReadTimeOutMs = RangerConfiguration.getInstance() .getInt(configPropertyPrefix + ".policy.rest.client.read.timeoutMs", 30 * 1000); LOG.info( "Init params: " + String.format( "Base URL[%s], SSL Congig filename[%s], ServiceName=[%s]", _baseUrl, _sslConfigFileName, _serviceName)); _client = getClient(); _client.property(ClientProperties.CONNECT_TIMEOUT, _restClientConnTimeOutMs); _client.property(ClientProperties.READ_TIMEOUT, _restClientReadTimeOutMs); if (LOG.isDebugEnabled()) { LOG.debug( "<== RangerAdminJersey2RESTClient.init(" + configPropertyPrefix + "): " + _client.toString()); } }