/** * Returns the underlying <code>InternalDistributedSystem</code> connection. * @return the underlying <code>InternalDistributedSystem</code> */ public InternalDistributedSystem getSystem() { return (InternalDistributedSystem)this.cache.getDistributedSystem(); }
public CachePerfStats getCachePerfStats() { return new CachePerfStats(cache.getDistributedSystem(), META_DATA_REGION_NAME); } };
public CachePerfStats getCachePerfStats() { return new CachePerfStats(cache.getDistributedSystem(), "partitionMetaData"); } };
/** * Returns a set of all the members of the distributed system for the given groups. */ public static Set<DistributedMember> getDistributedMembersByGroup(Cache cache, String[] groups) { Set<DistributedMember> groupMembers = new HashSet<DistributedMember>(); for(String group : groups){ groupMembers.addAll(((InternalDistributedSystem)cache.getDistributedSystem()).getDistributionManager().getGroupMembers(group)); } return groupMembers; }
protected void deliverInterestChange(ClientProxyMembershipID proxyID, ClientInterestMessageImpl message) { DM dm = ((InternalDistributedSystem)this.getCache() .getDistributedSystem()).getDistributionManager(); ServerInterestRegistrationMessage.sendInterestChange(dm, proxyID, message); }
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() { 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(); } }
/** * 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 startCache() { try { if (cache.isClosed()) { cache = new CacheFactory(props).create(); ds = cache.getDistributedSystem(); qs = cache.getQueryService(); } } catch (Exception e) { e.printStackTrace(); } }
public static ReliableReplyProcessor21 send(Cache cache, int txUniqId,InternalDistributedMember onBehalfOfClientMember, DistributedMember recipient) { final InternalDistributedSystem system = (InternalDistributedSystem)cache.getDistributedSystem(); final Set recipients = Collections.singleton(recipient); ReliableReplyProcessor21 response = new ReliableReplyProcessor21(system, recipients); TXRemoteRollbackMessage msg = new TXRemoteRollbackMessage(txUniqId,onBehalfOfClientMember, response); msg.setRecipients(recipients); system.getDistributionManager().putOutgoing(msg); return response; }
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(); } }
private Execution getExecutionObject() { DistributedSystem ds = cache.getDistributedSystem(); InternalDistributedMember localVM = ((InternalDistributedSystem) ds) .getDistributionManager().getDistributionManagerId(); if (region == null) return FunctionService.onMembers(ds); else return FunctionService.onRegion(region); // TODO Add more types!!! }
public static void printGatewayStatus() { DistributedSystem disSys = CacheHelper.getCache().getDistributedSystem(); Cache cache = CacheHelper.getCache(); GemFireMemberStatus status = new GemFireMemberStatus(cache); logger.info("RecycleSystem::restartgatewayCache:Status = " + status.toString()); int sleepSecs = restart(); try { Thread.sleep(sleepSecs*1000); } catch(Exception e) { logger.warning(e.getMessage()); } }
public void updateCqCreateStats() { // Initialize the VSD statistics StatisticsFactory factory = cqService.getCache().getDistributedSystem(); this.stats = new CqQueryVsdStats(factory, this.serverCqName); this.cqStats = new CqStatisticsImpl(this); // Update statistics with CQ creation. this.cqService.stats.incCqsStopped(); this.cqService.stats.incCqsCreated(); this.cqService.stats.incCqsOnClient(); }
public Object call() throws Exception { if (getCache() != null && !getCache().isClosed()) { getCache().close(); getCache().getDistributedSystem().disconnect(); } return Boolean.TRUE; } };
public Object call() throws Exception { getCache().getLogger().info("Cache close in progress "); getCache().close(); getCache().getDistributedSystem().disconnect(); getCache().getLogger().info("Cache closed"); return null; } });