private Pool getDefaultPool() { return getCache().getDefaultPool(); }
@Override public Execution onServer(RegionService regionService, String... groups) { if (regionService == null) { throw new FunctionException(String.format("%s passed is null", "RegionService instance ")); } if (regionService instanceof GemFireCacheImpl) { InternalClientCache internalCache = (InternalClientCache) regionService; if (!internalCache.isClient()) { throw new FunctionException("The cache was not a client cache"); } else if (internalCache.getDefaultPool() != null) { return onServer(internalCache.getDefaultPool(), groups); } else { throw new FunctionException("The client cache does not have a default pool"); } } else { ProxyCache proxyCache = (ProxyCache) regionService; return new ServerFunctionExecutor(proxyCache.getUserAttributes().getPool(), false, proxyCache, groups); } }
@Override public Execution onServers(RegionService regionService, String... groups) { if (regionService == null) { throw new FunctionException(String.format("%s passed is null", "RegionService instance ")); } if (regionService instanceof GemFireCacheImpl) { InternalClientCache internalCache = (InternalClientCache) regionService; if (!internalCache.isClient()) { throw new FunctionException("The cache was not a client cache"); } else if (internalCache.getDefaultPool() != null) { return onServers(internalCache.getDefaultPool(), groups); } else { throw new FunctionException("The client cache does not have a default pool"); } } else { ProxyCache proxyCache = (ProxyCache) regionService; return new ServerFunctionExecutor(proxyCache.getUserAttributes().getPool(), true, proxyCache, groups); } }
if (cache instanceof GemFireCacheImpl) { InternalClientCache gfc = (InternalClientCache) cache; if (gfc.getDefaultPool() != null) { defaultPoolName = gfc.getDefaultPool().getName(); if (cache instanceof GemFireCacheImpl) { InternalClientCache gfc = (InternalClientCache) cache; if (gfc.getDefaultPool() != null) { defaultPoolName = gfc.getDefaultPool().getName();