fr.dyade.aaa.util.ATransaction Class Reference

Inherits fr.dyade.aaa.util.Transaction.

Inheritance diagram for fr.dyade.aaa.util.ATransaction:

Inheritance graph
[legend]
Collaboration diagram for fr.dyade.aaa.util.ATransaction:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ATransaction ()
boolean isPersistent ()
final void init (String path) throws IOException
final File getDir ()
int getPhase ()
String getPhaseInfo ()
final synchronized void begin () throws IOException
final String[] getList (String prefix)
final void create (Serializable obj, String name) throws IOException
final void save (Serializable obj, String name) throws IOException
final void create (Serializable obj, String dirName, String name) throws IOException
final void save (Serializable obj, String dirName, String name) throws IOException
final void saveByteArray (byte[] buf, String name) throws IOException
final void saveByteArray (byte[] buf, String dirName, String name) throws IOException
final Object load (String name) throws IOException, ClassNotFoundException
final Object load (String dirName, String name) throws IOException, ClassNotFoundException
final byte[] loadByteArray (String name) throws IOException
final byte[] loadByteArray (String dirName, String name) throws IOException
final void delete (String name)
final void delete (String dirName, String name)
void commit (boolean release) throws IOException
final synchronized void rollback () throws IOException
final synchronized void release () throws IOException
final synchronized void _stop ()
final void stop ()
void close ()
void run ()

Protected Member Functions

void newLogFile () throws IOException
void syncLogFile () throws IOException

Protected Attributes

File logFilePN = null
File plogFilePN = null
RandomAccessFile logFile = null
FileDescriptor logFD = null

Static Package Attributes

static final int CLEANUP_THRESHOLD_COMMIT = 9600
static final int CLEANUP_THRESHOLD_OPERATION = 36000
static final int CLEANUP_THRESHOLD_SIZE = 8 * Mb
static final boolean debug = false

Detailed Description

Definition at line 34 of file ATransaction.java.


Member Function Documentation

final void fr.dyade.aaa.util.ATransaction.saveByteArray ( byte[]  buf,
String  name 
) throws IOException

Save an object state already serialized. The byte array keeped in log is a copy, so the original one may be modified.

Implements fr.dyade.aaa.util.Transaction.

Definition at line 301 of file ATransaction.java.

final void fr.dyade.aaa.util.ATransaction.saveByteArray ( byte[]  buf,
String  dirName,
String  name 
) throws IOException

Save an object state already serialized. The byte array keeped in log is a copy, so the original one may be modified.

Implements fr.dyade.aaa.util.Transaction.

Definition at line 309 of file ATransaction.java.

final void fr.dyade.aaa.util.ATransaction.stop (  ) 

Stops the transaction module. It waits all transactions termination, then the module is kept in a FREE 'ready to use' state.

Implements fr.dyade.aaa.util.Transaction.

Definition at line 660 of file ATransaction.java.

References fr.dyade.aaa.util.ATransaction._stop().

Referenced by fr.dyade.aaa.util.ATransaction.close().

Here is the call graph for this function:

void fr.dyade.aaa.util.ATransaction.close (  ) 

Close the transaction module. It waits all transactions termination, the module will be initialized anew before reusing it.

Implements fr.dyade.aaa.util.Transaction.

Definition at line 683 of file ATransaction.java.

References fr.dyade.aaa.util.ATransaction.stop().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 16:17:17 2008 for joram by  doxygen 1.5.0