/** * Callback invoked when caches info is collected inside cache processor start routine. Discovery is not * active at this point. */ public void onCachesInfoCollected() { if (!srv) return; synchronized (mux) { // Process top pending requests. for (CacheGroupDescriptor grpDesc : cacheProcessor().cacheGroupDescriptors().values()) { WalStateProposeMessage msg = grpDesc.nextWalChangeRequest(); if (msg != null) { if (log.isDebugEnabled()) log.debug("Processing WAL state message on start: " + msg); boolean enabled = grpDesc.walEnabled(); WalStateResult res; if (F.eq(enabled, msg.enable())) res = new WalStateResult(msg, false); else { res = new WalStateResult(msg, true); grpDesc.walEnabled(!enabled); } initialRess.add(res); addResult(res); } } } }
WalStateProposeMessage oldProposeMsg = grpDesc.nextWalChangeRequest(); WalStateProposeMessage nextProposeMsg = grpDesc.nextWalChangeRequest();
/** * Callback invoked when caches info is collected inside cache processor start routine. Discovery is not * active at this point. */ public void onCachesInfoCollected() { if (!srv) return; synchronized (mux) { // Process top pending requests. for (CacheGroupDescriptor grpDesc : cacheProcessor().cacheGroupDescriptors().values()) { WalStateProposeMessage msg = grpDesc.nextWalChangeRequest(); if (msg != null) { if (log.isDebugEnabled()) log.debug("Processing WAL state message on start: " + msg); boolean enabled = grpDesc.walEnabled(); WalStateResult res; if (F.eq(enabled, msg.enable())) res = new WalStateResult(msg, false); else { res = new WalStateResult(msg, true); grpDesc.walEnabled(!enabled); } initialRess.add(res); addResult(res); } } } }
WalStateProposeMessage oldProposeMsg = grpDesc.nextWalChangeRequest(); WalStateProposeMessage nextProposeMsg = grpDesc.nextWalChangeRequest();