Interface TestableJournal
-
- All Superinterfaces:
ActiveMQComponent,Journal
- All Known Implementing Classes:
JournalImpl
public interface TestableJournal extends Journal
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.activemq.artemis.core.journal.Journal
Journal.JournalState
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckReclaimStatus()This method is called automatically when a new file is opened.Stringdebug()voiddebugWait()voidforceMoveNextFile()Force the usage of a newJournalFile.JournalFilegetCurrentFile()JournalFile[]getDataFiles()Returns theJournalFiles in use.intgetDataFilesCount()StringgetFileExtension()StringgetFilePrefix()intgetFileSize()intgetFreeFilesCount()intgetIDMapSize()intgetMaxAIO()intgetMinFiles()intgetOpenedFilesCount()booleanisAutoReclaim()voidsetAutoReclaim(boolean autoReclaim)voidtestCompact()-
Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop, isStarted, start, stop
-
Methods inherited from interface org.apache.activemq.artemis.core.journal.Journal
appendAddEvent, appendAddRecord, appendAddRecord, appendAddRecord, appendAddRecord, appendAddRecord, appendAddRecordTransactional, appendAddRecordTransactional, appendAddRecordTransactional, appendCommitRecord, appendCommitRecord, appendCommitRecord, appendDeleteRecord, appendDeleteRecord, appendDeleteRecordTransactional, appendDeleteRecordTransactional, appendDeleteRecordTransactional, appendPrepareRecord, appendPrepareRecord, appendPrepareRecord, appendRollbackRecord, appendRollbackRecord, appendUpdateRecord, appendUpdateRecord, appendUpdateRecord, appendUpdateRecord, appendUpdateRecord, appendUpdateRecordTransactional, appendUpdateRecordTransactional, appendUpdateRecordTransactional, createFilesForBackupSync, flush, forceBackup, getAlignment, getCriticalErrorListener, getFileFactory, getMaxRecordSize, getNumberOfRecords, getUserVersion, isHistory, isRemoveExtraFilesOnLoad, lineUpContext, load, load, load, load, load, loadInternalOnly, loadSyncOnly, processBackup, processBackupCleanup, replaceableRecord, replicationSyncFinished, replicationSyncPreserveOldFiles, scheduleCompactAndBlock, setCriticalErrorListener, setHistoryFolder, setRemoveExtraFilesOnLoad, synchronizationLock, synchronizationUnlock, tryAppendDeleteRecord, tryAppendDeleteRecord, tryAppendUpdateRecord, tryAppendUpdateRecord, tryAppendUpdateRecord, tryAppendUpdateRecord, tryAppendUpdateRecord
-
-
-
-
Method Detail
-
getDataFilesCount
int getDataFilesCount()
-
getFreeFilesCount
int getFreeFilesCount()
-
getOpenedFilesCount
int getOpenedFilesCount()
-
getIDMapSize
int getIDMapSize()
-
getFileSize
int getFileSize()
- Specified by:
getFileSizein interfaceJournal
-
getMinFiles
int getMinFiles()
-
getFilePrefix
String getFilePrefix()
-
getFileExtension
String getFileExtension()
-
getMaxAIO
int getMaxAIO()
-
forceMoveNextFile
void forceMoveNextFile() throws ExceptionDescription copied from interface:JournalForce the usage of a newJournalFile.- Specified by:
forceMoveNextFilein interfaceJournal- Throws:
Exception
-
setAutoReclaim
void setAutoReclaim(boolean autoReclaim)
-
isAutoReclaim
boolean isAutoReclaim()
-
testCompact
void testCompact()
-
getCurrentFile
JournalFile getCurrentFile()
-
checkReclaimStatus
boolean checkReclaimStatus() throws ExceptionThis method is called automatically when a new file is opened.It will among other things, remove stale files and make them available for reuse.
This method locks the journal.
- Returns:
- true if it needs to re-check due to cleanup or other factors
- Throws:
Exception
-
getDataFiles
JournalFile[] getDataFiles()
Description copied from interface:JournalReturns theJournalFiles in use.- Specified by:
getDataFilesin interfaceJournal- Returns:
- array with all
JournalFiles in use
-
-