コード例 #1
0
 private JournalEntry newCreateStoreEntry(long fileId) {
   CreateStoreEntry createStore = CreateStoreEntry.newBuilder().setStoreId(fileId).build();
   return JournalEntry.newBuilder().setCreateStore(createStore).build();
 }
コード例 #2
0
 // Creates a store, called when replaying journals
 private void createStoreFromEntry(CreateStoreEntry entry) throws FileAlreadyExistsException {
   createStoreInternal(entry.getStoreId());
 }