Rio Project 4.2 API Documentation



org.rioproject.resources.persistence
Interface SnapshotHandler

All Known Implementing Classes:
ServiceBeanContextManager.ContextAttributeLogHandler

public interface SnapshotHandler

Interface a server needs to implement in order to work with a PersistentStore to determine whether a snapshot should be taken


Method Summary
 void takeSnapshot()
          Invoked to trigger persistent state be written and committed to a recoverable resource
 void updatePerformed(int updateCount)
          Called by PersistentStore after every update to give server a chance to trigger a snapshot
 

Method Detail

takeSnapshot

void takeSnapshot()
                  throws IOException
Invoked to trigger persistent state be written and committed to a recoverable resource

Throws:
IOException - if an error occurs

updatePerformed

void updatePerformed(int updateCount)
Called by PersistentStore after every update to give server a chance to trigger a snapshot

Parameters:
updateCount - Number of updates since last snapshot

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.