org.jboss.cache.eviction
Class ElementSizeConfiguration

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

public class ElementSizeConfiguration
extends java.lang.Object
implements EvictionConfiguration

Version:
$Revision: 1.1 $
Author:
Daniel Huang

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
ElementSizeConfiguration()
           
 
Method Summary
 int getMaxElementsPerNode()
           
 int getMaxNodes()
           
 void parseXMLConfig(org.w3c.dom.Element element)
          Configure the Element Size Policy with XML.
 void setMaxElementsPerNode(int maxElementsPerNode)
           
 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

ElementSizeConfiguration

public ElementSizeConfiguration()
Method Detail

getMaxElementsPerNode

public int getMaxElementsPerNode()

setMaxElementsPerNode

public void setMaxElementsPerNode(int maxElementsPerNode)

getMaxNodes

public int getMaxNodes()

setMaxNodes

public void setMaxNodes(int maxNodes)

parseXMLConfig

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

This method expects the following XML:

100 10000

Specified by:
parseXMLConfig in interface EvictionConfiguration
Parameters:
element - DOM XML containing Element Size Policy configuration.
Throws:
ConfigureException

toString

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


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