public abstract class AbstractAnalysisComponent extends java.lang.Object implements IAnalysisComponent
AbstractFilterPlugin,
AbstractReaderPlugin or AbstractRepository. This is the base class for all other analysis
components within Kieker, like repositories or plugins. It should therefore only be used by the Kieker components itself as a base.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_NAME
The name of the property for the name.
|
protected Configuration |
configuration
The current configuration of this component.
|
protected org.slf4j.Logger |
logger
The log for this component.
|
protected IProjectContext |
projectContext
The project context (usually the analysis controller) of this component.
|
protected java.util.concurrent.TimeUnit |
recordsTimeUnitFromProjectContext
The record time unit as provided by the project context.
|
| Constructor and Description |
|---|
AbstractAnalysisComponent(Configuration configuration,
IProjectContext projectContext)
Each AnalysisComponent requires a constructor with a Configuration object and a IProjectContext.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Configuration |
getCurrentConfiguration()
This method should deliver a
Configuration object containing the current configuration of this instance. |
protected abstract Configuration |
getDefaultConfiguration()
This method delivers an instance of
Configuration containing the default properties for this class. |
java.lang.String |
getName()
This method delivers the current name of this component instance.
|
public static final java.lang.String CONFIG_NAME
protected final IProjectContext projectContext
protected final Configuration configuration
protected final org.slf4j.Logger logger
protected final java.util.concurrent.TimeUnit recordsTimeUnitFromProjectContext
public AbstractAnalysisComponent(Configuration configuration, IProjectContext projectContext) throws java.lang.NullPointerException
configuration - The configuration for this component.projectContext - The project context for this component. The component will be registered.java.lang.NullPointerException - If configuration or projectContext nullprotected abstract Configuration getDefaultConfiguration()
Configuration containing the default properties for this class.public abstract 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 IAnalysisComponentpublic final java.lang.String getName()
getName in interface IAnalysisComponentCopyright 2020 Kieker Project, http://kieker-monitoring.net