Openfire 3.9.3 Javadoc

org.jivesoftware.openfire.container
Class PluginCacheConfigurator

java.lang.Object
  extended by org.jivesoftware.openfire.container.PluginCacheConfigurator

public class PluginCacheConfigurator
extends Object

A helper class to read cache configuration data for a plugin and register the defined caches with the cache factory. Definitions should look something like this:

 <cache-config>
     <cache-mapping>
           <cache-name>My Cache</cache-name>
           <scheme-name>optimistic</scheme-name>
           <init-params>
               <init-param>
                   <param-name>back-size-high</param-name>
                   <param-value>131072</param-value>
               </init-param>
               <init-param>
                   <param-name>back-expiry</param-name>
                   <param-value>6h</param-value>
               </init-param>
               <init-param>
                   <param-name>back-size-low</param-name>
                   <param-value>117965</param-value>
               </init-param>
           </init-params>
     </cache-mapping>
 </cache-config>
 
 


Constructor Summary
PluginCacheConfigurator()
           
 
Method Summary
 void configure(String pluginName)
           
 void setInputStream(InputStream configDataStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginCacheConfigurator

public PluginCacheConfigurator()
Method Detail

setInputStream

public void setInputStream(InputStream configDataStream)

configure

public void configure(String pluginName)

Openfire 3.9.3 Javadoc

Copyright © 2003-2008 Jive Software.