Mercurial > hg > blitz_condensed
comparison src/org/dancres/blitz/meta/Registry.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.meta; | |
2 | |
3 import java.io.IOException; | |
4 | |
5 import org.dancres.blitz.disk.DiskTxn; | |
6 | |
7 /** | |
8 <p><code>Registry</code> is a container for a related set of meta data.</p> | |
9 | |
10 <p>Various pieces of ad-hoc information need to be retained within Blitz. | |
11 Chances are that some of this information belongs in a logical group hence | |
12 we allow for creation of more than one <code>Registry</code> each of which is identified | |
13 by a unique name. <P> | |
14 | |
15 <p>Just like all the other storage within Blitz, the content of <code>Registry</code> | |
16 instances has to be kept sync'd (the user may also generate log information | |
17 depending on whether they choose to in-line update or log and sync). Thus, | |
18 most users of <code>Registry</code> will implement <code>Syncable</code>. | |
19 </p> | |
20 | |
21 <p>All modifications to <code>Registry</code> content are achieved through | |
22 a <code>RegistryAccessor</code>. | |
23 | |
24 @see org.dancres.blitz.disk.Syncable | |
25 @see org.dancres.blitz.meta.RegistryAccessor | |
26 */ | |
27 public interface Registry { | |
28 /** | |
29 Obtain an instance of an accessor which will read or make modifications | |
30 in the current context transaction. | |
31 */ | |
32 public RegistryAccessor getAccessor() throws IOException; | |
33 | |
34 /** | |
35 Obtain an instance of an accessor which will read or make modifications | |
36 in the specified transaction.context. | |
37 */ | |
38 public RegistryAccessor getAccessor(DiskTxn aTxn) throws IOException; | |
39 | |
40 public void close() throws IOException; | |
41 } |