Kieker 1.3

kieker.monitoring.writer
Class AbstractMonitoringWriter

java.lang.Object
  extended by kieker.monitoring.writer.AbstractMonitoringWriter
All Implemented Interfaces:
IMonitoringRecordReceiver, IMonitoringWriter
Direct Known Subclasses:
AbstractAsyncWriter, DummyWriter, PipeWriter, SyncDbWriter, SyncFsWriter

public abstract class AbstractMonitoringWriter
extends Object
implements IMonitoringWriter

Author:
Jan Waller, Robert von Massow

Method Summary
 Configuration getConfiguration()
           
abstract  boolean newMonitoringRecord(IMonitoringRecord record)
          Called for each new record.
 void setController(IMonitoringController monitoringController)
          Set the IMonitoringController controlling this writer.
abstract  void terminate()
          Called by the Monitoring Controller to announce a shutdown of monitoring.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Specified by:
toString in interface IMonitoringWriter
Overrides:
toString in class Object

newMonitoringRecord

public abstract boolean newMonitoringRecord(IMonitoringRecord record)
Description copied from interface: IMonitoringRecordReceiver
Called for each new record. Notice, that this method should not throw an exception, but indicate an error by the return value false.

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

terminate

public abstract void terminate()
Description copied from interface: IMonitoringWriter
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

setController

public final void setController(IMonitoringController monitoringController)
                         throws Exception
Description copied from interface: IMonitoringWriter
Set the IMonitoringController controlling this writer.

Specified by:
setController in interface IMonitoringWriter
Throws:
Exception

getConfiguration

public final Configuration getConfiguration()

Kieker 1.3

Copyright 2011 the Kieker Project, http://kieker.sourceforge.net