private static Collection<Pool> getAllPools() { Collection<Pool> pools = PoolManagerImpl.getPMI().getMap().values(); for (Iterator<Pool> itr = pools.iterator(); itr.hasNext();) { PoolImpl pool = (PoolImpl) itr.next(); if (pool.isUsedByGateway()) { itr.remove(); } } return pools; }
private Collection<Pool> getAllPools() { Collection<Pool> pools = PoolManagerImpl.getPMI().getMap().values(); for (Iterator<Pool> itr = pools.iterator(); itr.hasNext();) { PoolImpl pool = (PoolImpl) itr.next(); if (pool.isUsedByGateway()) { itr.remove(); } } if (pools.isEmpty()) { if (this.cache.isClosed()) { throw cache.getCacheClosedException("PDX detected cache was closed"); } throw cache.getCacheClosedException( "Client pools have been closed so the PDX type registry is not available."); } return pools; }
void verifyConfiguration() { if (typeRegistryInUse) { return; } else { checkAllowed(hasGatewaySender(), this.cache.hasPersistentRegion()); for (Pool pool : PoolManager.getAll().values()) { if (!((PoolImpl) pool).isUsedByGateway()) { throw new PdxInitializationException( "The PDX metadata has already been " + "created as a peer metadata region. " + "Please use ClientCacheFactory to create clients."); } } typeRegistryInUse = true; } }
private void authenticateIfRequired(Connection conn) { cancelCriterion.checkCancelInProgress(null); if (!pool.isUsedByGateway() && !pool.getMultiuserAuthentication()) { ServerLocation server = conn.getServer(); if (server.getRequiresCredentials()) { if (server.getUserId() == -1) { Long uniqueID = (Long) AuthenticateUserOp.executeOn(conn, pool); server.setUserId(uniqueID); if (logger.isDebugEnabled()) { logger.debug("CFI.authenticateIfRequired() Completed authentication on {}", conn); } } } } }
return; if (((PoolImpl) cp).isUsedByGateway()) {
if (((PoolImpl) cp).isUsedByGateway()) { m1Size--; if (((PoolImpl) cp).isUsedByGateway()) { m2Size--; PoolImpl poolImpl = (PoolImpl) pool; if (!poolImpl.isUsedByGateway()) { poolImpl.sameAs(m2.get(poolImpl.getName()));