comparison src/org/dancres/blitz/txn/StoragePersonality.java @ 0:3dc0c5604566

Initial checkin of blitz 2.0 fcs - no installer yet.
author Dan Creswell <dan.creswell@gmail.com>
date Sat, 21 Mar 2009 11:00:06 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:3dc0c5604566
1 package org.dancres.blitz.txn;
2
3 import org.prevayler.implementation.SnapshotPrevayler;
4 import org.prevayler.PrevalentSystem;
5
6 /**
7 <p>The work of translating the <code>StorageModel</code> instance specified
8 in the configuration file to an appropriate runtime configuration
9 is done by instances of this interface obtained from
10 <code>StoragePersonalityFactory.getPersonality(StorageModel)</code>.</p>
11
12 <p>The rest of the Blitz core uses the personality to obtain instances
13 of certain key components within the system which collectively determine
14 Blitz's storage behaviour.</p>
15
16 @see org.dancres.blitz.config.StorageModel
17
18 @see org.dancres.blitz.txn.StoragePersonalityFactory
19 */
20 public interface StoragePersonality {
21 public CheckpointTrigger getCheckpointTrigger(Checkpointer aCheckpointer);
22
23 public SnapshotPrevayler getPrevayler(PrevalentSystem aSystem)
24 throws Exception;
25
26 /**
27 Invoke this method to clear up underlying storage associated with
28 the personality.
29 */
30 public void destroy();
31 }