kieker.monitoring.writer
Class PrintStreamWriter
java.lang.Object
  
kieker.monitoring.writer.AbstractMonitoringWriter
      
kieker.monitoring.writer.PrintStreamWriter
- All Implemented Interfaces: 
 - IMonitoringRecordReceiver, IMonitoringWriter
 
public class PrintStreamWriter
- extends AbstractMonitoringWriter
 
A writer that prints incoming records to the specified PrintStream.
- Since:
 
  - 1.5
 
- Author:
 
  - Jan Waller
 
 
 
 
| 
Method Summary | 
 void | 
init()
 
          Implementing classes should indicate an initialization error by throwing an Exception. | 
 boolean | 
newMonitoringRecord(IMonitoringRecord record)
 
          Called for each new record. | 
 void | 
terminate()
 
          Called by the Monitoring Controller to announce a shutdown of monitoring. | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
STREAM
public static final java.lang.String STREAM
CONFIG_STREAM_STDOUT
public static final java.lang.String CONFIG_STREAM_STDOUT
- See Also:
 - Constant Field Values
 
CONFIG_STREAM_STDERR
public static final java.lang.String CONFIG_STREAM_STDERR
- See Also:
 - Constant Field Values
 
PrintStreamWriter
public PrintStreamWriter(Configuration configuration)
- Creates a new instance of this writer.
- Parameters:
 configuration - The configuration which will be used to initialize this writer.
 
init
public void init()
          throws java.io.FileNotFoundException,
                 java.io.UnsupportedEncodingException
- Description copied from class: 
AbstractMonitoringWriter 
- Implementing classes should indicate an initialization error by throwing an 
Exception.
- Specified by:
 init in class AbstractMonitoringWriter
 
- Throws:
 java.io.FileNotFoundException
java.io.UnsupportedEncodingException
 
 
newMonitoringRecord
public boolean newMonitoringRecord(IMonitoringRecord record)
- Called for each new record.
 
 Notice, that this method should not throw an exception, but indicate an error by the return value false.
- Parameters:
 record - the record.
- Returns:
 - true on success; false in case of an error.
 
 
 
terminate
public 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.
 
 
Copyright 2015 Kieker Project, http://kieker-monitoring.net