|
Kieker 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kieker.analysis.plugin.AbstractPlugin kieker.analysis.plugin.reader.AbstractReaderPlugin kieker.analysis.plugin.reader.namedRecordPipe.PipeReader
public final class PipeReader
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface kieker.analysis.plugin.IPlugin |
---|
IPlugin.PluginInputPortReference, IPlugin.STATE |
Field Summary | |
---|---|
static String |
CONFIG_PROPERTY_NAME_PIPENAME
This is the configuration-parameter for the name of the pipe to be used. |
static String |
CONFIG_PROPERTY_VALUE_PIPENAME_DEFAULT
|
static String |
OUTPUT_PORT_NAME_RECORDS
This is the name of the default output port. |
Fields inherited from class kieker.analysis.plugin.AbstractPlugin |
---|
CONFIG_NAME |
Constructor Summary | |
---|---|
PipeReader(Configuration configuration)
Creates a new instance of this class using the given parameter. |
Method Summary | |
---|---|
Configuration |
getCurrentConfiguration()
This method should deliver a Configuration object containing the current configuration of this instance. |
boolean |
newMonitoringRecord(IMonitoringRecord rec)
Called for each new record. |
void |
notifyPipeClosed()
Called to notify the reader that the pipe is closed. |
boolean |
read()
Blocks until the associated pipe is being closed. |
void |
terminate(boolean error)
Initiates a termination of the plugin. |
Methods inherited from class kieker.analysis.plugin.reader.AbstractReaderPlugin |
---|
init |
Methods inherited from class kieker.analysis.plugin.AbstractPlugin |
---|
areAllRepositoryPortsConnected, connect, connect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getIncomingPlugins, getName, getPluginDescription, getPluginName, getState, isConnectionAllowed, shutdown, start |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String OUTPUT_PORT_NAME_RECORDS
public static final String CONFIG_PROPERTY_NAME_PIPENAME
public static final String CONFIG_PROPERTY_VALUE_PIPENAME_DEFAULT
Constructor Detail |
---|
public PipeReader(Configuration configuration) throws IllegalArgumentException
configuration
- The configuration used to load the pipe name. It must contain the property CONFIG_PROPERTY_NAME_PIPENAME
.
IllegalArgumentException
- If the pipe name was invalid.Method Detail |
---|
public boolean read()
read
in interface IReaderPlugin
public boolean newMonitoringRecord(IMonitoringRecord rec)
IPipeReader
newMonitoringRecord
in interface IPipeReader
rec
- the record.
public void notifyPipeClosed()
IPipeReader
notifyPipeClosed
in interface IPipeReader
public void terminate(boolean error)
IPlugin
AnalysisController.terminate(boolean)
instead.
After receiving this notification, the plugin should terminate any running
methods, e.g., read for readers.
terminate
in interface IPlugin
public Configuration getCurrentConfiguration()
IPlugin
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 IPlugin
|
Kieker 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |