public class GraphWriterPlugin extends AbstractFilterPlugin
FORMATTER_REGISTRY
) to determine the appropriate formatter for a
given graph.IPlugin.PluginInputPortReference, IPlugin.STATE
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_PROPERTY_NAME_INCLUDE_WEIGHTS
Name of the configuration property indicating that weights should be included.
|
static java.lang.String |
CONFIG_PROPERTY_NAME_OUTPUT_FILE_NAME
Name of the configuration property containing the output file name.
|
static java.lang.String |
CONFIG_PROPERTY_NAME_OUTPUT_PATH_NAME
Name of the configuration property containing the output path name.
|
static java.lang.String |
CONFIG_PROPERTY_NAME_SELFLOOPS
Name of the configuration property indicating that self-loops should be displayed.
|
static java.lang.String |
CONFIG_PROPERTY_NAME_SHORTLABELS
Name of the configuration property indicating that short labels should be used.
|
static java.lang.String |
INPUT_PORT_NAME_GRAPHS
Name of the plugin's graph input port.
|
CONFIG_NAME, configuration, logger, projectContext, recordsTimeUnitFromProjectContext
Constructor and Description |
---|
GraphWriterPlugin(Configuration configuration,
IProjectContext projectContext)
Creates a new instance of this class using the given parameters.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
getCurrentConfiguration()
This method should deliver a
Configuration object containing the current configuration of this instance. |
void |
writeGraph(AbstractGraph<?,?,?> graph)
Formats a given graph and saves the generated specification to disk.
|
init, terminate
areAllRepositoryPortsConnected, connect, connect, deliver, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getDefaultConfiguration, getIncomingPlugins, getPluginDescription, getPluginName, getRepository, getState, isConnectionAllowed, notifyNewIncomingConnection, notifyNewOutgoingConnection, shutdown, start
getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getName, getPluginDescription, getPluginName, getState
public static final java.lang.String CONFIG_PROPERTY_NAME_OUTPUT_FILE_NAME
public static final java.lang.String CONFIG_PROPERTY_NAME_OUTPUT_PATH_NAME
public static final java.lang.String CONFIG_PROPERTY_NAME_INCLUDE_WEIGHTS
public static final java.lang.String CONFIG_PROPERTY_NAME_SHORTLABELS
public static final java.lang.String CONFIG_PROPERTY_NAME_SELFLOOPS
public static final java.lang.String INPUT_PORT_NAME_GRAPHS
public GraphWriterPlugin(Configuration configuration, IProjectContext projectContext)
configuration
- The configuration for this component.projectContext
- The project context for this component.public Configuration getCurrentConfiguration()
Configuration
object containing the current configuration of this instance. In other words: The constructor should be
able to use the given object to initialize a new instance of this class with the same intern properties.getCurrentConfiguration
in interface IAnalysisComponent
getCurrentConfiguration
in interface IPlugin
getCurrentConfiguration
in class AbstractAnalysisComponent
public void writeGraph(AbstractGraph<?,?,?> graph)
CONFIG_PROPERTY_NAME_OUTPUT_PATH_NAME
and CONFIG_PROPERTY_NAME_OUTPUT_FILE_NAME
.graph
- The graph to saveCopyright 2020 Kieker Project, http://kieker-monitoring.net