Class QueueFileTracer
- java.lang.Object
-
- de.christofreichardt.diagnosis.AbstractTracer
-
- de.christofreichardt.diagnosis.QueueTracer<FileTracer>
-
- de.christofreichardt.diagnosis.file.QueueFileTracer
-
public class QueueFileTracer extends QueueTracer<FileTracer>
AQueueTracerthat uses aFileTracerinternally.- Author:
- Christof Reichardt
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.christofreichardt.diagnosis.AbstractTracer
AbstractTracer.Exception
-
-
Field Summary
-
Fields inherited from class de.christofreichardt.diagnosis.QueueTracer
tracer
-
Fields inherited from class de.christofreichardt.diagnosis.AbstractTracer
VERSION
-
-
Constructor Summary
Constructors Constructor Description QueueFileTracer(String name)Constructor expects the name of the (internal)FileTracer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathgetLogDirPath()Returns the log directory of the internally usedFileTracer.protected voidreadConfiguration(XPath xpath, Node node)Reads the configuration for this particular tracer instance by evaluating the given node with the given xpath engine.-
Methods inherited from class de.christofreichardt.diagnosis.QueueTracer
clearCurrentTracingContext, close, entry, entry, getBufferSize, getLevel, getThreadMap, initCurrentTracingContext, initCurrentTracingContext, isAutoflush, isOnline, isOpened, logException, logMessage, open, out, out, setAutoflush, setBufferSize, wayout
-
Methods inherited from class de.christofreichardt.diagnosis.AbstractTracer
entry, formatStreamErrorState, formatVersionInfo, getBufferedOutputStream, getLevel, getName, getNullPrintStream, getTracePrintStream, isOnline, setBufferedOutputStream, setOpened, setTracePrintStream
-
-
-
-
Constructor Detail
-
QueueFileTracer
public QueueFileTracer(String name)
Constructor expects the name of the (internal)FileTracer.- Parameters:
name- the name of the tracer
-
-
Method Detail
-
getLogDirPath
public Path getLogDirPath()
Returns the log directory of the internally usedFileTracer.- Returns:
- the log directory
-
readConfiguration
protected void readConfiguration(XPath xpath, Node node) throws XPathExpressionException, AbstractTracer.Exception
Description copied from class:AbstractTracerReads the configuration for this particular tracer instance by evaluating the given node with the given xpath engine.- Overrides:
readConfigurationin classQueueTracer<FileTracer>- Parameters:
xpath- the xpath enginenode- the config node- Throws:
XPathExpressionException- indicates xpath problemsAbstractTracer.Exception- indicates problems when configuring certain tracer instances
-
-