org.apache.cocoon.components.store.impl
Class CocoonStoreJanitor

java.lang.Object
  extended byorg.apache.cocoon.components.store.impl.StoreJanitorImpl
      extended byorg.apache.cocoon.components.store.impl.CocoonStoreJanitor
All Implemented Interfaces:
Runnable, StoreJanitor

public class CocoonStoreJanitor
extends StoreJanitorImpl

The CocoonStoreJanitor class just subclasses the StoreJanitorImpl to overwrite the start method for background thread creation using the Cocoon RunnableManager.

Version:
$Id: CocoonStoreJanitor.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
 
Fields inherited from class org.apache.cocoon.components.store.impl.StoreJanitorImpl
interval, inUse, invokeGC
 
Fields inherited from interface org.apache.excalibur.store.StoreJanitor
ROLE
 
Constructor Summary
CocoonStoreJanitor()
           
 
Method Summary
 void run()
          The "checker" thread checks if memory is running low in the jvm.
 void setRunnableManager(org.apache.cocoon.thread.RunnableManager runnableManager)
          Set the RunnableManager
 void setThreadPool(String threadPool)
          Name of the thread pool to use.
 void start()
          Start this instance using a default thread from the RunnableManager
 
Methods inherited from class org.apache.cocoon.components.store.impl.StoreJanitorImpl
checkMemory, destroy, getLogger, init, iterator, memoryInUse, register, setAdaptiveThreadInterval, setCleanupThreadInterval, setFreeingAlgorithm, setFreeMemory, setHeapSize, setInvokeGC, setLogger, setPercentToFree, setThreadPriority, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CocoonStoreJanitor

public CocoonStoreJanitor()
Method Detail

setThreadPool

public void setThreadPool(String threadPool)
Name of the thread pool to use. If not specified, defaults to 'daemon'.

Parameters:
threadPool -

setRunnableManager

public void setRunnableManager(org.apache.cocoon.thread.RunnableManager runnableManager)
Set the RunnableManager

Parameters:
runnableManager -

run

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

Specified by:
run in interface Runnable
Overrides:
run in class StoreJanitorImpl

start

public void start()
Start this instance using a default thread from the RunnableManager



Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.