|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLoggable | +--org.apache.cocoon.components.store.StoreJanitorImpl
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.
Field Summary |
Fields inherited from interface org.apache.cocoon.components.store.StoreJanitor |
ROLE |
Constructor Summary | |
StoreJanitorImpl()
|
Method Summary | |
void |
configure(org.apache.avalon.framework.configuration.Configuration conf)
Initialize the StoreJanitorImpl. |
java.util.Iterator |
iterator()
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)
This method register the stores |
void |
run()
The "checker" thread checks if memory is running low in the jvm. |
void |
start()
|
void |
stop()
|
void |
unregister(Store store)
This method unregister the stores |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StoreJanitorImpl()
Method Detail |
public void configure(org.apache.avalon.framework.configuration.Configuration conf) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
public void start()
start
in interface org.apache.avalon.framework.activity.Startable
public void stop()
stop
in interface org.apache.avalon.framework.activity.Startable
public void run()
run
in interface java.lang.Runnable
public void register(Store store)
register
in interface StoreJanitor
public void unregister(Store store)
unregister
in interface StoreJanitor
public java.util.Iterator iterator()
iterator
in interface StoreJanitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |