use of org.apache.jena.tdb.base.file.BufferChannel in project jena by apache.
the class Journal method create.
public static Journal create(Location location) {
BufferChannel chan;
String channelName = journalFilename(location);
if (location.isMem())
chan = BufferChannelMem.create(channelName);
else
chan = BufferChannelFile.create(channelName);
return new Journal(chan);
}
use of org.apache.jena.tdb.base.file.BufferChannel in project jena by apache.
the class JournalControl method syncAll.
private static void syncAll(StorageConfig sConf) {
Collection<BlockMgr> x = sConf.blockMgrs.values();
for (BlockMgr blkMgr : x) blkMgr.syncForce();
Collection<BufferChannel> y = sConf.bufferChannels.values();
for (BufferChannel bChan : y) bChan.sync();
//sConf.nodeTables ;
}
use of org.apache.jena.tdb.base.file.BufferChannel in project jena by apache.
the class TestJournal method before.
@Before
public void before() {
BufferChannel mem = BufferChannelMem.create("journal");
journal = new Journal(mem);
bb1.clear();
bb2.clear();
bb3.clear();
}
use of org.apache.jena.tdb.base.file.BufferChannel in project jena by apache.
the class TestObjectFileDisk method make.
@Override
protected ObjectFile make() {
FileOps.deleteSilent(filename);
BufferChannel chan = BufferChannelFile.create(filename);
// No buffering.
return new ObjectFileStorage(chan, -1);
}
Aggregations