Class ActivatableTracker

java.lang.Object
org.alfresco.solr.tracker.AbstractTracker
org.alfresco.solr.tracker.ActivatableTracker
All Implemented Interfaces:
Tracker
Direct Known Subclasses:
AclTracker, CascadeTracker, ContentTracker, MetadataTracker

public abstract class ActivatableTracker extends AbstractTracker
Supertype layer for trackers that can be enabled/disabled.
  • Field Details

  • Constructor Details

  • Method Details

    • disable

      public final void disable()
      Disables this tracker instance.
    • enable

      public final void enable()
      Enables this tracker instance.
    • track

      public void track()
      Description copied from class: AbstractTracker
      Template method - subclasses must implement the Tracker-specific indexing by implementing the abstract method AbstractTracker.doTrack(String).
      Specified by:
      track in interface Tracker
      Overrides:
      track in class AbstractTracker
    • isEnabled

      public boolean isEnabled()
    • isDisabled

      public boolean isDisabled()
    • clearScheduledMaintenanceWork

      protected void clearScheduledMaintenanceWork()
      Cleans up the scheduled maintenance work collected by this tracker.
    • logAndClear

      protected void logAndClear(Collection<Long> values, String kind)
      Logs out the content of the input collection.
      Parameters:
      values - the collection which (in case is not empty) contains the identifiers (e.g. txid, aclid) the system is going to clear.
      kind - the kind of identifier (e.g. Transaction, Node ID, ACL ID) in the input collection.