public interface IPlugin extends IAnalysisComponent
| Modifier and Type | Interface and Description |
|---|---|
static class |
IPlugin.PluginInputPortReference
This simple class represents a container for the reference between a plugin, its input port and the corresponding method.
|
static class |
IPlugin.STATE
An enumeration used to describe the state of an
AbstractPlugin. |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(java.lang.String name,
AbstractRepository repo)
Connects the given repository to this plugin via the given name.
|
java.lang.String[] |
getAllDisplayNames()
Delivers an array containing all display names.
|
java.lang.String[] |
getAllInputPortNames()
Delivers an array containing all input port names.
|
java.lang.String[] |
getAllOutputPortNames()
Delivers an array containing all output port names.
|
java.lang.String[] |
getAllRepositoryPortNames()
Delivers an array containing all repository port names.
|
java.util.List<IPlugin.PluginInputPortReference> |
getConnectedPlugins(java.lang.String outputPortName)
Delivers the plugins with their ports which are connected with the given output port.
|
Configuration |
getCurrentConfiguration()
This method should deliver a
Configuration object containing the current configuration of this instance. |
java.util.Map<java.lang.String,AbstractRepository> |
getCurrentRepositories()
This method delivers an array of
AbstractRepository containing the current repositories of this instance. |
java.lang.String |
getName()
This method delivers the current name of this plugin instance.
|
java.lang.String |
getPluginDescription()
This method delivers the description of this plugin type.
|
java.lang.String |
getPluginName()
This method delivers the plugin name of this plugin.
|
IPlugin.STATE |
getState() |
boolean |
init()
Initiates the start of a component.
|
void |
terminate(boolean error)
Initiates a termination of the plugin.
|
boolean init()
void terminate(boolean error)
AnalysisController.terminate(boolean) instead.
After receiving this notification, the plugin should terminate any running
methods, e.g., read for readers.error - Determines whether the plugin is terminated due to an error or not.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 IAnalysisComponentjava.lang.String getPluginName()
java.lang.String getPluginDescription()
java.lang.String getName()
getName in interface IAnalysisComponentvoid connect(java.lang.String name,
AbstractRepository repo)
throws AnalysisConfigurationException
AnalysisController.connect instead!name - The name of the port to connect the repository.repo - The repository which should be used.AnalysisConfigurationException - if the repository-port is invalid, the repository itself is incompatible or the port is already used.java.util.Map<java.lang.String,AbstractRepository> getCurrentRepositories()
AbstractRepository containing the current repositories 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.java.lang.String[] getAllOutputPortNames()
java.lang.String[] getAllInputPortNames()
java.lang.String[] getAllDisplayNames()
java.lang.String[] getAllRepositoryPortNames()
java.util.List<IPlugin.PluginInputPortReference> getConnectedPlugins(java.lang.String outputPortName)
outputPortName - The name of the output port.IPlugin.STATE getState()
Copyright 2020 Kieker Project, http://kieker-monitoring.net