| java.lang.Object net.sourceforge.groboutils.codecoverage.v2.logger.DirectoryChannelLogger net.sourceforge.groboutils.codecoverage.v2.logger.CacheDirChannelLogger
CacheDirChannelLogger | public class CacheDirChannelLogger extends DirectoryChannelLogger implements Runnable,HashCache.ObjectManager(Code) | | This is the same as the DirectoryChannelLogger, except that the open
files are cached for access.
Besides some other issues with this (see open bugs), it can cause
issues if multiple loggers are trying to access the same file. This
could happen if the CoverageLogger class is loaded by different class
loaders; as a result, multiple CoverageLogger instances will be created,
allowing for multiple channel loggers to write to the same area.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2004/07/07 09:39:10 $ since: May 9, 2003 |
CacheDirChannelLogger | public CacheDirChannelLogger(File baseDir, int cacheSize)(Code) | | |
addShutdownHook | protected void addShutdownHook()(Code) | | |
cleanUpObject | public void cleanUpObject(Object key, Object obj)(Code) | | Called by HashCache when the given object is being removed from the
cache.
Parameters: key - the key associated with the object. Parameters: obj - the object being cleaned up. |
cover | public void cover(String classSignature, short methodIndex, short markIndex)(Code) | | Records a coverage of a marked bytecode instruction. This method should
never throw an exception.
Parameters: classSignature - a signature of the class file being covered.this signature includes the fully-qualified name of the class,along with a checksum to uniquely identify it. Parameters: methodIndex - index for a method within the class. The meta-datastore will know how to translate the index to a method signature. Parameters: markIndex - the index of the bytecode instruction mark for thisparticular channel. |
run | public void run()(Code) | | Called when the shutdown hook is called.
|
Methods inherited from net.sourceforge.groboutils.codecoverage.v2.logger.DirectoryChannelLogger | public void cover(String classSignature, short methodIndex, short markIndex)(Code)(Java Doc) final protected static char[] createCoverString(short methodIndex, short markIndex)(Code)(Java Doc) final protected static File getClassFile(File basedir, String classSignature)(Code)(Java Doc)
|
|
|