org.jboss.cache.eviction
Class LFUConfiguration

java.lang.Object
  extended by org.jboss.cache.config.ConfigurationComponent
      extended by org.jboss.cache.eviction.EvictionPolicyConfigBase
          extended by org.jboss.cache.eviction.LFUConfiguration
All Implemented Interfaces:
Serializable, Cloneable, EvictionPolicyConfig

public class LFUConfiguration
extends EvictionPolicyConfigBase

Configuration implementation for LFUPolicy.

If configured via XML, expects the following:

 
    10
    20
 
 

Version:
$Revision: 5671 $
Author:
Daniel Huang (dhuang@jboss.org)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.cache.config.ConfigurationComponent
log
 
Constructor Summary
LFUConfiguration()
           
 
Method Summary
 LFUConfiguration clone()
           
 boolean equals(Object obj)
           
 int getMinNodes()
           
 int hashCode()
           
protected  void setEvictionPolicyClassName()
          This method should be overridden by subclass implementers to set the default policy class name for the subclass.
 void setMinNodes(int minNodes)
           
 String toString()
           
 
Methods inherited from class org.jboss.cache.eviction.EvictionPolicyConfigBase
getEvictionPolicyClass, getMaxNodes, getMinTimeToLiveSeconds, reset, setEvictionPolicyClass, setMaxNodes, setMinTimeToLiveSeconds, validate
 
Methods inherited from class org.jboss.cache.config.ConfigurationComponent
addChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutability
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LFUConfiguration

public LFUConfiguration()
Method Detail

setEvictionPolicyClassName

protected void setEvictionPolicyClassName()
Description copied from class: EvictionPolicyConfigBase
This method should be overridden by subclass implementers to set the default policy class name for the subclass. This will be called when the implementation is constructed, but is also called in EvictionPolicyConfigBase.reset().

Specified by:
setEvictionPolicyClassName in class EvictionPolicyConfigBase

getMinNodes

public int getMinNodes()

setMinNodes

public void setMinNodes(int minNodes)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class EvictionPolicyConfigBase

hashCode

public int hashCode()
Overrides:
hashCode in class EvictionPolicyConfigBase

clone

public LFUConfiguration clone()
                       throws CloneNotSupportedException
Overrides:
clone in class ConfigurationComponent
Throws:
CloneNotSupportedException


Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.