public abstract class AbstractUpdateableFilterPlugin extends AbstractFilterPlugin
AbstractFilterPlugin with possibilities to update properties that are marked as updateable.IPlugin.PluginInputPortReference, IPlugin.STATECONFIG_NAME, configuration, logger, projectContext, recordsTimeUnitFromProjectContext| Constructor and Description |
|---|
AbstractUpdateableFilterPlugin(Configuration configuration,
IProjectContext projectContext)
Each Plugin requires a constructor with a Configuration object and an IProjectContext.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPropertyUpdateable(java.lang.String propertyName)
Checks whether the property with the given name is marked as updateable.
|
abstract void |
setCurrentConfiguration(Configuration config,
boolean update)
Set current configuration.
|
init, terminateareAllRepositoryPortsConnected, connect, connect, deliver, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getDefaultConfiguration, getIncomingPlugins, getPluginDescription, getPluginName, getRepository, getState, isConnectionAllowed, notifyNewIncomingConnection, notifyNewOutgoingConnection, shutdown, startgetCurrentConfiguration, getNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentConfiguration, getCurrentRepositories, getName, getPluginDescription, getPluginName, getStatepublic AbstractUpdateableFilterPlugin(Configuration configuration, IProjectContext projectContext)
configuration - The configuration for this component.projectContext - The project context for this component. The component will be registered.public abstract void setCurrentConfiguration(Configuration config, boolean update)
// The following condition is true, if key exists in config object AND (update and isUpdateable is true OR update is false)
if(!update || isPropertyUpdateable(CONFIG_PROPERTY_PROP_NAME)) {
this.localProperty = config.getLongProperty(CONFIG_PROPERTY_PROP_NAME);
}
config - Configuration object that contains the configuration to be set.update - If false, set all properties, else overwrite only properties that are marked as updateablepublic boolean isPropertyUpdateable(java.lang.String propertyName)
propertyName - Name of the property to checkCopyright 2020 Kieker Project, http://kieker-monitoring.net