|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.store.StoreJanitorImpl
public class 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()
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 |
|---|
public StoreJanitorImpl()
| Method Detail |
|---|
public void configure(Configuration conf)
throws ConfigurationException
configure in interface Configurableconf - the Configuration of the application
ConfigurationExceptionpublic void start()
start in interface Startablepublic void stop()
stop in interface Startablepublic void run()
run in interface Runnablepublic void register(Store store)
register in interface StoreJanitorstore - the store to be registeredpublic void unregister(Store store)
unregister in interface StoreJanitorstore - the store to be unregisteredpublic Iterator iterator()
iterator in interface StoreJanitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||