Class CompactJournal
java.lang.Object
org.apache.activemq.artemis.cli.commands.ActionAbstract
org.apache.activemq.artemis.cli.commands.Configurable
org.apache.activemq.artemis.cli.commands.tools.DataAbstract
org.apache.activemq.artemis.cli.commands.tools.LockAbstract
org.apache.activemq.artemis.cli.commands.tools.journal.CompactJournal
-
Field Summary
Fields inherited from class org.apache.activemq.artemis.cli.commands.tools.DataAbstract
binding, journal, largeMessges, pagingFields inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
DEFAULT_BROKER_ACCEPTOR, DEFAULT_BROKER_URL, verbose -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcompactJournal(File directory, File historyFolder, String journalPrefix, String journalSuffix, int minFiles, int poolFiles, int fileSize, IOCriticalErrorListener listener, byte... replaceableRecords) static voidcompactJournals(Configuration configuration) execute(ActionContext context) Methods inherited from class org.apache.activemq.artemis.cli.commands.tools.LockAbstract
done, unlockMethods inherited from class org.apache.activemq.artemis.cli.commands.tools.DataAbstract
getBinding, getJournal, getLargeMessages, getPagingMethods inherited from class org.apache.activemq.artemis.cli.commands.Configurable
getBrokerDTO, getConfiguration, getFileConfiguration, getManagementConfiguration, getManagementDTO, readConfiguration, treatErrorMethods inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
getActionContext, getBrokerConfiguration, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, getBrokerURLInstance, isVerbose, run, setHomeValues
-
Constructor Details
-
CompactJournal
public CompactJournal()
-
-
Method Details
-
execute
- Specified by:
executein interfaceAction- Overrides:
executein classLockAbstract- Throws:
Exception
-
compactJournals
- Throws:
Exception
-
compactJournal
public static void compactJournal(File directory, File historyFolder, String journalPrefix, String journalSuffix, int minFiles, int poolFiles, int fileSize, IOCriticalErrorListener listener, byte... replaceableRecords) throws Exception - Throws:
Exception
-