@Override public void onRemoval(RemovalNotification<ConnectionInfo, ConnectionQueryServices> notification) { String connInfoIdentifier = notification.getKey().toString(); logger.debug("Expiring " + connInfoIdentifier + " because of " + notification.getCause().name()); try { notification.getValue().close(); } catch (SQLException se) { logger.error("Error while closing expired cache connection " + connInfoIdentifier, se); } } };
if (zookeeperQuorum == null) { throw new SQLExceptionInfo.Builder(SQLExceptionCode.MALFORMED_CONNECTION_URL) .setMessage(this.toString()).build().buildException(); } catch (NumberFormatException e) { throw new SQLExceptionInfo.Builder(SQLExceptionCode.MALFORMED_CONNECTION_URL) .setMessage(this.toString()).build().buildException(); .setMessage("Port may not be specified when using the connectionless url \"" + this.toString() + "\"").build().buildException(); .setMessage("Root node may not be specified when using the connectionless url \"" + this.toString() + "\"").build().buildException();
@Override public void onRemoval(RemovalNotification<ConnectionInfo, ConnectionQueryServices> notification) { String connInfoIdentifier = notification.getKey().toString(); logger.debug("Expiring " + connInfoIdentifier + " because of " + notification.getCause().name()); try { notification.getValue().close(); } catch (SQLException se) { logger.error("Error while closing expired cache connection " + connInfoIdentifier, se); } } };
if (zookeeperQuorum == null) { throw new SQLExceptionInfo.Builder(SQLExceptionCode.MALFORMED_CONNECTION_URL) .setMessage(this.toString()).build().buildException(); } catch (NumberFormatException e) { throw new SQLExceptionInfo.Builder(SQLExceptionCode.MALFORMED_CONNECTION_URL) .setMessage(this.toString()).build().buildException(); .setMessage("Port may not be specified when using the connectionless url \"" + this.toString() + "\"").build().buildException(); .setMessage("Root node may not be specified when using the connectionless url \"" + this.toString() + "\"").build().buildException();
if (zookeeperQuorum == null) { throw new SQLExceptionInfo.Builder(SQLExceptionCode.MALFORMED_CONNECTION_URL) .setMessage(this.toString()).build().buildException(); } catch (NumberFormatException e) { throw new SQLExceptionInfo.Builder(SQLExceptionCode.MALFORMED_CONNECTION_URL) .setMessage(this.toString()).build().buildException(); .setMessage("Port may not be specified when using the connectionless url \"" + this.toString() + "\"").build().buildException(); .setMessage("Root node may not be specified when using the connectionless url \"" + this.toString() + "\"").build().buildException();
@Override public void onRemoval(RemovalNotification<ConnectionInfo, ConnectionQueryServices> notification) { String connInfoIdentifier = notification.getKey().toString(); logger.debug("Expiring " + connInfoIdentifier + " because of " + notification.getCause().name()); try { notification.getValue().close(); } catch (SQLException se) { logger.error("Error while closing expired cache connection " + connInfoIdentifier, se); } } };
public String toUrl() { return PhoenixRuntime.JDBC_PROTOCOL + PhoenixRuntime.JDBC_PROTOCOL_SEPARATOR + toString(); }
public String toUrl() { return PhoenixRuntime.JDBC_PROTOCOL + PhoenixRuntime.JDBC_PROTOCOL_SEPARATOR + toString(); }
public String toUrl() { return PhoenixRuntime.JDBC_PROTOCOL + PhoenixRuntime.JDBC_PROTOCOL_SEPARATOR + toString(); }