|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.groboutils.codecoverage.v2.logger.AbstractSingleSourceLoggerFactory
A shared mark writer.
Field Summary | |
static java.lang.String |
MILLIS_PER_FLUSH_PROP
|
static java.lang.String |
USE_CACHE_PROP
|
static java.lang.String |
WRITES_PER_FLUSH_PROP
|
Constructor Summary | |
AbstractSingleSourceLoggerFactory()
|
Method Summary | |
protected void |
addShutdownHook()
|
void |
cover(short channelIndex,
java.lang.String classSig,
short methodIndex,
short markIndex)
Outputs all the data associated with a probe to the shared single source. |
IChannelLogger |
createChannelLogger(java.lang.String propertyPrefix,
java.util.Properties props,
short channelIndex)
Creates a specific logger type. |
void |
run()
This is the shutdown hook. |
protected void |
setReloadSourceAfterError(boolean yes)
Set to true if you want to try to reconnect to the source everytime the I/O write fails. |
protected void |
setupProps(java.lang.String prefix,
java.util.Properties props)
Extend this method to setup your own properties. |
protected abstract java.io.Writer |
setupSource()
Setup the source writer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String WRITES_PER_FLUSH_PROP
public static final java.lang.String MILLIS_PER_FLUSH_PROP
public static final java.lang.String USE_CACHE_PROP
Constructor Detail |
public AbstractSingleSourceLoggerFactory()
Method Detail |
public IChannelLogger createChannelLogger(java.lang.String propertyPrefix, java.util.Properties props, short channelIndex)
IChannelLoggerFactory
createChannelLogger
in interface IChannelLoggerFactory
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.
public void cover(short channelIndex, java.lang.String classSig, short methodIndex, short markIndex)
cover
in interface ISingleSource
public void run()
run
in interface java.lang.Runnable
protected abstract java.io.Writer setupSource()
protected void setupProps(java.lang.String prefix, java.util.Properties props)
protected void setReloadSourceAfterError(boolean yes)
protected void addShutdownHook()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |