private void loadPageFile() throws IOException { this.indexLock.writeLock().lock(); try { final PageFile pageFile = getPageFile(); pageFile.load(); pageFile.tx().execute(new Transaction.Closure<IOException>() {
public void load() throws IOException { this.indexLock.writeLock().lock(); try { IOHelper.mkdirs(directory); if (deleteAllMessages) { getJournal().setCheckForCorruptionOnStartup(false); getJournal().start(); getJournal().delete(); getJournal().close(); journal = null; getPageFile().delete(); LOG.info("Persistence store purged."); deleteAllMessages = false; } open(); store(new KahaTraceCommand().setMessage("LOADED " + new Date())); } finally { this.indexLock.writeLock().unlock(); } }
private void loadPageFile() throws IOException { this.indexLock.writeLock().lock(); try { final PageFile pageFile = getPageFile(); pageFile.load(); pageFile.tx().execute(new Transaction.Closure<IOException>() {
private void loadPageFile() throws IOException { this.indexLock.writeLock().lock(); try { final PageFile pageFile = getPageFile(); pageFile.load(); pageFile.tx().execute(new Transaction.Closure<IOException>() {
private void loadPageFile() throws IOException { this.indexLock.writeLock().lock(); try { final PageFile pageFile = getPageFile(); pageFile.load(); pageFile.tx().execute(new Transaction.Closure<IOException>() {
public void load() throws IOException { this.indexLock.writeLock().lock(); try { lock(); if (deleteAllMessages) { getJournal().start(); getJournal().delete(); getJournal().close(); journal = null; getPageFile().delete(); LOG.info("Persistence store purged."); deleteAllMessages = false; } open(); store(new KahaTraceCommand().setMessage("LOADED " + new Date())); }finally { this.indexLock.writeLock().unlock(); } }
private void loadPageFile() throws IOException { this.indexLock.writeLock().lock(); try { final PageFile pageFile = getPageFile(); pageFile.load(); pageFile.tx().execute(new Transaction.Closure<IOException>() {
public void load() throws IOException { this.indexLock.writeLock().lock(); try { IOHelper.mkdirs(directory); if (deleteAllMessages) { getJournal().setCheckForCorruptionOnStartup(false); getJournal().start(); getJournal().delete(); getJournal().close(); journal = null; getPageFile().delete(); LOG.info("Persistence store purged."); deleteAllMessages = false; } open(); store(new KahaTraceCommand().setMessage("LOADED " + new Date())); } finally { this.indexLock.writeLock().unlock(); } }
public void load() throws IOException { this.indexLock.writeLock().lock(); try { IOHelper.mkdirs(directory); if (deleteAllMessages) { getJournal().setCheckForCorruptionOnStartup(false); getJournal().start(); getJournal().delete(); getJournal().close(); journal = null; getPageFile().delete(); LOG.info("Persistence store purged."); deleteAllMessages = false; } open(); store(new KahaTraceCommand().setMessage("LOADED " + new Date())); } finally { this.indexLock.writeLock().unlock(); } }
public void load() throws IOException { this.indexLock.writeLock().lock(); try { IOHelper.mkdirs(directory); if (deleteAllMessages) { getJournal().setCheckForCorruptionOnStartup(false); getJournal().start(); getJournal().delete(); getJournal().close(); journal = null; getPageFile().delete(); LOG.info("Persistence store purged."); deleteAllMessages = false; } open(); store(new KahaTraceCommand().setMessage("LOADED " + new Date())); } finally { this.indexLock.writeLock().unlock(); } }