Mercurial > hg > blitz_condensed
view src/org/dancres/blitz/TxnControl.java @ 22:b7e52953b7a6
Add some cache/memory statistics to help spot potential exhaustion and other tuning issues.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Fri, 28 Aug 2009 17:23:33 +0100 |
parents | 3dc0c5604566 |
children |
line wrap: on
line source
package org.dancres.blitz; import java.io.IOException; import java.rmi.RemoteException; import net.jini.core.transaction.server.TransactionManager; import net.jini.core.transaction.UnknownTransactionException; import net.jini.core.transaction.TransactionException; /** Transactional operations are controlled via this interface. */ public interface TxnControl { public int prepare(TransactionManager aMgr, long anId) throws UnknownTransactionException, RemoteException; public void commit(TransactionManager aMgr, long anId) throws UnknownTransactionException, RemoteException; public void abort(TransactionManager aMgr, long anId) throws UnknownTransactionException, RemoteException; public int prepareAndCommit(TransactionManager aMgr, long anId) throws UnknownTransactionException, RemoteException; public void requestSnapshot() throws TransactionException, IOException; public void backup(String aDir) throws IOException; }