@Override public File getFile() { return delegate.getFile(); }
@Override public File getFile() { return delegate.getFile(); }
/** * Assert that the store is open. * <p> * Note: You can see an {@link IllegalStateException} thrown out of here if * there are tasks running during {@link #shutdown()} and one of the various * task services times out while awaiting termination. Such exceptions are * normal since the store was closed asynchronously while task(s) were still * running. * * @exception IllegalStateException * if the store is closed. */ protected void assertOpen() { if (_bufferStrategy != null && !_bufferStrategy.isOpen()) { throw new IllegalStateException((getFile()==null?"transient":"file=" + getFile())); } }
@Override public void sample() { final AbstractJournal jnl = ref.get(); if (jnl != null) { final File file = jnl.getFile(); if (file != null) setValue(file.toString()); } } });
/** * Assert that the store is open. * <p> * Note: You can see an {@link IllegalStateException} thrown out of here if * there are tasks running during {@link #shutdown()} and one of the various * task services times out while awaiting termination. Such exceptions are * normal since the store was closed asynchronously while task(s) were still * running. * * @exception IllegalStateException * if the store is closed. */ protected void assertOpen() { if (_bufferStrategy != null && !_bufferStrategy.isOpen()) { throw new IllegalStateException((getFile()==null?"transient":"file=" + getFile())); } }
@Override public void sample() { final AbstractJournal jnl = ref.get(); if (jnl != null) { final File file = jnl.getFile(); if (file != null) setValue(file.toString()); } } });
/** * Closes out the journal iff it is still open. */ @Override protected void finalize() throws Throwable { if (_bufferStrategy.isOpen()) { if (log.isInfoEnabled()) log.info("Closing journal: " + getFile()); shutdownNow(); } }
/** * Closes out the journal iff it is still open. */ @Override protected void finalize() throws Throwable { if (_bufferStrategy.isOpen()) { if (log.isInfoEnabled()) log.info("Closing journal: " + getFile()); shutdownNow(); } }
assertTrue(new File(journalsDir, journal.getFile().getName()) .exists());
assertTrue(new File(journalsDir, journal.getFile().getName()) .exists());
+ lastCommitTime + "\nfile=" + oldJournal.getFile() + "\npre-condition views: synchronousOverflowCounter=" + getSynchronousOverflowCount()
+ lastCommitTime + "\nfile=" + oldJournal.getFile() + "\npre-condition views: synchronousOverflowCounter=" + getSynchronousOverflowCount()