Class AnalyticsEvictionProgressTracking
- java.lang.Object
-
- com.atlassian.confluence.pages.collab.impl.tracking.AnalyticsEvictionProgressTracking
-
- All Implemented Interfaces:
SynchronyEvictionProgressTracking
@Internal public class AnalyticsEvictionProgressTracking extends Object implements SynchronyEvictionProgressTracking
Listener of eviction process which pushes events to analytics- Since:
- 7.0.0
-
-
Constructor Summary
Constructors Constructor Description AnalyticsEvictionProgressTracking(com.atlassian.event.api.EventPublisher eventPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
failEviction(SynchronyEvictionProgress progress)
Indicate an error in the eviction processvoid
failRemovalUnderLock(SynchronyEvictionProgress progress)
There was an error in locking process.void
failSearch(SynchronyEvictionProgress progress)
Indicate an error in the searching processvoid
finishEviction(SynchronyEvictionProgress progress, int contentsRemoved, int rowsRemoved)
Successfully finish eviction processvoid
finishRemovalUnderLock(SynchronyEvictionProgress progress, Integer numberOfRowsRemoved)
Removal procedure has been finished and the lock has been removedvoid
finishSearch(SynchronyEvictionProgress progress, Integer numberOfContent)
Successfully finish the searchSynchronyEvictionProgress
startEviction(SynchronyEvictionType type, Integer thresholdHours, Integer limit)
Gets called before starting the whole eviction procedurevoid
startRemovalUnderLock(SynchronyEvictionProgress progress, Integer numberOfContent)
Gets called when DB rows are being removed while corresponding synchrony data is lockedvoid
startSearch(SynchronyEvictionProgress progress, SynchronyEvictionSearchType type, Integer limit)
Start searching for content to be removed-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.pages.collab.impl.tracking.SynchronyEvictionProgressTracking
startEviction
-
-
-
-
Method Detail
-
startEviction
public SynchronyEvictionProgress startEviction(SynchronyEvictionType type, Integer thresholdHours, Integer limit)
Description copied from interface:SynchronyEvictionProgressTracking
Gets called before starting the whole eviction procedure- Specified by:
startEviction
in interfaceSynchronyEvictionProgressTracking
-
finishEviction
public void finishEviction(SynchronyEvictionProgress progress, int contentsRemoved, int rowsRemoved)
Description copied from interface:SynchronyEvictionProgressTracking
Successfully finish eviction process- Specified by:
finishEviction
in interfaceSynchronyEvictionProgressTracking
-
failEviction
public void failEviction(SynchronyEvictionProgress progress)
Description copied from interface:SynchronyEvictionProgressTracking
Indicate an error in the eviction process- Specified by:
failEviction
in interfaceSynchronyEvictionProgressTracking
-
startSearch
public void startSearch(SynchronyEvictionProgress progress, SynchronyEvictionSearchType type, Integer limit)
Description copied from interface:SynchronyEvictionProgressTracking
Start searching for content to be removed- Specified by:
startSearch
in interfaceSynchronyEvictionProgressTracking
-
finishSearch
public void finishSearch(SynchronyEvictionProgress progress, Integer numberOfContent)
Description copied from interface:SynchronyEvictionProgressTracking
Successfully finish the search- Specified by:
finishSearch
in interfaceSynchronyEvictionProgressTracking
-
failSearch
public void failSearch(SynchronyEvictionProgress progress)
Description copied from interface:SynchronyEvictionProgressTracking
Indicate an error in the searching process- Specified by:
failSearch
in interfaceSynchronyEvictionProgressTracking
-
startRemovalUnderLock
public void startRemovalUnderLock(SynchronyEvictionProgress progress, Integer numberOfContent)
Description copied from interface:SynchronyEvictionProgressTracking
Gets called when DB rows are being removed while corresponding synchrony data is locked- Specified by:
startRemovalUnderLock
in interfaceSynchronyEvictionProgressTracking
-
finishRemovalUnderLock
public void finishRemovalUnderLock(SynchronyEvictionProgress progress, Integer numberOfRowsRemoved)
Description copied from interface:SynchronyEvictionProgressTracking
Removal procedure has been finished and the lock has been removed- Specified by:
finishRemovalUnderLock
in interfaceSynchronyEvictionProgressTracking
-
failRemovalUnderLock
public void failRemovalUnderLock(SynchronyEvictionProgress progress)
Description copied from interface:SynchronyEvictionProgressTracking
There was an error in locking process. Lock has been removed- Specified by:
failRemovalUnderLock
in interfaceSynchronyEvictionProgressTracking
-
-