public interface NTransactionMBean extends TransactionMBean
Modifier and Type | Method and Description |
---|---|
void |
garbage()
Garbage the log file.
|
void |
garbageAsync(boolean async)
Sets asynchronous garbage.
|
int |
getGarbageCount()
Returns the number of garbage operation since starting up.
|
int |
getGarbageDelay()
Returns the maximum time between two garbages, 0 if disable.
|
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 size of memory log in byte.
|
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 |
getMaxLogMemorySize()
Returns the maximum size of memory log in Kb, by default 2048Kb.
|
int |
getNbBadDeletedObjects()
Returns the number of useless delete operation on repository.
|
int |
getNbDeletedObjects()
Returns the number of delete operation on repository.
|
int |
getNbLoadedObjects()
Returns the number of load operation from repository.
|
int |
getNbSavedObjects()
Returns the number of save operation to repository.
|
String |
getRepositoryImpl() |
boolean |
isGarbageRunning()
Returns the status of the garbage thread.
|
boolean |
isSyncOnWrite()
Returns true if every write in the log file is synced to disk.
|
void |
setGarbageDelay(int timeout)
Sets the maximum time between two garbages, 0 to disable the
asynchronous garbage mechanism.
|
void |
setMaxLogFileSize(int size)
Sets the maximum size of disk log in Mb.
|
void |
setMaxLogMemorySize(int size)
Sets the maximum size of memory log in Kb.
|
getCommitCount, getPhase, getPhaseInfo, getStartTime, isPersistent
int getLogMemoryCapacity()
int getMaxLogMemorySize()
void setMaxLogMemorySize(int size)
size
- The maximum size of memory log in Kb.int getLogMemorySize()
int getMaxLogFileSize()
void setMaxLogFileSize(int size)
size
- The maximum size of disk log in Mb.int getLogFileSize()
boolean isSyncOnWrite()
int getLogThresholdOperation()
operation
objects, by default 1000.operation
objects.int getGarbageCount()
long getGarbageTime()
int getGarbageRatio()
int getGarbageDelay()
void setGarbageDelay(int timeout)
timeout
- The maximum time between two garbages (seconds).boolean isGarbageRunning()
void garbageAsync(boolean async)
async
- If true activates the asynchronous garbage,
deasctivates otherwise.void garbage()
String getRepositoryImpl()
int getNbSavedObjects()
int getNbDeletedObjects()
int getNbBadDeletedObjects()
int getNbLoadedObjects()
Copyright © 2019 ScalAgent D.T.. All rights reserved.