org.oddjob.logging.cache
Class StructuralArchiverCache
java.lang.Object
org.oddjob.logging.cache.AbstractArchiverCache
org.oddjob.logging.cache.StructuralArchiverCache
- All Implemented Interfaces:
- LogArchiverCache
public class StructuralArchiverCache
- extends AbstractArchiverCache
A Cache for Log Events. This cache tracks changes to the structure of
the component tree and adds and removes LogArchives.
- Author:
- Rob Gordon.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StructuralArchiverCache
public StructuralArchiverCache(Object root,
ArchiveNameResolver resolver)
- Construct a LogArchiver archiving message from the given root object
and all it's children.
- Parameters:
root
- The root object.resolver
- A reslover which resolves archive name, either locally
or using a remote url.
StructuralArchiverCache
public StructuralArchiverCache(Object root,
int maxHistory,
ArchiveNameResolver resolver)
- Construct a LogArchiver archiving message from the given root object
and all it's children with the given amount of history.
- Parameters:
root
- The root object.maxHistory
- The number of lines to store for each loggerresolver
- A reslover which resolves archive name, either locally
or using a remote url.
destroy
public void destroy()
- Specified by:
destroy
in interface LogArchiverCache
- Specified by:
destroy
in class AbstractArchiverCache