|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLoggable | +--org.apache.cocoon.components.store.FilesystemQueueImpl
This class provides a asynchron queue for storing objects on the filesystem. Every store component can uses this component to store object in the configured cache directory.
Fields inherited from interface org.apache.cocoon.components.store.FilesystemQueue |
ROLE |
Constructor Summary | |
FilesystemQueueImpl()
|
Method Summary | |
void |
clear()
Clear all elements from queue. |
void |
compose(org.apache.avalon.framework.component.ComponentManager manager)
Get components of the ComponentManager |
void |
configure(org.apache.avalon.framework.configuration.Configuration conf)
Configure the Filesystem Queue: handlerinterval = Interval of the Queue Handler Thread threadpriority = Priority of the Queue Handler Thread >LI>maxobjects = Defines the max. numbers of Objects in the queue |
void |
contextualize(org.apache.avalon.framework.context.Context context)
Get the context |
void |
dispose()
Dispose the component |
void |
insert(java.lang.Comparable element)
Insert an element into queue. |
boolean |
isEmpty()
Test if queue is empty. |
java.lang.Comparable |
peek()
Return element on top of heap but don't remove it. |
java.lang.Comparable |
pop()
Return element on top of heap and remove it. |
void |
reportSize()
|
void |
run()
|
void |
start()
|
void |
stop()
|
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 FilesystemQueueImpl()
Method Detail |
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
contextualize
in interface org.apache.avalon.framework.context.Contextualizable
the
- Context of the applicationpublic void compose(org.apache.avalon.framework.component.ComponentManager manager) throws org.apache.avalon.framework.component.ComponentException
compose
in interface org.apache.avalon.framework.component.Composable
the
- ComponentManagerpublic void dispose()
dispose
in interface org.apache.avalon.framework.activity.Disposable
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
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 clear()
clear
in interface org.apache.avalon.excalibur.collections.PriorityQueue
public boolean isEmpty()
isEmpty
in interface org.apache.avalon.excalibur.collections.PriorityQueue
public void insert(java.lang.Comparable element)
insert
in interface org.apache.avalon.excalibur.collections.PriorityQueue
element
- the element to be insertedpublic java.lang.Comparable peek() throws java.util.NoSuchElementException
peek
in interface org.apache.avalon.excalibur.collections.PriorityQueue
java.util.NoSuchElementException
- if isEmpty() == truepublic java.lang.Comparable pop() throws java.util.NoSuchElementException
pop
in interface org.apache.avalon.excalibur.collections.PriorityQueue
java.util.NoSuchElementException
- if isEmpty() == truepublic void reportSize()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |