Class RecoverMessages

  • All Implemented Interfaces:
    Action

    @Command(name="recover",
             description="Recover (undelete) every message on the journal by creating a new output journal. Rolled backed and acked messages will be sent out to the output as much as possible.")
    public class RecoverMessages
    extends DBOption
    • Constructor Detail

      • RecoverMessages

        public RecoverMessages()
    • Method Detail

      • execute

        public java.lang.Object execute​(ActionContext context)
                                 throws java.lang.Exception
        Specified by:
        execute in interface Action
        Overrides:
        execute in class DBOption
        Throws:
        java.lang.Exception
      • recover

        public static void recover​(org.apache.activemq.artemis.core.config.Configuration configuration,
                                   java.lang.String journallocation,
                                   java.io.File journalOutput,
                                   java.io.File largeMessage,
                                   boolean reclaimed)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception