public class CurrentTimeEventGenerationFilter extends AbstractFilterPlugin
IMonitoringRecord
s.
inputTimestamp(Long)
immediately leads to a new TimestampRecord
with the given timestamp.firstTimestamp
and future events are generated at firstTimestamp
+ i *
timerResolution
.IMonitoringRecord
may lead to future TimestampRecord
as follows:
IMonitoringRecord
with logging timestamp tstamp leads to the new timer events satisfying
firstTimestamp
+ i * timerResolution
< tstamp.IPlugin.PluginInputPortReference, IPlugin.STATE
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_PROPERTY_NAME_TIME_RESOLUTION
This is the name of the property to determine the time resolution.
|
static java.lang.String |
CONFIG_PROPERTY_NAME_TIMEUNIT
Property name for the configuration of the timeunit.
|
static java.lang.String |
CONFIG_PROPERTY_VALUE_TIMEUNIT |
static java.lang.String |
INPUT_PORT_NAME_NEW_RECORD
This is the name of the input port receiving new records.
|
static java.lang.String |
INPUT_PORT_NAME_NEW_TIMESTAMP
This is the name of the input port receiving new timestamps.
|
static java.lang.String |
OUTPUT_PORT_NAME_CURRENT_TIME_RECORD
This is the name of the output port delivering the timestamp records.
|
static java.lang.String |
OUTPUT_PORT_NAME_CURRENT_TIME_VALUE
This is the name of the output port delivering the timestamps.
|
CONFIG_NAME, configuration, logger, projectContext, recordsTimeUnitFromProjectContext
Constructor and Description |
---|
CurrentTimeEventGenerationFilter(Configuration configuration,
IProjectContext projectContext)
Creates an event generator which generates time events with the given resolution in timeunits via the output port
OUTPUT_PORT_NAME_CURRENT_TIME_RECORD . |
Modifier and Type | Method and Description |
---|---|
Configuration |
getCurrentConfiguration()
This method should deliver a
Configuration object containing the current configuration of this instance. |
void |
inputRecord(IMonitoringRecord record)
This method represents the input port for new records.
|
void |
inputTimestamp(java.lang.Long timestamp)
Evaluates the given timestamp internal current time which may lead to
newly generated events via
OUTPUT_PORT_NAME_CURRENT_TIME_RECORD . |
init, terminate
areAllRepositoryPortsConnected, connect, connect, deliver, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getDefaultConfiguration, getIncomingPlugins, getPluginDescription, getPluginName, getRepository, getState, isConnectionAllowed, notifyNewIncomingConnection, notifyNewOutgoingConnection, shutdown, start
getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getName, getPluginDescription, getPluginName, getState
public static final java.lang.String INPUT_PORT_NAME_NEW_TIMESTAMP
public static final java.lang.String INPUT_PORT_NAME_NEW_RECORD
public static final java.lang.String OUTPUT_PORT_NAME_CURRENT_TIME_RECORD
public static final java.lang.String OUTPUT_PORT_NAME_CURRENT_TIME_VALUE
public static final java.lang.String CONFIG_PROPERTY_NAME_TIME_RESOLUTION
public static final java.lang.String CONFIG_PROPERTY_NAME_TIMEUNIT
public static final java.lang.String CONFIG_PROPERTY_VALUE_TIMEUNIT
public CurrentTimeEventGenerationFilter(Configuration configuration, IProjectContext projectContext)
OUTPUT_PORT_NAME_CURRENT_TIME_RECORD
.configuration
- The configuration to be used for this plugin.projectContext
- The project context to be used for this plugin.public void inputRecord(IMonitoringRecord record)
record
- The next record.public void inputTimestamp(java.lang.Long timestamp)
OUTPUT_PORT_NAME_CURRENT_TIME_RECORD
.timestamp
- The next timestamp.public 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 IAnalysisComponent
getCurrentConfiguration
in interface IPlugin
getCurrentConfiguration
in class AbstractAnalysisComponent
Copyright 2020 Kieker Project, http://kieker-monitoring.net