@Override final public long getLastCommitTime() { // final ReadLock lock = _fieldReadWriteLock.readLock(); // // lock.lock(); // // try { return _rootBlock.getLastCommitTime(); // } finally { // // lock.unlock(); // // } }
@Override final public long getLastCommitTime() { // final ReadLock lock = _fieldReadWriteLock.readLock(); // // lock.lock(); // // try { return _rootBlock.getLastCommitTime(); // } finally { // // lock.unlock(); // // } }
/** * Method verifies that the commit time strictly advances on the local store * by checking against the current root block. * * @param commitTime * The proposed commit time. * * @throws IllegalArgumentException * if the <i>commitTime</i> is LTE the value reported by * {@link IRootBlockView#getLastCommitTime()}. */ protected void assertCommitTimeAdvances(final long commitTime) { if (commitTime <= _rootBlock.getLastCommitTime()) { /* * The commit times must strictly advance. */ throw new IllegalArgumentException(); } }
/** * Method verifies that the commit time strictly advances on the local store * by checking against the current root block. * * @param commitTime * The proposed commit time. * * @throws IllegalArgumentException * if the <i>commitTime</i> is LTE the value reported by * {@link IRootBlockView#getLastCommitTime()}. */ protected void assertCommitTimeAdvances(final long commitTime) { if (commitTime <= _rootBlock.getLastCommitTime()) { /* * The commit times must strictly advance. */ throw new IllegalArgumentException(); } }
/** * The last commit time from the current root block. */ @Override final public long getLastCommitTime() { return journal.getRootBlockView().getLastCommitTime(); }
/** * The last commit time from the current root block. */ @Override final public long getLastCommitTime() { return journal.getRootBlockView().getLastCommitTime(); }
@Override final public long getLastCommitTime() { final L localService = getLocalService(); return localService.getRootBlockView().getLastCommitTime(); }
@Override final public long getLastCommitTime() { final L localService = getLocalService(); return localService.getRootBlockView().getLastCommitTime(); }
/** * Statistics about the {@link IndexSegment}s open in the cache. * * @author <a href="mailto:thompsonbry@users.sourceforge.net">Bryan Thompson</a> */ public static class IndexSegmentStats { public long leafCount; public long leafByteCount; }
/** * Statistics about the {@link IndexSegment}s open in the cache. * * @author <a href="mailto:thompsonbry@users.sourceforge.net">Bryan Thompson</a> */ public static class IndexSegmentStats { public long leafCount; public long leafByteCount; }
data.limit(200 + r.nextInt(1800)); final IHAWriteMessage msg = new HAWriteMessage(storeUUID, rbv .getCommitCounter(), rbv.getLastCommitTime(), sequence++, data.limit(), checker.checksum(data), rbv.getStoreType(), rbv.getQuorumToken(), 1000, 0);
data.limit(200 + r.nextInt(1800)); final IHAWriteMessage msg = new HAWriteMessage(storeUUID, rbv .getCommitCounter(), rbv.getLastCommitTime(), sequence++, data.limit(), checker.checksum(data), rbv.getStoreType(), rbv.getQuorumToken(), 1000, 0);
/** * This scans the {@link DataService}s and reports the most recent value. */ public long getLastCommitTime() { assertOpen(); long maxValue = 0; // check each of the data services. for(int i=0; i<dataService.length; i++) { final long commitTime = dataService[i].getResourceManager() .getLiveJournal().getRootBlockView().getLastCommitTime(); if (commitTime > maxValue) { maxValue = commitTime; } } // and also check the metadata service { final long commitTime = metadataService.getResourceManager() .getLiveJournal().getRootBlockView().getLastCommitTime(); if (commitTime > maxValue) { maxValue = commitTime; } } return maxValue; }
/** * This scans the {@link DataService}s and reports the most recent value. */ public long getLastCommitTime() { assertOpen(); long maxValue = 0; // check each of the data services. for(int i=0; i<dataService.length; i++) { final long commitTime = dataService[i].getResourceManager() .getLiveJournal().getRootBlockView().getLastCommitTime(); if (commitTime > maxValue) { maxValue = commitTime; } } // and also check the metadata service { final long commitTime = metadataService.getResourceManager() .getLiveJournal().getRootBlockView().getLastCommitTime(); if (commitTime > maxValue) { maxValue = commitTime; } } return maxValue; }
openRB.getLastCommitTime(), sequence, size, checker.checksum(data), openRB.getStoreType(), openRB.getQuorumToken(), fileExtent, firstOffset);
openRB.getLastCommitTime(), sequence, size, checker.checksum(data), openRB.getStoreType(), openRB.getQuorumToken(), fileExtent, firstOffset);
rb.getLastCommitTime(), sequence);
rb.getLastCommitTime(), sequence);
: old.getFirstCommitTime()); final long priorCommitTime = old.getLastCommitTime();