fr.dyade.aaa.ext
Interface NGTransactionMBean

All Superinterfaces:
TransactionMBean
All Known Implementing Classes:
NGTransaction

public interface NGTransactionMBean
extends TransactionMBean


Method Summary
 int getCommitCount()
          Returns the number of commit operation since starting up.
 int getGarbageCount()
          Returns the number of garbage operation since starting up.
 int getGarbageRatio()
          Returns the ratio of garbage operations since starting up.
 long getGarbageTime()
          Returns the cumulated time of garbage operations.
 int getLogFileSize()
          Returns the size of disk log in Mb.
 int getLogMemoryCapacity()
          Returns the initial capacity of global in memory log (by default 4096).
 int getLogMemorySize()
          Returns the number of operation in the memory log.
 int getLogThresholdOperation()
          Returns the pool size for operation objects, by default 1000.
 int getMaxLogFileSize()
          Returns the maximum size of disk log in Mb, by default 16Mb.
 int getNbBadDeletedObjects()
          Returns the number of useless delete operation on repository.
 int getNbDeletedObjects()
          Returns the number of delete operation on repository.
 int getNbLoadedFromLog()
          Returns the number of load operation from a log file since last start.
 int getNbLoadedObjects()
          Returns the number of load operation from repository.
 int getNbLogFiles()
          Returns the number of rolled log files.
 int getNbSavedObjects()
          Returns the number of save operation to repository.
 java.lang.String getRepositoryImpl()
           
 boolean isSyncOnWrite()
          Returns true if every write in the log file is synced to disk.
 void setMaxLogFileSize(int size)
          Sets the maximum size of disk log in Mb.
 
Methods inherited from interface fr.dyade.aaa.util.TransactionMBean
getPhase, getPhaseInfo, getStartTime, isPersistent
 

Method Detail

getLogMemoryCapacity

int getLogMemoryCapacity()
Returns the initial capacity of global in memory log (by default 4096).

Returns:
The initial capacity of global in memory log.

getLogMemorySize

int getLogMemorySize()
Returns the number of operation in the memory log.

Returns:
The number of operation in the memory log.

getMaxLogFileSize

int getMaxLogFileSize()
Returns the maximum size of disk log in Mb, by default 16Mb.

Returns:
The maximum size of disk log in Mb.

setMaxLogFileSize

void setMaxLogFileSize(int size)
Sets the maximum size of disk log in Mb.

Parameters:
size - The maximum size of disk log in Mb.

getLogFileSize

int getLogFileSize()
Returns the size of disk log in Mb.

Returns:
The size of disk log in Mb.

getNbLogFiles

int getNbLogFiles()
Returns the number of rolled log files.

Returns:
The number of rolled log files.

isSyncOnWrite

boolean isSyncOnWrite()
Returns true if every write in the log file is synced to disk.

Returns:
true if every write in the log file is synced to disk.

getLogThresholdOperation

int getLogThresholdOperation()
Returns the pool size for operation objects, by default 1000.

Returns:
The pool size for operation objects.

getCommitCount

int getCommitCount()
Returns the number of commit operation since starting up.

Returns:
The number of commit operation.

getGarbageCount

int getGarbageCount()
Returns the number of garbage operation since starting up.

Returns:
The number of garbage operation.

getNbLoadedFromLog

int getNbLoadedFromLog()
Returns the number of load operation from a log file since last start.

Returns:
The number of load operation from a log file.

getGarbageTime

long getGarbageTime()
Returns the cumulated time of garbage operations.

Returns:
The cumulated time of garbage operations.

getGarbageRatio

int getGarbageRatio()
Returns the ratio of garbage operations since starting up.

Returns:
The ratio of garbage operations since starting up.

getRepositoryImpl

java.lang.String getRepositoryImpl()

getNbSavedObjects

int getNbSavedObjects()
Returns the number of save operation to repository.

Returns:
The number of save operation to repository.

getNbDeletedObjects

int getNbDeletedObjects()
Returns the number of delete operation on repository.

Returns:
The number of delete operation on repository.

getNbBadDeletedObjects

int getNbBadDeletedObjects()
Returns the number of useless delete operation on repository.

Returns:
The number of useless delete operation on repository.

getNbLoadedObjects

int getNbLoadedObjects()
Returns the number of load operation from repository.

Returns:
The number of load operation from repository.


Copyright © 2011 ScalAgent D.T.. All Rights Reserved.