org.jboss.cache.eviction
Class MRUConfiguration

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

public class MRUConfiguration
extends java.lang.Object
implements EvictionConfiguration

MRUConfiguration EvictionConfiguration implementation for MRUPolicy.

Version:
$Revision: 1.2 $
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
MRUConfiguration()
           
 
Method Summary
 int getMaxNodes()
           
 void parseXMLConfig(org.w3c.dom.Element element)
          Configure the MRU Policy with XML.
 void setMaxNodes(int maxNodes)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MRUConfiguration

public MRUConfiguration()
Method Detail

getMaxNodes

public int getMaxNodes()

setMaxNodes

public void setMaxNodes(int maxNodes)

parseXMLConfig

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

This method expects a DOM XML object of something similar to:

10000

Specified by:
parseXMLConfig in interface EvictionConfiguration
Parameters:
element - The MRUPolicy configuration XML DOM element.
Throws:
ConfigureException

toString

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


Copyright 1998-2005 JBoss Inc . All Rights Reserved.