public class DotWriterStage extends teetime.framework.AbstractConsumerStage<IGraph>
IGraph
to given Writer
in the dot file format. The writer
can be configured by a Function
, which maps the graph to a writer. For example, this
allows one write the graph to a file with the name of the graph. For a non generic writer
simply use something like x -> new MyWriter()
.
In addition, this stage can be configured by a DotExportConfiguration
, which specifies
how attributes (for graphs, vertices and edges) are mapped to the dot graph.Modifier and Type | Field and Description |
---|---|
protected DotExportConfiguration |
exportConfiguration |
protected java.util.function.Function<IGraph,java.io.Writer> |
writerMapper |
Constructor and Description |
---|
DotWriterStage(java.util.function.Function<IGraph,java.io.Writer> writerMapper) |
DotWriterStage(java.util.function.Function<IGraph,java.io.Writer> writerMapper,
DotExportConfiguration exportConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected void |
execute(IGraph graph) |
createInputPort, execute, getInputPort
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
protected final java.util.function.Function<IGraph,java.io.Writer> writerMapper
protected final DotExportConfiguration exportConfiguration
public DotWriterStage(java.util.function.Function<IGraph,java.io.Writer> writerMapper)
public DotWriterStage(java.util.function.Function<IGraph,java.io.Writer> writerMapper, DotExportConfiguration exportConfiguration)
Copyright 2020 Kieker Project, http://kieker-monitoring.net