Mercurial > hg > blitz_condensed
comparison src/org/dancres/blitz/txn/TxnOp.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 java.io.Serializable; | |
4 import java.io.IOException; | |
5 | |
6 import org.dancres.blitz.entry.OpInfo; | |
7 | |
8 /** | |
9 <p> | |
10 Each separate operation of a Transaction identified by TxnId is a TxnOp | |
11 which should implement this interface. TxnOp's are repeatable, disk-level | |
12 actions which can be logged to disk and re-applied during system recovery. | |
13 </p> | |
14 */ | |
15 public interface TxnOp extends Serializable { | |
16 /** | |
17 Must be invoked inside an active DiskTxn. | |
18 */ | |
19 public void restore(TxnState aState) throws IOException; | |
20 public void commit(TxnState aState) throws IOException; | |
21 public void abort(TxnState aState) throws IOException; | |
22 } |