Class DeletedNodeCleanupWorker

  • All Implemented Interfaces:
    NodeCleanupWorker

    public class DeletedNodeCleanupWorker
    extends AbstractNodeCleanupWorker
    Cleans up deleted nodes and dangling transactions that are old enough.
    Since:
    2.2 SP2
    Author:
    Derek Hulley
    • Constructor Detail

      • DeletedNodeCleanupWorker

        public DeletedNodeCleanupWorker()
        Default constructor
    • Method Detail

      • doCleanInternal

        protected java.util.List<java.lang.String> doCleanInternal()
                                                            throws java.lang.Throwable
        Do the actual cleanup. Any errors are handled by this base class.
        Specified by:
        doCleanInternal in class AbstractNodeCleanupWorker
        Returns:
        Returns the cleanup messages.
        Throws:
        java.lang.Throwable
      • setMinPurgeAgeDays

        public void setMinPurgeAgeDays​(int minPurgeAgeDays)
        Set the minimum age (days) that nodes and transactions must be before they get purged. The default is 7 days.
        Parameters:
        minPurgeAgeDays - the minimum age (in days) before nodes and transactions get purged
      • setFromCustomCommitTime

        public void setFromCustomCommitTime​(long fromCustomCommitTime)
        Set a custom "from commit time" that will consider only the transactions after this specified time Setting a negative value or 0 will trigger the default behaviour to get the oldest "from time" for any deleted node
        Parameters:
        fromCustomCommitTime - the custom from commit time value
      • setPurgeSize

        public void setPurgeSize​(int purgeSize)
        Set the purge transaction block size. This determines how many unused transactions are purged in one go.
        Parameters:
        purgeSize - int