Mercurial > hg > blitz_condensed
comparison src/org/dancres/blitz/disk/Syncable.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.disk; | |
2 | |
3 /** | |
4 Those involved in storage management should implement this interface and | |
5 register with Disk. This facilitates, checkpointing and clean shutdown | |
6 of Blitz. | |
7 */ | |
8 public interface Syncable { | |
9 /** | |
10 When called, the instance should synchronize all "dirtied" state to | |
11 disk - i.e. if no further operations were carried out and the JVM | |
12 was stopped, recovery wouldn't be necessary because the disk contains | |
13 an accurate copy of the memory state at the point when sync() was | |
14 invoked. | |
15 */ | |
16 public void sync() throws Exception; | |
17 | |
18 /** | |
19 When called, the instance should close and release any files it is | |
20 currently using. | |
21 */ | |
22 public void close() throws Exception; | |
23 } |