@Override public Void call() throws Exception { try { AbstractApiTask.submitApiTask( indexManager, new CreateKBTask(namespace, ((Journal) indexManager) .getProperties())).get(); created.set(true); return null; // Done. } catch (Throwable t) { log.error(t, t); throw new RuntimeException(t); } }
final Properties p = indexManager.getProperties();
final Properties p = indexManager.getProperties();
/** * Create the output journal. * * @return The output journal. */ protected Journal createJournal() { // default properties from the source journal. final Properties p = oldJournal.getProperties(); // set the file for the new journal. p.setProperty(Options.FILE, outFile.getAbsolutePath()); if (p.getProperty(Options.CREATE_TEMP_FILE) != null) { // make sure that this property is turned off. p.setProperty(Options.CREATE_TEMP_FILE, "false"); } if (p.getProperty(Options.BUFFER_MODE) != null) { BufferMode bufferMode = BufferMode.valueOf(p .getProperty(Options.BUFFER_MODE)); if (!bufferMode.isStable()) { /* * Force the disk-only mode if the source journal was not * stable. */ p.setProperty(Options.BUFFER_MODE, BufferMode.Disk.toString()); } } return new Journal(p); }
/** * Create the output journal. * * @return The output journal. */ protected Journal createJournal() { // default properties from the source journal. final Properties p = oldJournal.getProperties(); // set the file for the new journal. p.setProperty(Options.FILE, outFile.getAbsolutePath()); if (p.getProperty(Options.CREATE_TEMP_FILE) != null) { // make sure that this property is turned off. p.setProperty(Options.CREATE_TEMP_FILE, "false"); } if (p.getProperty(Options.BUFFER_MODE) != null) { BufferMode bufferMode = BufferMode.valueOf(p .getProperty(Options.BUFFER_MODE)); if (!bufferMode.isStable()) { /* * Force the disk-only mode if the source journal was not * stable. */ p.setProperty(Options.BUFFER_MODE, BufferMode.Disk.toString()); } } return new Journal(p); }
@Override public Void call() throws Exception { try { AbstractApiTask.submitApiTask( indexManager, new CreateKBTask(namespace, ((Journal) indexManager) .getProperties())).get(); created.set(true); return null; // Done. } catch (Throwable t) { log.error(t, t); throw new RuntimeException(t); } }
final Properties p = new Properties(journal.getProperties());
final Properties p = new Properties(journal.getProperties());
.getProperties(); } else { properties = ((Journal) indexManager).getProperties();
.getProperties(); } else { properties = ((Journal) indexManager).getProperties();
return; final Properties properties = journal.getProperties();
return; final Properties properties = journal.getProperties();