Package kieker.common.namedRecordPipe
Class Pipe
java.lang.Object
kieker.common.namedRecordPipe.Pipe
This implementation represents a simple pipe that can be used by readers and writers to transfer monitoring records.
- Since:
- 1.3
- Author:
- Andre van Hoorn
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This method closes the pipe and notifies the pipe reader about this event as well.getName()Delivers the name of this pipe.voidsetPipeReader(IPipeReader pipeReader) Sets the pipe reader to a new value.booleanwriteMonitoringRecord(IMonitoringRecord monitoringRecord) Passes the monitoring record to the registered pipe reader.
-
Constructor Details
-
Pipe
Creates a new instance of this class using the given parameters.- Parameters:
name- The name of the pipe.
-
-
Method Details
-
setPipeReader
Sets the pipe reader to a new value. The pipe reader will be informed about new records.- Parameters:
pipeReader- The new pipe reader.
-
getName
Delivers the name of this pipe.- Returns:
- The name of the pipe.
-
writeMonitoringRecord
Passes the monitoring record to the registered pipe reader.- Parameters:
monitoringRecord- The monitoring record to write into the pipe.- Returns:
- true on success; false otherwise.
-
close
public void close()This method closes the pipe and notifies the pipe reader about this event as well.
-