org.sakaiproject.search.journal.api
Interface JournalStorage

All Known Implementing Classes:
SharedFilesystemJournalStorage

public interface JournalStorage

Journal storare provides bulk storage to the journal objects being stored.

Author:
ieb

Method Summary
 void commitSave(JournalStorageState jss)
          perform the commit on the transaction in jss
 JournalStorageState prepareSave(String location, long transactionId)
          prepare the current transaction for commit, 2PC
 void retrieveSavePoint(long savePoint, String workingSpace)
          Get a savePoint from the committed store into a permanent local space, indexed on the transaction or savePoint id
 void rollbackSave(JournalStorageState jss)
          rollback the transaction in jss
 

Method Detail

retrieveSavePoint

void retrieveSavePoint(long savePoint,
                       String workingSpace)
                       throws IOException
Get a savePoint from the committed store into a permanent local space, indexed on the transaction or savePoint id

Parameters:
savePoint -
workingSpace -
Throws:
IOException

prepareSave

JournalStorageState prepareSave(String location,
                                long transactionId)
                                throws IOException
prepare the current transaction for commit, 2PC

Parameters:
location -
transactionId -
Returns:
Throws:
IOException

commitSave

void commitSave(JournalStorageState jss)
                throws IOException
perform the commit on the transaction in jss

Parameters:
jss -
Throws:
IOException

rollbackSave

void rollbackSave(JournalStorageState jss)
rollback the transaction in jss

Parameters:
jss -


Copyright © 2003-2012 Sakai Project. All Rights Reserved.