Kieker 1.12

kieker.monitoring.writer.namedRecordPipe
Class PipeWriter

java.lang.Object
  extended by kieker.monitoring.writer.AbstractMonitoringWriter
      extended by kieker.monitoring.writer.namedRecordPipe.PipeWriter
All Implemented Interfaces:
IPipeWriter, IMonitoringRecordReceiver, IMonitoringWriter

public final class PipeWriter
extends AbstractMonitoringWriter
implements IPipeWriter

Since:
1.3
Author:
Andre van Hoorn, Jan Waller, Robert von Massow

Field Summary
static java.lang.String CONFIG_PIPENAME
           
 
Fields inherited from class kieker.monitoring.writer.AbstractMonitoringWriter
monitoringController
 
Constructor Summary
PipeWriter(Configuration configuration)
          Creates a new instance of this class using the given parameters.
 
Method Summary
protected  void init()
          Initializes the pipe writer (at the moment there is nothing to do in here).
 boolean newMonitoringRecord(IMonitoringRecord monitoringRecord)
          Called for each new record.
 void terminate()
          Called by the Monitoring Controller to announce a shutdown of monitoring.
 java.lang.String toString()
          Delivers a string representation of this writer.
 
Methods inherited from class kieker.monitoring.writer.AbstractMonitoringWriter
getDefaultConfiguration, newMonitoringRecordNonBlocking, setController
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONFIG_PIPENAME

public static final java.lang.String CONFIG_PIPENAME
Constructor Detail

PipeWriter

public PipeWriter(Configuration configuration)
Creates a new instance of this class using the given parameters.

Parameters:
configuration - The configuration used to initialize the pipe writer.
Method Detail

terminate

public final void terminate()
Called by the Monitoring Controller to announce a shutdown of monitoring. Writers should return as soon as it is safe to terminate Kieker.

Specified by:
terminate in interface IMonitoringWriter

newMonitoringRecord

public final boolean newMonitoringRecord(IMonitoringRecord monitoringRecord)
Called for each new record.

Specified by:
newMonitoringRecord in interface IPipeWriter
Specified by:
newMonitoringRecord in interface IMonitoringRecordReceiver
Specified by:
newMonitoringRecord in interface IMonitoringWriter
Parameters:
monitoringRecord - the record.
Returns:
true on success; false in case of an error.

toString

public java.lang.String toString()
Description copied from interface: IMonitoringWriter
Delivers a string representation of this writer.

Specified by:
toString in interface IMonitoringWriter
Overrides:
toString in class AbstractMonitoringWriter
Returns:
A string.

init

protected void init()
Initializes the pipe writer (at the moment there is nothing to do in here).

Specified by:
init in class AbstractMonitoringWriter

Kieker 1.12

Copyright 2015 Kieker Project, http://kieker-monitoring.net