net.sourceforge.groboutils.codecoverage.v2.logger
Class CacheDirChannelLoggerFactory

java.lang.Object
  extended bynet.sourceforge.groboutils.codecoverage.v2.logger.CacheDirChannelLoggerFactory
All Implemented Interfaces:
IChannelLoggerFactory

public class CacheDirChannelLoggerFactory
extends java.lang.Object
implements IChannelLoggerFactory

This is the same as the DirectoryChannelLoggerFactory, except that it caches the files as open.

Since:
May 9, 2003
Version:
$Date: 2003/05/23 22:37:56 $
Author:
Matt Albrecht groboclown@users.sourceforge.net

Field Summary
static java.lang.String CACHESIZE_PROPERTY
           
static int DEFAULT_CACHESIZE
           
static java.lang.String DEFAULT_DIRECTORY
           
static java.lang.String DIRECTORY_PROPERTY
           
 
Constructor Summary
CacheDirChannelLoggerFactory()
           
 
Method Summary
 IChannelLogger createChannelLogger(java.lang.String propertyPrefix, java.util.Properties props, short channelIndex)
          Creates a specific logger type.
protected  int getCacheSize(java.lang.String propertyPrefix, java.util.Properties props)
           
protected  java.lang.String getDirectory(java.lang.String propertyPrefix, java.util.Properties props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIRECTORY_PROPERTY

public static final java.lang.String DIRECTORY_PROPERTY
See Also:
Constant Field Values

DEFAULT_DIRECTORY

public static final java.lang.String DEFAULT_DIRECTORY
See Also:
Constant Field Values

CACHESIZE_PROPERTY

public static final java.lang.String CACHESIZE_PROPERTY
See Also:
Constant Field Values

DEFAULT_CACHESIZE

public static final int DEFAULT_CACHESIZE
See Also:
Constant Field Values
Constructor Detail

CacheDirChannelLoggerFactory

public CacheDirChannelLoggerFactory()
Method Detail

createChannelLogger

public IChannelLogger createChannelLogger(java.lang.String propertyPrefix,
                                          java.util.Properties props,
                                          short channelIndex)
Creates a specific logger type. Initializes the logger based on the given collection of properties.

Specified by:
createChannelLogger in interface IChannelLoggerFactory
Parameters:
propertyPrefix - the prefix that all logger properties will begin with. Expect all logger-specific properties to be appended directly to this string.
props - the property collection to pull the logger properties from.
channelIndex - channel number to log to.
Returns:
the initialized logger.

getDirectory

protected java.lang.String getDirectory(java.lang.String propertyPrefix,
                                        java.util.Properties props)

getCacheSize

protected int getCacheSize(java.lang.String propertyPrefix,
                           java.util.Properties props)


Copyright © 2001-2003 by The GroboUtils Project