G
- The graph that is processed by this filterV
- The vertex type of the graphE
- The edge type of the graphO
- The type of the graph's elements originspublic abstract class AbstractGraphFilter<G extends AbstractGraph<V,E,O>,V extends AbstractVertex<V,E,O>,E extends AbstractEdge<V,E,O>,O> extends AbstractFilterPlugin implements IGraphOutputtingFilter<G>
IPlugin.PluginInputPortReference, IPlugin.STATE
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INPUT_PORT_NAME_GRAPH
The name of the filter's graph input port.
|
CONFIG_NAME, log, LOG, projectContext, recordsTimeUnitFromProjectContext
OUTPUT_PORT_NAME_GRAPH
Constructor and Description |
---|
AbstractGraphFilter(Configuration configuration,
IProjectContext projectContext)
Creates a new filter with the given configuration.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
getCurrentConfiguration()
This method should deliver a
Configuration object containing the current configuration of this instance. |
protected abstract IOriginRetentionPolicy |
getDesiredOriginRetentionPolicy() |
java.lang.String |
getGraphInputPortName()
Returns the name of the port this filter accepts graphs on.
|
java.lang.String |
getGraphOutputPortName()
Returns the name of the port this filter uses to emit the graph.
|
boolean |
init()
Initiates the start of a component.
|
protected void |
notifyNewIncomingConnection(java.lang.String inputPortName,
AbstractPlugin connectedPlugin,
java.lang.String outputPortName)
Notification method which is called when a new incoming connection to this plugin is established.
|
protected abstract G |
performConcreteGraphProcessing(G graph)
This method encapsulates the concrete graph processing performed by the concrete filters.
|
void |
processGraph(G graph)
Processes the given graph.
|
terminate
areAllRepositoryPortsConnected, connect, connect, deliver, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getDefaultConfiguration, getIncomingPlugins, getPluginDescription, getPluginName, getRepository, getState, isConnectionAllowed, 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 INPUT_PORT_NAME_GRAPH
public AbstractGraphFilter(Configuration configuration, IProjectContext projectContext)
configuration
- The filter configuration to useprojectContext
- The project context to use.protected void notifyNewIncomingConnection(java.lang.String inputPortName, AbstractPlugin connectedPlugin, java.lang.String outputPortName) throws AnalysisConfigurationException
AbstractPlugin
notifyNewIncomingConnection
in class AbstractPlugin
inputPortName
- The input port name to which the connection was establishedconnectedPlugin
- The plugin that was connectedoutputPortName
- The opposing plugin's output port from which the connection was establishedAnalysisConfigurationException
- If an error occurs while processing of this notificationpublic boolean init()
AbstractFilterPlugin
init
in interface IPlugin
init
in class AbstractFilterPlugin
protected abstract IOriginRetentionPolicy getDesiredOriginRetentionPolicy() throws AnalysisConfigurationException
AnalysisConfigurationException
public Configuration getCurrentConfiguration()
AbstractAnalysisComponent
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 processGraph(G graph)
graph
- The graph to processpublic java.lang.String getGraphOutputPortName()
getGraphOutputPortName
in interface IGraphOutputtingFilter<G extends AbstractGraph<V,E,O>>
public java.lang.String getGraphInputPortName()
Copyright 2017 Kieker Project, http://kieker-monitoring.net