Package org.jivesoftware.util.cache
Class ConsistencyMonitor
- java.lang.Object
-
- org.jivesoftware.util.cache.ConsistencyMonitor
-
public class ConsistencyMonitor extends Object
Caches, especially clustered caches, have various supporting data structures that allow them to work properly in certain conditions. The content of these caches and their supporting data structures are expected to be in a certain consistent state. This monitor periodically performs a check if this is true. Note that validation of consistency is a resource intensive process. Enabling the monitor might have severe effects on the availability and performance of the Openfire domain.- Author:
- Guus der Kinderen, guus.der.kinderen@gmail.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ConsistencyMonitor.Task
-
Field Summary
Fields Modifier and Type Field Description static SystemProperty<Duration>
DELAY
static SystemProperty<Boolean>
ENABLED
static ConsistencyMonitor
INSTANCE
static SystemProperty<Duration>
PERIOD
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConsistencyMonitor
getInstance()
protected void
reinitialize()
-
-
-
Field Detail
-
ENABLED
public static final SystemProperty<Boolean> ENABLED
-
DELAY
public static final SystemProperty<Duration> DELAY
-
PERIOD
public static final SystemProperty<Duration> PERIOD
-
INSTANCE
public static ConsistencyMonitor INSTANCE
-
-
Method Detail
-
getInstance
public static ConsistencyMonitor getInstance()
-
reinitialize
protected void reinitialize()
-
-