org.jboss.cache.eviction
Class LFUConfiguration

java.lang.Object
  extended by org.jboss.cache.eviction.LFUConfiguration
All Implemented Interfaces:
EvictionConfiguration

public class LFUConfiguration
extends java.lang.Object
implements EvictionConfiguration

LFU Configuration implementation for LFU Policy.

Version:
$Revision: 1.3 $
Author:
Daniel Huang (dhuang@jboss.org)

Field Summary
 
Fields inherited from interface org.jboss.cache.eviction.EvictionConfiguration
ATTR, ELEMENT_GRANULARITY, MAX_AGE_SECONDS, MAX_ELEMENTS_PER_NODE, MAX_NODES, MIN_ELEMENTS, MIN_NODES, NAME, NODE_GRANULARITY, REGION, REGION_POLICY_CLASS, TIME_TO_IDLE_SECONDS, TIME_TO_LIVE_SECONDS, WAKEUP_DEFAULT, WAKEUP_INTERVAL_SECONDS
 
Constructor Summary
LFUConfiguration()
           
 
Method Summary
 int getMaxNodes()
           
 int getMinNodes()
           
 void parseXMLConfig(org.w3c.dom.Element element)
          Configures the LFU Policy with XML.
 void setMaxNodes(int maxNodes)
           
 void setMinNodes(int minNodes)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LFUConfiguration

public LFUConfiguration()
Method Detail

getMinNodes

public int getMinNodes()

setMinNodes

public void setMinNodes(int minNodes)

getMaxNodes

public int getMaxNodes()

setMaxNodes

public void setMaxNodes(int maxNodes)

parseXMLConfig

public void parseXMLConfig(org.w3c.dom.Element element)
                    throws ConfigureException
Configures the LFU Policy with XML.

This method expects the following XML DOM:

10 20

Specified by:
parseXMLConfig in interface EvictionConfiguration
Parameters:
element - XML DOM object containing LFU configuration.
Throws:
ConfigureException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1998-2005 JBoss Inc . All Rights Reserved.