assert validTxState(false); GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ);
assert validTxState(false); GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ);
assert validTxState(false); GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ);
assert validTxState(false); GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ);
assert validTxState(false); GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ);
GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ);
assert validTxState(false); GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ);
assert validTxState(false); GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ);
assert validTxState(false); GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ);
GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ);
/** * Set sampling flag. * * @param val Sampling flag state or {@code null} to clear sampling state and mark it as "not set". * @return {@code True} if sampling mode was actually changed by this call. * @throws GridException If failed. */ public boolean sampling(Boolean val) throws GridException { if (busyLock.enterBusy()) { try { validTxState(false); GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ); try { Object prev = val != null ? metaCache.put(sampling, val) : metaCache.remove(sampling); tx.commit(); return !F.eq(prev, val); } finally { tx.close(); } } finally { busyLock.leaveBusy(); } } else throw new IllegalStateException("Failed to set sampling flag because Grid is stopping."); }
assert validTxState(false); GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ);
/** * Set sampling flag. * * @param val Sampling flag state or {@code null} to clear sampling state and mark it as "not set". * @return {@code True} if sampling mode was actually changed by this call. * @throws GridException If failed. */ public boolean sampling(Boolean val) throws GridException { if (busyLock.enterBusy()) { try { validTxState(false); GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ); try { Object prev = val != null ? metaCache.put(sampling, val) : metaCache.remove(sampling); tx.commit(); return !F.eq(prev, val); } finally { tx.close(); } } finally { busyLock.leaveBusy(); } } else throw new IllegalStateException("Failed to set sampling flag because Grid is stopping."); }
assert validTxState(false); GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ);
assert fileId != null; GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ);
assert fileId != null; GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ);
GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ);
GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ);
GridCacheTx tx = metaCache.txStart(PESSIMISTIC, REPEATABLE_READ);
log.debug("Update file info [fileId=" + fileId + ", c=" + c + ']'); GridCacheTx tx = metaCache.isLockedByThread(fileId) ? null : metaCache.txStart(PESSIMISTIC, REPEATABLE_READ);