Package kieker.analysis.plugin
Interface IPlugin
- All Superinterfaces:
IAnalysisComponent
- All Known Subinterfaces:
IFilterPlugin,IReaderPlugin
- All Known Implementing Classes:
AbstractAggregatedCallTreeFilter,AbstractCallTreeFilter,AbstractDependencyGraphFilter,AbstractExecutionTraceProcessingFilter,AbstractFilterPlugin,AbstractGraphFilter,AbstractGraphProducingFilter,AbstractInvalidExecutionTraceProcessingFilter,AbstractMessageTraceProcessingFilter,AbstractPlugin,AbstractRawDataReader,AbstractReaderPlugin,AbstractStringRegistryReaderPlugin,AbstractTraceAnalysisFilter,AbstractTraceProcessingFilter,AbstractUpdateableFilterPlugin,AggregatedAllocationComponentOperationCallTreeFilter,AggregatedAssemblyComponentOperationCallTreeFilter,AmqpReader,AnalysisThroughputFilter,AsciiLogReader,BinaryLogReader,ComponentDependencyGraphAllocationFilter,ComponentDependencyGraphAssemblyFilter,ContainerDependencyGraphFilter,CountingFilter,CurrentTimeEventGenerationFilter,DbReader,DescriptionDecoratorFilter,EventRecordTraceCounter,EventRecordTraceReconstructionFilter,ExecutionRecordTransformationFilter,ExecutionTraceWriterFilter,FSReader,GraphWriterPlugin,InvalidExecutionTraceWriterFilter,JmsReader,JmxReader,KafkaReader,ListCollectionFilter,ListReader,MessageTraceWriterFilter,MonitoringThroughputFilter,OperationDependencyGraphAllocationFilter,OperationDependencyGraphAssemblyFilter,PipeReader,RawDataReaderPlugin,RealtimeRecordDelayFilter,SequenceDiagramFilter,SessionReconstructionFilter,StringBufferFilter,TeeFilter,ThreadEvent2TraceEventFilter,TimeReader,TimestampFilter,TraceAggregationFilter,TraceCallTreeFilter,TraceColoringFilter,TraceEquivalenceClassFilter,TraceEventRecords2ExecutionAndMessageTraceFilter,TraceIdFilter,TraceReconstructionFilter,TypeFilter
Deprecated.
since 1.15.1 old plugin api
This is the interface for plugins within Kieker.
- Since:
- 1.5
- Author:
- Nils Christian Ehmke, Jan Waller
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classDeprecated.This simple class represents a container for the reference between a plugin, its input port and the corresponding method.static enumDeprecated.An enumeration used to describe the state of anAbstractPlugin. -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(String name, AbstractRepository repo) Deprecated.Connects the given repository to this plugin via the given name.String[]Deprecated.Delivers an array containing all display names.String[]Deprecated.Delivers an array containing all input port names.String[]Deprecated.Delivers an array containing all output port names.String[]Deprecated.Delivers an array containing all repository port names.getConnectedPlugins(String outputPortName) Deprecated.Delivers the plugins with their ports which are connected with the given output port.Deprecated.This method should deliver aConfigurationobject containing the current configuration of this instance.Deprecated.This method delivers an array ofAbstractRepositorycontaining the current repositories of this instance.getName()Deprecated.This method delivers the current name of this plugin instance.Deprecated.This method delivers the description of this plugin type.Deprecated.This method delivers the plugin name of this plugin.getState()Deprecated.booleaninit()Deprecated.Initiates the start of a component.voidterminate(boolean error) Deprecated.Initiates a termination of the plugin.
-
Method Details
-
init
boolean init()Deprecated.Initiates the start of a component. This method is called once when a AnalysisController's run() method is called. This implementation must not be blocking! Asynchronous consumers would spawn (an) asynchronous thread(s) in this method.- Returns:
- true on success; false otherwise.
- Since:
- 1.6
-
terminate
void terminate(boolean error) Deprecated.Initiates a termination of the plugin. This method is only used by the framework and should not be called manually. Use the methodAnalysisController.terminate(boolean)instead. After receiving this notification, the plugin should terminate any running methods, e.g., read for readers.- Parameters:
error- Determines whether the plugin is terminated due to an error or not.- Since:
- 1.6
-
getCurrentConfiguration
Configuration getCurrentConfiguration()Deprecated.This method should deliver aConfigurationobject 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.- Specified by:
getCurrentConfigurationin interfaceIAnalysisComponent- Returns:
- A completely filled configuration object.
- Since:
- 1.5
-
getPluginName
String getPluginName()Deprecated.This method delivers the plugin name of this plugin. The name should be unique, e.g., the classname.- Returns:
- The name of the plugin.
- Since:
- 1.5
-
getPluginDescription
String getPluginDescription()Deprecated.This method delivers the description of this plugin type.- Returns:
- The description of the plugin type.
- Since:
- 1.5
-
getName
String getName()Deprecated.This method delivers the current name of this plugin instance. The name does not have to be unique.- Specified by:
getNamein interfaceIAnalysisComponent- Returns:
- The current name of the plugin instance.
- Since:
- 1.5
-
connect
Deprecated.Connects the given repository to this plugin via the given name. DO NOT USE THIS METHOD! UseAnalysisController.connectinstead!- Parameters:
name- The name of the port to connect the repository.repo- The repository which should be used.- Throws:
AnalysisConfigurationException- if the repository-port is invalid, the repository itself is incompatible or the port is already used.- Since:
- 1.5
-
getCurrentRepositories
Map<String,AbstractRepository> getCurrentRepositories()Deprecated.This method delivers an array ofAbstractRepositorycontaining 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.- Returns:
- An (possible empty) array of repositories.
- Since:
- 1.5
-
getAllOutputPortNames
String[] getAllOutputPortNames()Deprecated.Delivers an array containing all output port names.- Returns:
- An array with all available output port names.
- Since:
- 1.5
-
getAllInputPortNames
String[] getAllInputPortNames()Deprecated.Delivers an array containing all input port names.- Returns:
- An array with all available input port names.
- Since:
- 1.5
-
getAllDisplayNames
String[] getAllDisplayNames()Deprecated.Delivers an array containing all display names.- Returns:
- An array with all available display names.
- Since:
- 1.6
-
getAllRepositoryPortNames
String[] getAllRepositoryPortNames()Deprecated.Delivers an array containing all repository port names.- Returns:
- An array with all available repository port names.
- Since:
- 1.7
-
getConnectedPlugins
Deprecated.Delivers the plugins with their ports which are connected with the given output port.- Parameters:
outputPortName- The name of the output port.- Returns:
- An array of pairs, whereat the first element is the plugin and the second one the name of the input port. If the given output port is invalid, null is returned
- Since:
- 1.5
-
getState
IPlugin.STATE getState()Deprecated.- Returns:
- the current state of the plugin
- Since:
- 1.6
-