Class ActivatableTracker

    • Field Detail

      • isEnabled

        protected static java.util.concurrent.atomic.AtomicBoolean isEnabled
    • Constructor Detail

      • ActivatableTracker

        protected ActivatableTracker​(Tracker.Type type)
      • ActivatableTracker

        protected ActivatableTracker​(java.util.Properties properties,
                                     org.alfresco.solr.client.SOLRAPIClient client,
                                     java.lang.String coreName,
                                     InformationServer informationServer,
                                     Tracker.Type type)
    • Method Detail

      • disable

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

        public final void enable()
        Enables this tracker instance.
      • 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​(java.util.Collection<java.lang.Long> values,
                                   java.lang.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.