org.olap4j.driver.xmla.cache
Enum XmlaOlap4jNamedMemoryCache.Property

java.lang.Object
  extended by java.lang.Enum<XmlaOlap4jNamedMemoryCache.Property>
      extended by org.olap4j.driver.xmla.cache.XmlaOlap4jNamedMemoryCache.Property
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<XmlaOlap4jNamedMemoryCache.Property>
Enclosing class:
XmlaOlap4jNamedMemoryCache

public static enum XmlaOlap4jNamedMemoryCache.Property
extends java.lang.Enum<XmlaOlap4jNamedMemoryCache.Property>

Properties which will be considered for configuration.

All parameters are optional.


Enum Constant Summary
Mode
          Eviction mode.
Name
          A unique identifier which allows two connections to share a same cache space.
Size
          The number of entries to maintain in cache under the given cache name.
Timeout
          The number of seconds to maintain entries in cache before expiration.
 
Method Summary
static XmlaOlap4jNamedMemoryCache.Property valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static XmlaOlap4jNamedMemoryCache.Property[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Name

public static final XmlaOlap4jNamedMemoryCache.Property Name
A unique identifier which allows two connections to share a same cache space. Setting this to an already existing cache space will cause the cache manager to ignore other configuration properties, such as eviction mode and so on. Not setting this property will assign a random name to the cache space, thus creating a unique space.


Size

public static final XmlaOlap4jNamedMemoryCache.Property Size
The number of entries to maintain in cache under the given cache name.


Timeout

public static final XmlaOlap4jNamedMemoryCache.Property Timeout
The number of seconds to maintain entries in cache before expiration.


Mode

public static final XmlaOlap4jNamedMemoryCache.Property Mode
Eviction mode. Supported eviction modes are LIFO (last in first out), FIFO (first in first out), LFU (least frequently used) and MFU (most frequently used).

Method Detail

values

public static XmlaOlap4jNamedMemoryCache.Property[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (XmlaOlap4jNamedMemoryCache.Property c : XmlaOlap4jNamedMemoryCache.Property.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static XmlaOlap4jNamedMemoryCache.Property valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

SourceForge.net_Logo