Interface TestableJournal

  • All Superinterfaces:
    org.apache.activemq.artemis.core.server.ActiveMQComponent, Journal
    All Known Implementing Classes:
    JournalImpl

    public interface TestableJournal
    extends Journal
    • Method Detail

      • getDataFilesCount

        int getDataFilesCount()
      • getFreeFilesCount

        int getFreeFilesCount()
      • getOpenedFilesCount

        int getOpenedFilesCount()
      • getIDMapSize

        int getIDMapSize()
      • debug

        java.lang.String debug()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • debugWait

        void debugWait()
                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getMinFiles

        int getMinFiles()
      • getFilePrefix

        java.lang.String getFilePrefix()
      • getFileExtension

        java.lang.String getFileExtension()
      • getMaxAIO

        int getMaxAIO()
      • forceMoveNextFile

        void forceMoveNextFile()
                        throws java.lang.Exception
        Description copied from interface: Journal
        Force the usage of a new JournalFile.
        Specified by:
        forceMoveNextFile in interface Journal
        Throws:
        java.lang.Exception
      • setAutoReclaim

        void setAutoReclaim​(boolean autoReclaim)
      • isAutoReclaim

        boolean isAutoReclaim()
      • testCompact

        void testCompact()
      • checkReclaimStatus

        boolean checkReclaimStatus()
                            throws java.lang.Exception
        This 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:
        java.lang.Exception