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
-
- All Implemented Interfaces:
Action
@Command(name="compact", description="Compacts the journal of a non running server") public final class CompactJournal extends LockAbstract
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.tools.DataAbstract
binding, journal, largeMessges, paging
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.Configurable
global
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
DEFAULT_BROKER_ACCEPTOR, DEFAULT_BROKER_URL, verbose
-
-
Constructor Summary
Constructors Constructor Description CompactJournal()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcompactJournal(java.io.File directory, java.io.File historyFolder, java.lang.String journalPrefix, java.lang.String journalSuffix, int minFiles, int poolFiles, int fileSize, org.apache.activemq.artemis.core.io.IOCriticalErrorListener listener, byte... replaceableRecords)static voidcompactJournals(org.apache.activemq.artemis.core.config.Configuration configuration)java.lang.Objectexecute(ActionContext context)-
Methods inherited from class org.apache.activemq.artemis.cli.commands.tools.LockAbstract
unlock
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.tools.DataAbstract
getBinding, getJournal, getLargeMessages, getPaging
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.Configurable
getBrokerDTO, getConfiguration, getFileConfiguration, getManagementConfiguration, getManagementDTO, helpGroup, readConfiguration, treatError
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
checkOptions, getActionContext, getBrokerConfiguration, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, getBrokerURLInstance, isVerbose, setHomeValues
-
-
-
-
Method Detail
-
execute
public java.lang.Object execute(ActionContext context) throws java.lang.Exception
- Specified by:
executein interfaceAction- Overrides:
executein classLockAbstract- Throws:
java.lang.Exception
-
compactJournals
public static void compactJournals(org.apache.activemq.artemis.core.config.Configuration configuration) throws java.lang.Exception- Throws:
java.lang.Exception
-
compactJournal
public static void compactJournal(java.io.File directory, java.io.File historyFolder, java.lang.String journalPrefix, java.lang.String journalSuffix, int minFiles, int poolFiles, int fileSize, org.apache.activemq.artemis.core.io.IOCriticalErrorListener listener, byte... replaceableRecords) throws java.lang.Exception- Throws:
java.lang.Exception
-
-