Class PipeReader
java.lang.Object
kieker.analysis.analysisComponent.AbstractAnalysisComponent
kieker.analysis.plugin.AbstractPlugin
kieker.analysis.plugin.reader.AbstractReaderPlugin
kieker.analysis.plugin.reader.namedRecordPipe.PipeReader
- All Implemented Interfaces:
IAnalysisComponent,IPlugin,IReaderPlugin,IPipeReader
Deprecated.
1.15 ported to teetime
This reader can be used to read records via an in-memory pipe.
- Since:
- 1.3
- Author:
- Andre van Hoorn
-
Nested Class Summary
Nested classes/interfaces inherited from interface kieker.analysis.plugin.IPlugin
IPlugin.PluginInputPortReference, IPlugin.STATE -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.This is the configuration-parameter for the name of the pipe to be used.static final StringDeprecated.The default used pipe name.static final StringDeprecated.This is the name of the default output port.Fields inherited from class kieker.analysis.analysisComponent.AbstractAnalysisComponent
CONFIG_NAME, configuration, logger, projectContext, recordsTimeUnitFromProjectContext -
Constructor Summary
ConstructorsConstructorDescriptionPipeReader(Configuration configuration, IProjectContext projectContext) Deprecated.Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.This method should deliver aConfigurationobject containing the current configuration of this instance.booleanDeprecated.This method sends a given records directly to the output port.voidDeprecated.Called to notify the reader that the pipe is closed.booleanread()Deprecated.Blocks until the associated pipe is being closed.voidterminate(boolean error) Deprecated.Initiates a termination of the plugin.Methods inherited from class kieker.analysis.plugin.reader.AbstractReaderPlugin
initMethods 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 kieker.analysis.analysisComponent.AbstractAnalysisComponent
getNameMethods 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
-
OUTPUT_PORT_NAME_RECORDS
Deprecated.This is the name of the default output port.- See Also:
-
CONFIG_PROPERTY_NAME_PIPENAME
Deprecated.This is the configuration-parameter for the name of the pipe to be used.- See Also:
-
CONFIG_PROPERTY_VALUE_PIPENAME_DEFAULT
Deprecated.The default used pipe name.- See Also:
-
-
Constructor Details
-
PipeReader
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
-
read
public boolean read()Deprecated.Blocks until the associated pipe is being closed.- Specified by:
readin interfaceIReaderPlugin- Returns:
- true if the reading terminated in a "normal" way. If an interrupt terminates the wait-method too early, false will be returned.
-
newMonitoringRecord
Deprecated.This method sends a given records directly to the output port.- Specified by:
newMonitoringRecordin interfaceIPipeReader- Parameters:
rec- The new record object.- Returns:
- true if and only if the record has been delivered.
-
notifyPipeClosed
public void notifyPipeClosed()Deprecated.Called to notify the reader that the pipe is closed.- Specified by:
notifyPipeClosedin interfaceIPipeReader
-
terminate
public 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. -
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.
-