Package kieker.visualization.trace
Class GraphWriterPlugin
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<AbstractGraph<?,?,?>>
kieker.visualization.trace.GraphWriterPlugin
public class GraphWriterPlugin extends teetime.framework.AbstractConsumerStage<AbstractGraph<?,?,?>>
Generic graph writer plugin to generate graph specifications and save them to disk. This plugin uses
a formatter registry (see
FORMATTER_REGISTRY
) to determine the appropriate formatter for a
given graph.- Since:
- 1.6
- Author:
- Holger Knoche
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GraphWriterPlugin(java.lang.String outputPathName, java.lang.String outputFileName, boolean includeWeights, boolean useShortLabels, boolean plotLoops)
Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and Type Method Description protected void
execute(AbstractGraph<?,?,?> graph)
Formats a given graph and saves the generated specification to disk.Methods inherited from class teetime.framework.AbstractConsumerStage
createInputPort, execute, getInputPort
Methods inherited from class teetime.framework.AbstractStage
abort, 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, workCompleted
-
Constructor Details
-
GraphWriterPlugin
public GraphWriterPlugin(java.lang.String outputPathName, java.lang.String outputFileName, boolean includeWeights, boolean useShortLabels, boolean plotLoops)Creates a new instance of this class using the given parameters.- Parameters:
outputPathName
- base path name for the output directoryoutputFileName
- filename to be used within the directoryincludeWeights
- include weights in plottinguseShortLabels
- use short labelsplotLoops
- plot loops
-
-
Method Details
-
execute
Formats a given graph and saves the generated specification to disk. The file name to save the output to is specified by a the configuration options#CONFIG_PROPERTY_NAME_OUTPUT_PATH_NAME
and#CONFIG_PROPERTY_NAME_OUTPUT_FILE_NAME
.- Specified by:
execute
in classteetime.framework.AbstractConsumerStage<AbstractGraph<?,?,?>>
- Parameters:
graph
- The graph to save- Throws:
java.lang.Exception
-