org.jboss.cache.eviction
Class LFUAlgorithmConfig

java.lang.Object
  extended by org.jboss.cache.config.ConfigurationComponent
      extended by org.jboss.cache.eviction.EvictionAlgorithmConfigBase
          extended by org.jboss.cache.eviction.LFUAlgorithmConfig
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent, EvictionAlgorithmConfig

public class LFUAlgorithmConfig
extends EvictionAlgorithmConfigBase

Configuration implementation for LFUAlgorithm.

Since:
3.0
Author:
Manik Surtani
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.cache.eviction.EvictionAlgorithmConfigBase
evictionAlgorithmClassName, maxNodes, minTimeToLive
 
Fields inherited from class org.jboss.cache.config.ConfigurationComponent
log
 
Constructor Summary
LFUAlgorithmConfig()
           
LFUAlgorithmConfig(int maxNodes, int minNodes)
           
 
Method Summary
 LFUAlgorithmConfig clone()
           
 boolean equals(Object obj)
           
 int getMinNodes()
           
 int hashCode()
           
 void reset()
          Resets the values to their defaults.
 void setMinNodes(int minNodes)
           
 String toString()
           
 
Methods inherited from class org.jboss.cache.eviction.EvictionAlgorithmConfigBase
getEvictionAlgorithmClassName, getMaxNodes, getMinTimeToLive, setMaxNodes, setMinTimeToLive, setMinTimeToLive, 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

LFUAlgorithmConfig

public LFUAlgorithmConfig()

LFUAlgorithmConfig

public LFUAlgorithmConfig(int maxNodes,
                          int minNodes)
Method Detail

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 EvictionAlgorithmConfigBase

hashCode

public int hashCode()
Overrides:
hashCode in class EvictionAlgorithmConfigBase

clone

public LFUAlgorithmConfig clone()
                         throws CloneNotSupportedException
Specified by:
clone in interface CloneableConfigurationComponent
Specified by:
clone in interface EvictionAlgorithmConfig
Overrides:
clone in class EvictionAlgorithmConfigBase
Returns:
a clone of the EvictionAlgorithmConfig.
Throws:
CloneNotSupportedException

reset

public void reset()
Description copied from interface: EvictionAlgorithmConfig
Resets the values to their defaults.

Specified by:
reset in interface EvictionAlgorithmConfig
Overrides:
reset in class EvictionAlgorithmConfigBase


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