public class TransactionListener extends Object implements ListenSlotMap
Constructor and Description |
---|
TransactionListener(String listenerFilename) |
TransactionListener(String transactionBaseFilename,
long transactionID) |
Modifier and Type | Method and Description |
---|---|
void |
logAssignment(long gid,
long lid) |
void |
logDestroy(int localSlot) |
void |
logRemoval(long gid,
int slot,
long lid) |
void |
logSave(int localSlot) |
SequenceWithClose<GlobalPosition> |
readGSL() |
void |
rollback() |
public TransactionListener(String transactionBaseFilename, long transactionID) throws IOException
transactionBaseFilename
- transactionID
- IOException
public TransactionListener(String listenerFilename) throws IOException
listenerFilename
- IOException
public void logDestroy(int localSlot)
logDestroy
in interface ListenSlotMap
localSlot
- public void logSave(int localSlot)
logSave
in interface ListenSlotMap
localSlot
- public void logRemoval(long gid, int slot, long lid)
logRemoval
in interface ListenSlotMap
gid
- slot
- lid
- public void logAssignment(long gid, long lid)
logAssignment
in interface ListenBarrelWriter
gid
- lid
- public void rollback()
rollback
in interface ListenSlotMap
public SequenceWithClose<GlobalPosition> readGSL() throws IOException
readGSL
in interface ListenSlotMap
IOException
Copyright © 2016 Egothor. All Rights Reserved.