public static void startCache() { try { if (cache.isClosed()) { cache = CacheFactory.create(ds); } } catch (Exception e) { fail("Exception in starting cache due to "+e); e.printStackTrace(); } }
public static void closeCache() { if (gemfirecache != null && !gemfirecache.isClosed()) { gemfirecache.close(); gemfirecache.getDistributedSystem().disconnect(); } }
public static void closeCache() { if (cache != null && !cache.isClosed()) { cache.close(); cache.getDistributedSystem().disconnect(); } }
public static void closeCache() { if (cache != null && !cache.isClosed()) { cache.close(); cache.getDistributedSystem().disconnect(); } }
public static void closeCache() { if (cache != null && !cache.isClosed()) { cache.close(); cache.getDistributedSystem().disconnect(); } } }
public static void closeCache() { check = false; if (cache != null && !cache.isClosed()) { cache.close(); cache.getDistributedSystem().disconnect(); } }
/** * close the server cache * */ public static void closeCacheServer() { if (cacheServer != null && !cacheServer.isClosed()) { cacheServer.close(); cacheServer.getDistributedSystem().disconnect(); } }
public static void closeCache() { if (cache != null && !cache.isClosed()) { cache.close(); cache.getDistributedSystem().disconnect(); } }
public static void closeCache() { if (cache != null && !cache.isClosed()) { cache.close(); cache.getDistributedSystem().disconnect(); } } }
/** * Close the cache * */ public static void closeCache() { if (cache != null && !cache.isClosed()) { cache.close(); cache.getDistributedSystem().disconnect(); } } }
/** * close the cache * */ public static void closeCache() { if (cache != null && !cache.isClosed()) { cache.close(); cache.getDistributedSystem().disconnect(); } }
public static void closeCache() { if (cache != null && !cache.isClosed()) { cache.close(); cache.getDistributedSystem().disconnect(); } }
public static void closeCache() { if (cache != null && !cache.isClosed()) { cache.close(); cache.getDistributedSystem().disconnect(); } }
public static void closeCache() { if (cache != null && !cache.isClosed()) { cache.close(); cache.getDistributedSystem().disconnect(); } }
public static void startCache() { try { if (cache.isClosed()) { cache = new CacheFactory(props).create(); ds = cache.getDistributedSystem(); qs = cache.getQueryService(); } } catch (Exception e) { e.printStackTrace(); } }
protected void tearDown() throws Exception { Cache c = this.cache; DistributedSystem d = this.distSys; if (c != null && !c.isClosed()) { d = c.getDistributedSystem(); c.close(); } if (d != null && d.isConnected()) { d.disconnect(); } }
public static void closeCache() { resetHonourServerGroupsInPRSingleHop(); if (cache != null && !cache.isClosed()) { cache.close(); cache.getDistributedSystem().disconnect(); } }
public void startBeingManagingNode() { Cache existingCache = GemFireCacheImpl.getInstance(); if (existingCache != null && !existingCache.isClosed()) { managementService = ManagementService.getManagementService(existingCache); SystemManagementService service = (SystemManagementService) managementService; service.createManager(); service.startManager(); } }
public Object call() throws Exception { if (getCache() != null && !getCache().isClosed()) { getCache().close(); getCache().getDistributedSystem().disconnect(); } return Boolean.TRUE; } };
public Object call() throws Exception { if (getCache() != null && !getCache().isClosed()) { getCache().close(); getCache().getDistributedSystem().disconnect(); } return Boolean.TRUE; } };