|
Kieker 1.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kieker.analysis.analysisComponent.AbstractAnalysisComponent kieker.analysis.plugin.AbstractPlugin
public abstract class AbstractPlugin
Do not inherit directly from this class! Instead inherit from the class AbstractFilterPlugin
or
AbstractReaderPlugin
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface kieker.analysis.plugin.IPlugin |
---|
IPlugin.PluginInputPortReference, IPlugin.STATE |
Field Summary |
---|
Fields inherited from class kieker.analysis.analysisComponent.AbstractAnalysisComponent |
---|
CONFIG_NAME |
Constructor Summary | |
---|---|
AbstractPlugin(Configuration configuration,
IProjectContext projectContext)
Each Plugin requires a constructor with a Configuration object and a IProjectContext. |
Method Summary | |
---|---|
boolean |
areAllRepositoryPortsConnected()
This method checks whether all repository ports of the current plugin are connected. |
static void |
connect(AbstractPlugin src,
String outputPortName,
AbstractPlugin dst,
String inputPortName)
This method connects two plugins. |
void |
connect(String reponame,
AbstractRepository repository)
Connects the given repository to this plugin via the given name. |
String[] |
getAllDisplayNames()
Delivers an array containing all display names. |
String[] |
getAllInputPortNames()
Delivers an array containing all input port names. |
String[] |
getAllOutputPortNames()
Delivers an array containing all output port names. |
String[] |
getAllRepositoryPortNames()
Delivers an array containing all repository port names. |
List<IPlugin.PluginInputPortReference> |
getConnectedPlugins(String outputPortName)
Delivers the plugins with their ports which are connected with the given output port. |
Map<String,AbstractRepository> |
getCurrentRepositories()
This method delivers an array of AbstractRepository containing the current repositories of this instance. |
Set<AbstractPlugin> |
getIncomingPlugins(boolean transitive)
Returns the plugins which provide data to this plugin. |
String |
getPluginDescription()
This method delivers the description of this plugin type. |
String |
getPluginName()
This method delivers the plugin name of this plugin. |
IPlugin.STATE |
getState()
|
static boolean |
isConnectionAllowed(AbstractPlugin src,
String output,
AbstractPlugin dst,
String input)
This method checks whether two plugins can be connected. |
void |
shutdown(boolean error)
Initializes a shutdown of this and all incoming plugins. |
boolean |
start()
Starts this plugin. |
Methods inherited from class kieker.analysis.analysisComponent.AbstractAnalysisComponent |
---|
getCurrentConfiguration, getName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface kieker.analysis.plugin.IPlugin |
---|
getCurrentConfiguration, getName, init, terminate |
Constructor Detail |
---|
public AbstractPlugin(Configuration configuration, IProjectContext projectContext)
configuration
- The configuration for this component.projectContext
- The project context for this component. The component will be registered.Method Detail |
---|
public final void connect(String reponame, AbstractRepository repository) throws AnalysisConfigurationException
AnalysisController.connect
instead!
connect
in interface IPlugin
reponame
- The name of the port to connect the repository.repository
- The repository which should be used.
AnalysisConfigurationException
- if the repository-port is invalid, the repository itself is incompatible or the port is already used.public static final void connect(AbstractPlugin src, String outputPortName, AbstractPlugin dst, String inputPortName) throws AnalysisConfigurationException
AnalysisController.connect
instead!
src
- The source plugin.outputPortName
- The output port of the source plugin.dst
- The destination plugin.inputPortName
- The input port of the destination port.
AnalysisConfigurationException
- if any given plugin is invalid, any output or input port doesn't exist or if they are incompatible.
Furthermore the destination plugin must not be a reader.public static final boolean isConnectionAllowed(AbstractPlugin src, String output, AbstractPlugin dst, String input)
src
- The source plugin.output
- The output port of the source plugin.dst
- The destination plugin.input
- The input port of the destination port.
public final String getPluginName()
getPluginName
in interface IPlugin
public final String getPluginDescription()
getPluginDescription
in interface IPlugin
public final boolean areAllRepositoryPortsConnected()
public final Map<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.
getCurrentRepositories
in interface IPlugin
public final String[] getAllOutputPortNames()
getAllOutputPortNames
in interface IPlugin
public final String[] getAllInputPortNames()
getAllInputPortNames
in interface IPlugin
public final String[] getAllDisplayNames()
getAllDisplayNames
in interface IPlugin
public final String[] getAllRepositoryPortNames()
getAllRepositoryPortNames
in interface IPlugin
public final List<IPlugin.PluginInputPortReference> getConnectedPlugins(String outputPortName)
getConnectedPlugins
in interface IPlugin
outputPortName
- The name of the output port.
public final IPlugin.STATE getState()
getState
in interface IPlugin
public final boolean start()
public final void shutdown(boolean error)
error
- A flag determining whether this plugin has to be shutdown due to an error or not.public Set<AbstractPlugin> getIncomingPlugins(boolean transitive)
transitive
- Denotes whether indirect (i.e. non-immediate) providers should be returned
|
Kieker 1.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |