Class EncodeJournal
- 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.EncodeJournal
-
- All Implemented Interfaces:
Action
@Command(name="encode", description="Encode a set of journal files into an internal encoded data format") public class EncodeJournal extends LockAbstract
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringdirectoryjava.lang.Stringprefixintsizejava.lang.Stringsuffix-
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 EncodeJournal()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectexecute(ActionContext context)static voidexportJournal(java.lang.String directory, java.lang.String journalPrefix, java.lang.String journalSuffix, int minFiles, int fileSize, java.io.PrintStream out)static voidexportJournal(java.lang.String directory, java.lang.String journalPrefix, java.lang.String journalSuffix, int minFiles, int fileSize, java.lang.String fileName)-
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
-
exportJournal
public static void exportJournal(java.lang.String directory, java.lang.String journalPrefix, java.lang.String journalSuffix, int minFiles, int fileSize, java.lang.String fileName) throws java.lang.Exception- Throws:
java.lang.Exception
-
exportJournal
public static void exportJournal(java.lang.String directory, java.lang.String journalPrefix, java.lang.String journalSuffix, int minFiles, int fileSize, java.io.PrintStream out) throws java.lang.Exception- Throws:
java.lang.Exception
-
-