Mercurial > hg > blitz_condensed
comparison src/org/dancres/blitz/notify/RegistrationOp.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.notify; | |
2 | |
3 import java.io.IOException; | |
4 | |
5 import org.dancres.blitz.txn.TxnOp; | |
6 import org.dancres.blitz.txn.TxnState; | |
7 | |
8 /** | |
9 Every persistent (those that aren't transaction-related) notify registration | |
10 is recorded in the log for purposes of recovery. | |
11 */ | |
12 class RegistrationOp implements TxnOp { | |
13 private EventGeneratorState theState; | |
14 | |
15 RegistrationOp(EventGeneratorState aState) { | |
16 theState = aState; | |
17 } | |
18 | |
19 public void commit(TxnState aState) throws IOException { | |
20 // Nothing to do | |
21 } | |
22 | |
23 public void abort(TxnState aState) throws IOException { | |
24 // Nothing to do | |
25 } | |
26 | |
27 public void restore(TxnState aState) throws IOException { | |
28 EventGeneratorFactory.get().recover(theState); | |
29 } | |
30 | |
31 public String toString() { | |
32 return " NO : " + theState.toString(); | |
33 } | |
34 } |