@Override public String getPool() { return serviceSelector.getPool(); }
@Override public String getPool() { return serviceSelector.getPool(); }
@Override public String getPool() { return selector.getPool(); }
@Override public String getPool() { return serviceSelector.getPool(); }
@Override public String getPool() { return selector.getPool(); }
private void assertCanCreateServiceSelector(Injector injector, String expectedType, String expectedPool) { ServiceSelector actualServiceSelector = injector.getInstance(Key.get(ServiceSelector.class, serviceType(expectedType))); assertNotNull(actualServiceSelector); assertEquals(actualServiceSelector.getType(), expectedType); assertEquals(actualServiceSelector.getPool(), expectedPool); }
private void assertCanCreateServiceSelector(Injector injector, String expectedType, String expectedPool) { ServiceSelector actualServiceSelector = injector.getInstance(Key.get(ServiceSelector.class, serviceType(expectedType))); assertNotNull(actualServiceSelector); assertEquals(actualServiceSelector.getType(), expectedType); assertEquals(actualServiceSelector.getPool(), expectedPool); }
private void assertCanCreateServiceSelector(Injector injector, String expectedType, String expectedPool) { ServiceSelector actualServiceSelector = injector.getInstance(Key.get(ServiceSelector.class, serviceType(expectedType))); Assert.assertNotNull(actualServiceSelector); Assert.assertEquals(actualServiceSelector.getType(), expectedType); Assert.assertEquals(actualServiceSelector.getPool(), expectedPool); }
throw lastException; throw new SQLException(format("No PostgreSQL servers of type '%s' available in pool '%s'", serviceSelector.getType(), serviceSelector.getPool()));
throw lastException; throw new SQLException(format("No PostgreSQL servers of type '%s' available in pool '%s'", serviceSelector.getType(), serviceSelector.getPool()));
throw lastException; throw new SQLException(String.format("No mysql servers of type '%s' available in pool '%s'", serviceSelector.getType(), serviceSelector.getPool()));
throw lastException; throw new SQLException(String.format("No mysql servers of type '%s' available in pool '%s'", serviceSelector.getType(), serviceSelector.getPool()));