Package org.infinispan.eviction.impl
Class ActivationManagerImpl
java.lang.Object
org.infinispan.eviction.impl.ActivationManagerImpl
- All Implemented Interfaces:
ActivationManager,org.infinispan.persistence.manager.PersistenceManager.StoreChangeListener
@MBean(objectName="Activation",
description="Component that handles activating entries that have been passivated to a CacheStore by loading them into memory.")
public class ActivationManagerImpl
extends Object
implements ActivationManager, org.infinispan.persistence.manager.PersistenceManager.StoreChangeListener
Concrete implementation of activation logic manager.
- Since:
- 5.2
- Author:
- Galder ZamarreƱo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactivateAsync(Object key, int segment) Activates an entry, effectively removing it from the underlying persistence store.longGet number of activations executed.longbooleanvoidvoidsetStatisticsEnabled(boolean statisticsEnabled) voidstart()voidstop()voidstoreChanged(org.infinispan.persistence.manager.PersistenceStatus persistenceStatus)
-
Constructor Details
-
ActivationManagerImpl
public ActivationManagerImpl()
-
-
Method Details
-
start
public void start() -
stop
public void stop() -
storeChanged
public void storeChanged(org.infinispan.persistence.manager.PersistenceStatus persistenceStatus) -
activateAsync
Description copied from interface:ActivationManagerActivates an entry, effectively removing it from the underlying persistence store. Note that the removal may be done asynchronously and when the returned Stage is complete the removal is also completed.- Specified by:
activateAsyncin interfaceActivationManager- Parameters:
key- key to activatesegment- segment the key maps to- Returns:
- stage that when complete the entry has been activated
-
getActivationCount
public long getActivationCount()Description copied from interface:ActivationManagerGet number of activations executed.- Specified by:
getActivationCountin interfaceActivationManager- Returns:
- A long representing the number of activations
-
getActivations
@ManagedAttribute(description="Number of activation events", displayName="Number of cache entries activated", measurementType=TRENDSUP) public String getActivations() -
resetStatistics
@ManagedOperation(description="Resets statistics gathered by this component", displayName="Reset statistics") public void resetStatistics() -
getStatisticsEnabled
@ManagedAttribute(description="Enables or disables the gathering of statistics by this component", displayName="Statistics enabled", writable=true) public boolean getStatisticsEnabled() -
setStatisticsEnabled
public void setStatisticsEnabled(boolean statisticsEnabled) -
getPendingActivationCount
public long getPendingActivationCount()- Specified by:
getPendingActivationCountin interfaceActivationManager
-