T - public abstract class AbstractCallTreeFilter<T> extends AbstractMessageTraceProcessingFilter
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractCallTreeFilter.IPairFactory<T> |
| Constructor and Description |
|---|
AbstractCallTreeFilter(SystemModelRepository repository)
Creates a new instance of this class using the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
protected static <T> void |
addTraceToTree(AbstractCallTreeNode<T> root,
MessageTrace trace,
AbstractCallTreeFilter.IPairFactory<T> pairFactory,
boolean aggregated)
Adds the given trace to the given tree.
|
protected static java.lang.String |
nodeLabel(AbstractCallTreeNode<?> node,
boolean shortLabels)
Add a node label.
|
protected static void |
saveTreeToDotFile(AbstractCallTreeNode<?> root,
java.lang.String outputFn,
boolean includeWeights,
boolean includeEois,
boolean shortLabels)
This method saves the given tree as valid dot code into the given file.
|
static <T> void |
writeDotForMessageTrace(AbstractCallTreeNode<T> root,
AbstractCallTreeFilter.IPairFactory<T> pairFactory,
MessageTrace msgTrace,
java.lang.String outputFilename,
boolean includeWeights,
boolean shortLabels)
Write dot info for message trace.
|
executegetErrorCount, getLastTraceIdError, getLastTraceIdSuccess, getSuccessCount, getTotalCount, printStatusMessage, reportError, reportSuccesscreateExecutionByEntityNames, createExecutionByEntityNames, createExecutionByEntityNames, createExecutionByEntityNames, getSystemModelRepository, printDebugLogMessage, printErrorLogMessagecreateInputPort, execute, getInputPortabort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, getTerminationStrategy, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onTerminating, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompletedpublic AbstractCallTreeFilter(SystemModelRepository repository)
configuration - The configuration for this component.projectContext - The project context for this component.protected static final java.lang.String nodeLabel(AbstractCallTreeNode<?> node, boolean shortLabels)
node - the nodeshortLabels - selects whether short or long labels should be producedprotected static void saveTreeToDotFile(AbstractCallTreeNode<?> root, java.lang.String outputFn, boolean includeWeights, boolean includeEois, boolean shortLabels) throws java.io.IOException
root - The root of the tree.outputFn - The file in which the code will be written.includeWeights - Determines whether to include weights or not.includeEois - Determines whether to include the execution order indices or not.shortLabels - Determines whether to use short labels or not.java.io.IOException - on IO errorprotected static <T> void addTraceToTree(AbstractCallTreeNode<T> root, MessageTrace trace, AbstractCallTreeFilter.IPairFactory<T> pairFactory, boolean aggregated) throws TraceProcessingException
T - The type of the tree.root - The root of the call tree.trace - The trace to add.pairFactory - The factory creating the necessary pairs for the tree.aggregated - Determines whether the tree is aggregated or not.TraceProcessingException - If the message type is not supported or the trace is somehow invalid.public static <T> void writeDotForMessageTrace(AbstractCallTreeNode<T> root, AbstractCallTreeFilter.IPairFactory<T> pairFactory, MessageTrace msgTrace, java.lang.String outputFilename, boolean includeWeights, boolean shortLabels) throws TraceProcessingException, java.io.IOException
T - type of traceroot - rootpairFactory - factory to create pairsmsgTrace - message traceoutputFilename - output fileincludeWeights - weightsshortLabels - flag for short labelsTraceProcessingException - when there is a processing error with the tracejava.io.IOExceptionCopyright 2021 Kieker Project, http://kieker-monitoring.net