org.apache.cocoon.components.store
Class StoreJanitorImpl

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.store.StoreJanitorImpl
All Implemented Interfaces:
Runnable, Startable, Component, Configurable, LogEnabled, ThreadSafe, StoreJanitor

Deprecated. Use the Avalon Excalibur Store instead.

public class StoreJanitorImpl
extends AbstractLogEnabled
implements StoreJanitor, Configurable, ThreadSafe, Runnable, Startable

This class is a implentation of a StoreJanitor. Store classes can register to the StoreJanitor. When memory is too low, the StoreJanitor frees the registered caches until memory is normal.

Version:
CVS $Id: StoreJanitorImpl.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Christian Schmitt, Gerhard Froehlich, Peter Royal

Field Summary
 
Fields inherited from interface org.apache.cocoon.components.store.StoreJanitor
ROLE
 
Constructor Summary
StoreJanitorImpl()
          Deprecated.  
 
Method Summary
 void configure(Configuration conf)
          Deprecated. Initialize the StoreJanitorImpl.
 Iterator iterator()
          Deprecated. This method return a java.util.Iterator of every registered stores The iterators returned is fail-fast: if list is structurally modified at any time after the iterator is created, in any way, the iterator will throw a ConcurrentModificationException.
 void register(Store store)
          Deprecated. This method register the stores
 void run()
          Deprecated. The "checker" thread checks if memory is running low in the jvm.
 void start()
          Deprecated.  
 void stop()
          Deprecated.  
 void unregister(Store store)
          Deprecated. This method unregister the stores
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreJanitorImpl

public StoreJanitorImpl()
Deprecated. 
Method Detail

configure

public void configure(Configuration conf)
               throws ConfigurationException
Deprecated. 
Initialize the StoreJanitorImpl. A few options can be used :

Specified by:
configure in interface Configurable
Parameters:
conf - the Configuration of the application
Throws:
ConfigurationException

start

public void start()
Deprecated. 
Specified by:
start in interface Startable

stop

public void stop()
Deprecated. 
Specified by:
stop in interface Startable

run

public void run()
Deprecated. 
The "checker" thread checks if memory is running low in the jvm.

Specified by:
run in interface Runnable

register

public void register(Store store)
Deprecated. 
This method register the stores

Specified by:
register in interface StoreJanitor
Parameters:
store - the store to be registered

unregister

public void unregister(Store store)
Deprecated. 
This method unregister the stores

Specified by:
unregister in interface StoreJanitor
Parameters:
store - the store to be unregistered

iterator

public Iterator iterator()
Deprecated. 
This method return a java.util.Iterator of every registered stores The iterators returned is fail-fast: if list is structurally modified at any time after the iterator is created, in any way, the iterator will throw a ConcurrentModificationException. Thus, in the face of concurrent modification, the iterator fails quickly and cleanly, rather than risking arbitrary, non-deterministic behavior at an undetermined time in the future.

Specified by:
iterator in interface StoreJanitor
Returns:
a java.util.Iterator


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.