@Override public PhoenixTransactionClient getTransactionClient(Configuration config, ConnectionInfo connectionInfo) { if (connectionInfo.isConnectionless()) { TransactionManager txnManager = new TransactionManager(config); TransactionSystemClient txClient = new InMemoryTxSystemClient(txnManager);
if (!isConnectionless()) { boolean credsProvidedInUrl = null != principal && null != keytab; boolean credsProvidedInProps = info.containsKey(QueryServices.HBASE_CLIENT_PRINCIPAL) && info.containsKey(QueryServices.HBASE_CLIENT_KEYTAB);
@Override public PhoenixTransactionClient getTransactionClient(Configuration config, ConnectionInfo connectionInfo) { if (connectionInfo.isConnectionless()) { TransactionManager txnManager = new TransactionManager(config); TransactionSystemClient txClient = new InMemoryTxSystemClient(txnManager);
if (!isConnectionless()) { boolean credsProvidedInUrl = null != principal && null != keytab; boolean credsProvidedInProps = info.containsKey(QueryServices.HBASE_CLIENT_PRINCIPAL) && info.containsKey(QueryServices.HBASE_CLIENT_KEYTAB);
if (!isConnectionless()) { boolean credsProvidedInUrl = null != principal && null != keytab; boolean credsProvidedInProps = info.containsKey(QueryServices.HBASE_CLIENT_PRINCIPAL) && info.containsKey(QueryServices.HBASE_CLIENT_KEYTAB);
@Override public PhoenixTransactionClient getTransactionClient(Configuration config, ConnectionInfo connectionInfo) { if (connectionInfo.isConnectionless()) { TransactionManager txnManager = new TransactionManager(config); TransactionSystemClient txClient = new InMemoryTxSystemClient(txnManager);
@Override public ConnectionQueryServices call() throws Exception { ConnectionQueryServices connectionQueryServices; if (normalizedConnInfo.isConnectionless()) { connectionQueryServices = new ConnectionlessQueryServicesImpl(services, normalizedConnInfo, info); } else { connectionQueryServices = new ConnectionQueryServicesImpl(services, normalizedConnInfo, info); } return connectionQueryServices; } });
@Override public ConnectionQueryServices call() throws Exception { ConnectionQueryServices connectionQueryServices; if (normalizedConnInfo.isConnectionless()) { connectionQueryServices = new ConnectionlessQueryServicesImpl(services, normalizedConnInfo, info); } else { connectionQueryServices = new ConnectionQueryServicesImpl(services, normalizedConnInfo, info); } return connectionQueryServices; } });
@Override // public for testing public synchronized ConnectionQueryServices getConnectionQueryServices(String url, Properties info) throws SQLException { checkClosed(); if (connectionQueryServices != null) { return connectionQueryServices; } ConnectionInfo connInfo = ConnectionInfo.create(url); if (connInfo.isConnectionless()) { connectionQueryServices = new ConnectionlessQueryServicesImpl(queryServices, connInfo, info); } else { connectionQueryServices = new ConnectionQueryServicesTestImpl(queryServices, connInfo, info); } connectionQueryServices.init(url, info); return connectionQueryServices; }
@Override public ConnectionQueryServices call() throws Exception { ConnectionQueryServices connectionQueryServices; if (normalizedConnInfo.isConnectionless()) { connectionQueryServices = new ConnectionlessQueryServicesImpl(services, normalizedConnInfo, info); } else { connectionQueryServices = new ConnectionQueryServicesImpl(services, normalizedConnInfo, info); } return connectionQueryServices; } });