void addAllToLocalCache(final Map<GMSCacheable, Object> map) { if (map != null && map.size() > 0) { cache.putAll(map); notifyCacheUpdate(); } indicateFirstSyncDone(); logger.log(FINER, "done adding all to Distributed State Cache"); }
void addAllToLocalCache(final Map<GMSCacheable, Object> map) { if (map != null && map.size() > 0) { cache.putAll(map); notifyCacheUpdate(); } indicateFirstSyncDone(); logger.log(FINER, "done adding all to Distributed State Cache"); }
void syncCache(final String memberToken, final boolean isCoordinator) throws GMSException { final ConcurrentHashMap<GMSCacheable, Object> temp; temp = new ConcurrentHashMap<GMSCacheable, Object>(cache); final DSCMessage msg = new DSCMessage(temp, DSCMessage.OPERATION.ADDALLLOCAL.toString(), isCoordinator); if (!memberToken.equals(getGMSContext().getServerIdentityToken())) { if (logger.isLoggable(Level.FINER)) { logger.log(Level.FINER, "Sending sync message from DistributedStateCache to member " + memberToken); } sendMessage(memberToken, msg); } if (isCoordinator) { indicateFirstSyncDone(); } }
void syncCache(final String memberToken, final boolean isCoordinator) throws GMSException { final ConcurrentHashMap<GMSCacheable, Object> temp; temp = new ConcurrentHashMap<GMSCacheable, Object>(cache); final DSCMessage msg = new DSCMessage(temp, DSCMessage.OPERATION.ADDALLLOCAL.toString(), isCoordinator); if (!memberToken.equals(getGMSContext().getServerIdentityToken())) { if (logger.isLoggable(Level.FINER)) { logger.log(Level.FINER, "Sending sync message from DistributedStateCache to member " + memberToken); } sendMessage(memberToken, msg); } if (isCoordinator) { indicateFirstSyncDone(); } }
void syncCache(final PeerID peerID, final boolean isCoordinator) throws GMSException { final ConcurrentHashMap<GMSCacheable, Object> temp; temp = new ConcurrentHashMap<GMSCacheable, Object>(cache); final DSCMessage msg = new DSCMessage(temp, DSCMessage.OPERATION.ADDALLLOCAL.toString(), isCoordinator); if (!peerID.getInstanceName().equals(getGMSContext().getServerIdentityToken())) { if (logger.isLoggable(Level.FINER)) { logger.log(Level.FINER, "Sending sync message from DistributedStateCache to member " + peerID); } boolean result = ((GroupCommunicationProviderImpl)this.ctxRef.get().getGroupCommunicationProvider()).sendMessage(peerID, msg); if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, "synch cache sent result:" + result + " with member:" + peerID.getInstanceName() + " id:" + peerID); } } if (isCoordinator) { indicateFirstSyncDone(); } }
void syncCache(final PeerID peerID, final boolean isCoordinator) throws GMSException { final ConcurrentHashMap<GMSCacheable, Object> temp; temp = new ConcurrentHashMap<GMSCacheable, Object>(cache); final DSCMessage msg = new DSCMessage(temp, DSCMessage.OPERATION.ADDALLLOCAL.toString(), isCoordinator); if (!peerID.getInstanceName().equals(getGMSContext().getServerIdentityToken())) { if (logger.isLoggable(Level.FINER)) { logger.log(Level.FINER, "Sending sync message from DistributedStateCache to member " + peerID); } boolean result = ((GroupCommunicationProviderImpl)this.ctxRef.get().getGroupCommunicationProvider()).sendMessage(peerID, msg); if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, "synch cache sent result:" + result + " with member:" + peerID.getInstanceName() + " id:" + peerID); } } if (isCoordinator) { indicateFirstSyncDone(); } }