@Override public RegionService createAuthenticatedView(Properties userSecurityProperties) { Pool pool = getDefaultPool(); if (pool == null) { throw new IllegalStateException("This cache does not have a default pool"); } return createAuthenticatedCacheView(pool, userSecurityProperties); }
@Override public InternalQueryService getQueryService() { if (!isClient()) { return new DefaultQueryService(this); } Pool defaultPool = getDefaultPool(); if (defaultPool == null) { throw new IllegalStateException( "Client cache does not have a default pool. Use getQueryService(String poolName) instead."); } return (InternalQueryService) defaultPool.getQueryService(); }
ClientCache cc = (ClientCache) cache; cc.createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY).create(regionName); pool = (PoolImpl) ((GemFireCacheImpl) cc).getDefaultPool();