public Long getValue() { return service.getCompletedTasks(); } });
public Long getValue() { return service.getPendingTasks(); } });
/** * Block for @param alloc to be sync'd as necessary, and handle bookkeeping */ public void finishWriteFor(Allocation alloc) { maybeWaitForSync(alloc); written.incrementAndGet(); }
/** * Request sync and wait until the current state is synced. * * Note: If a sync is in progress at the time of this request, the call will return after both it and a cycle * initiated immediately afterwards complete. */ public void syncBlocking() { long requestTime = System.nanoTime(); requestExtraSync(); awaitSyncAt(requestTime, null); }
/** * Shuts down the threads used by the commit log, blocking until completion. */ public void shutdownBlocking() throws InterruptedException { executor.shutdown(); executor.awaitTermination(); segmentManager.shutdown(); segmentManager.awaitTermination(); }
/** * Preempts the CLExecutor, telling to to sync immediately */ public void requestExtraSync() { executor.requestExtraSync(); }
executor.finishWriteFor(alloc); return alloc.getReplayPosition();
CommitLog start() { segmentManager.start(); executor.start(); return this; }
/** * Shuts down the threads used by the commit log, blocking until completion. */ public void shutdownBlocking() throws InterruptedException { executor.shutdown(); executor.awaitTermination(); segmentManager.shutdown(); segmentManager.awaitTermination(); }
/** * Request sync and wait until the current state is synced. * * Note: If a sync is in progress at the time of this request, the call will return after both it and a cycle * initiated immediately afterwards complete. */ public void syncBlocking() { long requestTime = System.nanoTime(); requestExtraSync(); awaitSyncAt(requestTime, null); }
public void shutdown() { shutdown = true; requestExtraSync(); }
executor.finishWriteFor(alloc); return alloc.getCommitLogPosition();
CommitLog start() { segmentManager.start(); executor.start(); return this; }
/** * Shuts down the threads used by the commit log, blocking until completion. */ public void shutdownBlocking() throws InterruptedException { executor.shutdown(); executor.awaitTermination(); allocator.shutdown(); allocator.awaitTermination(); }
/** * Request sync and wait until the current state is synced. * * Note: If a sync is in progress at the time of this request, the call will return after both it and a cycle * initiated immediately afterwards complete. */ public void syncBlocking() { long requestTime = System.nanoTime(); requestExtraSync(); awaitSyncAt(requestTime, null); }
/** * Preempts the CLExecutor, telling to to sync immediately */ public void requestExtraSync() { executor.requestExtraSync(); }
public Long getValue() { return service.getCompletedTasks(); } });
public Long getValue() { return service.getPendingTasks(); } });
/** * Block for @param alloc to be sync'd as necessary, and handle bookkeeping */ public void finishWriteFor(Allocation alloc) { maybeWaitForSync(alloc); written.incrementAndGet(); }
executor.finishWriteFor(alloc); return alloc.getCommitLogPosition();