Package fr.dyade.aaa.util
Interface TransactionMBean
-
- All Known Subinterfaces:
ATransactionMBean,DBTransactionMBean,JDBCTransactionMBean,JTransactionMBean,NGTransactionMBean,NTransactionMBean,NullTransactionMBean
- All Known Implementing Classes:
ATransaction,DBTransaction,DerbyDBTransaction,JDBCTransaction,JTransaction,NGTransaction,NTransaction,NullTransaction
public interface TransactionMBean
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringbackup(String path)Backups the content of Transaction module.StringdumpObjectList(String prefix)intgetCommitCount()Returns the number of commit operation since startup.StringgetObject(String dirname, String name)String[]getObjectList(String prefix)intgetPhase()Returns the transaction state.StringgetPhaseInfo()Returns a string representation of the transaction state.longgetStartTime()Returns the starting time.booleanisPersistent()Tests if the Transaction component is persistent.booleanuseLoadAll()Returns true if this Transaction implementation implements an optimized loadAll method.
-
-
-
Method Detail
-
isPersistent
boolean isPersistent()
Tests if the Transaction component is persistent.- Returns:
- true if the component is persistent; false otherwise.
-
useLoadAll
boolean useLoadAll()
Returns true if this Transaction implementation implements an optimized loadAll method.- Returns:
- true if this Transaction implementation implements an optimized loadAll method.
-
getPhase
int getPhase()
Returns the transaction state.- Returns:
- the transaction state.
-
getPhaseInfo
String getPhaseInfo()
Returns a string representation of the transaction state.- Returns:
- the string representation of the transaction state.
-
getCommitCount
int getCommitCount()
Returns the number of commit operation since startup.- Returns:
- The number of commit operation.
-
getStartTime
long getStartTime()
Returns the starting time.- Returns:
- The starting time.
-
backup
String backup(String path) throws Exception
Backups the content of Transaction module. Produces a generic Backup/Restore file containing all living objects.- Parameters:
path- Directory path to store the backup.- Returns:
- the path of created backup file.
- Throws:
Exception- An error occurs during backup.
-
-