Package mondrian.server.monitor
Enum Class CellCacheEvent.Source
- All Implemented Interfaces:
Serializable
,Comparable<CellCacheEvent.Source>
,Constable
- Enclosing class:
- CellCacheEvent
Enumeration of sources of a cell cache segment.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptiona segment that has been deleted by a call through theCacheControl
API.A segment that is placed into the cache by an external cache.a segment that has been loaded in response to a user query, and populated by rolling up existing cache segments.A segment that has been loaded in response to a user query, and populated by generating and executing a SQL statement. -
Method Summary
Modifier and TypeMethodDescriptionstatic CellCacheEvent.Source
Returns the enum constant of this class with the specified name.static CellCacheEvent.Source[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXTERNAL
A segment that is placed into the cache by an external cache.Some caches (e.g. memcached) never generate this kind of event.
In JBoss Infinispan, one scenario that causes this kind of event is as follows. A user issues an MDX query against a different Mondrian node in the same Infinispan cluster. To resolve missing cells, that node issues a SQL statement to load a segment. Infinispan propagates that segment to its peers, and each peer is notified that an "external segment" is now in the cache.
-
SQL
A segment that has been loaded in response to a user query, and populated by generating and executing a SQL statement. -
ROLLUP
a segment that has been loaded in response to a user query, and populated by rolling up existing cache segments. -
CACHE_CONTROL
a segment that has been deleted by a call through theCacheControl
API.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-