Class RealtimeRecordDelayFilter
java.lang.Object
kieker.analysis.analysisComponent.AbstractAnalysisComponent
kieker.analysis.plugin.AbstractPlugin
kieker.analysis.plugin.filter.AbstractFilterPlugin
kieker.analysis.plugin.filter.record.RealtimeRecordDelayFilter
- All Implemented Interfaces:
IAnalysisComponent,IFilterPlugin,IPlugin
@Deprecated public class RealtimeRecordDelayFilter extends AbstractFilterPlugin
Deprecated.
since 1.15.1 old plugin api
Forwards incoming
IMonitoringRecords with delays computed from the
IMonitoringRecord.getLoggingTimestamp() value
(assumed to be in the configured resolution). For example, after
initialization, if records with logging timestamps 3000 and 4500 nanos are
received, the first record is forwarded immediately; the second will be
forwarded 1500 nanos later. The acceleration factor can be used to
accelerate/slow down the replay (default 1.0, which means no
acceleration/slow down).- Since:
- 1.6
-
Nested Class Summary
Nested classes/interfaces inherited from interface kieker.analysis.plugin.IPlugin
IPlugin.PluginInputPortReference, IPlugin.STATE -
Field Summary
Fields Modifier and Type Field Description static doubleCONFIG_PROPERTY_ACCELERATION_FACTOR_DEFAULTDeprecated.static java.lang.StringCONFIG_PROPERTY_NAME_ACCELERATION_FACTORDeprecated.Factor to use for accelerating/slowing down the replay.static java.lang.StringCONFIG_PROPERTY_NAME_ADDITIONAL_SHUTDOWN_DELAY_SECONDSDeprecated.The number of additional seconds to wait before execute the termination (after all records have been forwarded).static java.lang.StringCONFIG_PROPERTY_NAME_NUM_WORKERSDeprecated.The number of threads to be used for the internalThreadPoolExecutor, processing the scheduledIMonitoringRecords.static java.lang.StringCONFIG_PROPERTY_NAME_TIMERDeprecated.The precision of the used timer (MILLISECONDS or NANOSECONDS).static java.lang.StringCONFIG_PROPERTY_NAME_WARN_NEGATIVE_DELAY_SECONDSDeprecated.The number of seconds of negative scheduling time that produces a warning.static java.lang.StringINPUT_PORT_NAME_RECORDSDeprecated.The name of the input port receiving the records.static java.lang.StringOUTPUT_PORT_NAME_RECORDSDeprecated.The name of the output port delivering the delayed records.Fields inherited from class kieker.analysis.analysisComponent.AbstractAnalysisComponent
CONFIG_NAME, configuration, logger, projectContext, recordsTimeUnitFromProjectContext -
Constructor Summary
Constructors Constructor Description RealtimeRecordDelayFilter(kieker.common.configuration.Configuration configuration, IProjectContext projectContext)Deprecated.Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and Type Method Description kieker.common.configuration.ConfigurationgetCurrentConfiguration()Deprecated.This method should deliver aConfigurationobject containing the current configuration of this instance.voidinputRecord(kieker.common.record.IMonitoringRecord monitoringRecord)Deprecated.This method represents the input port of this filter.voidterminate(boolean error)Deprecated.Initiates a termination of the plugin.Methods inherited from class kieker.analysis.plugin.AbstractPlugin
areAllRepositoryPortsConnected, connect, connect, deliver, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getDefaultConfiguration, getIncomingPlugins, getPluginDescription, getPluginName, getRepository, getState, isConnectionAllowed, notifyNewIncomingConnection, notifyNewOutgoingConnection, shutdown, startMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface kieker.analysis.plugin.IPlugin
connect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getName, getPluginDescription, getPluginName, getState
-
Field Details
-
INPUT_PORT_NAME_RECORDS
public static final java.lang.String INPUT_PORT_NAME_RECORDSDeprecated.The name of the input port receiving the records.- See Also:
- Constant Field Values
-
OUTPUT_PORT_NAME_RECORDS
public static final java.lang.String OUTPUT_PORT_NAME_RECORDSDeprecated.The name of the output port delivering the delayed records.- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_NAME_NUM_WORKERS
public static final java.lang.String CONFIG_PROPERTY_NAME_NUM_WORKERSDeprecated.The number of threads to be used for the internalThreadPoolExecutor, processing the scheduledIMonitoringRecords.- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_NAME_ADDITIONAL_SHUTDOWN_DELAY_SECONDS
public static final java.lang.String CONFIG_PROPERTY_NAME_ADDITIONAL_SHUTDOWN_DELAY_SECONDSDeprecated.The number of additional seconds to wait before execute the termination (after all records have been forwarded).- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_NAME_WARN_NEGATIVE_DELAY_SECONDS
public static final java.lang.String CONFIG_PROPERTY_NAME_WARN_NEGATIVE_DELAY_SECONDSDeprecated.The number of seconds of negative scheduling time that produces a warning.- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_NAME_TIMER
public static final java.lang.String CONFIG_PROPERTY_NAME_TIMERDeprecated.The precision of the used timer (MILLISECONDS or NANOSECONDS).- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_NAME_ACCELERATION_FACTOR
public static final java.lang.String CONFIG_PROPERTY_NAME_ACCELERATION_FACTORDeprecated.Factor to use for accelerating/slowing down the replay.- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_ACCELERATION_FACTOR_DEFAULT
public static final double CONFIG_PROPERTY_ACCELERATION_FACTOR_DEFAULTDeprecated.- See Also:
- Constant Field Values
-
-
Constructor Details
-
RealtimeRecordDelayFilter
public RealtimeRecordDelayFilter(kieker.common.configuration.Configuration configuration, IProjectContext projectContext)Deprecated.Creates a new instance of this class using the given parameters.- Parameters:
configuration- The configuration for this component.projectContext- The project context for this component.
-
-
Method Details
-
inputRecord
public final void inputRecord(kieker.common.record.IMonitoringRecord monitoringRecord)Deprecated.This method represents the input port of this filter.- Parameters:
monitoringRecord- The next monitoring record.
-
terminate
public void terminate(boolean error)Deprecated.Description copied from class:AbstractFilterPluginInitiates 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.- Specified by:
terminatein interfaceIPlugin- Overrides:
terminatein classAbstractFilterPlugin- Parameters:
error- Determines whether the plugin is terminated due to an error or not.
-
getCurrentConfiguration
public kieker.common.configuration.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- Specified by:
getCurrentConfigurationin interfaceIPlugin- Specified by:
getCurrentConfigurationin classAbstractAnalysisComponent- Returns:
- A completely filled configuration object.
-