|
Kieker 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kieker.monitoring.writer.AbstractMonitoringWriter kieker.monitoring.writer.filesystem.SyncFsWriter
public final class SyncFsWriter
Simple class to store monitoring data in the file system. Although a buffered writer is used, outliers (delays of 1000 ms) occur from time to time if many monitoring events have to be written. We believe that outliers result from a flush on the buffer of the writer. A more sophisticated writer to store data in the file system is the AsyncFsWriter. This does not introduce the outliers that result from flushing the writing buffer, since provides an asynchronous insertMonitoringData method. However, the AsyncFsWriter introduces a little more overhead because a writing queue is required and it isn't tested as much as the FileSystenWriter. Additionally, the resource demands (CPU, bus etc.) for writing monitoring data are not anymore occurring during the time of the execution that is monitored, but at some other (unknown) time. The AsyncFsWriter should usually be used instead of this class to avoid the outliers described above.
Field Summary | |
---|---|
static java.lang.String |
CONFIG_BUFFER
|
static java.lang.String |
CONFIG_FLUSH
|
static java.lang.String |
CONFIG_MAXENTRIESINFILE
|
static java.lang.String |
CONFIG_MAXLOGFILES
|
static java.lang.String |
CONFIG_MAXLOGSIZE
|
static java.lang.String |
CONFIG_PATH
|
Fields inherited from class kieker.monitoring.writer.AbstractMonitoringWriter |
---|
monitoringController |
Constructor Summary | |
---|---|
SyncFsWriter(Configuration configuration)
Creates a new instance of this class using the given configuration to initialize the class. |
Method Summary | |
---|---|
protected void |
init()
Implementing classes should indicate an initialization error by throwing an Exception . |
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 |
---|
public static final java.lang.String CONFIG_PATH
public static final java.lang.String CONFIG_MAXENTRIESINFILE
public static final java.lang.String CONFIG_MAXLOGSIZE
public static final java.lang.String CONFIG_MAXLOGFILES
public static final java.lang.String CONFIG_FLUSH
public static final java.lang.String CONFIG_BUFFER
Constructor Detail |
---|
public SyncFsWriter(Configuration configuration) throws java.lang.IllegalArgumentException
configuration
- The configuration used to initialize this writer.
java.lang.IllegalArgumentException
- If the given configuration is invalid.Method Detail |
---|
protected void init() throws java.lang.IllegalArgumentException, java.io.IOException
AbstractMonitoringWriter
Exception
.
init
in class AbstractMonitoringWriter
java.lang.IllegalArgumentException
java.io.IOException
public final boolean newMonitoringRecord(IMonitoringRecord monitoringRecord)
monitoringRecord
- the record.
public final void terminate()
public final java.lang.String toString()
IMonitoringWriter
toString
in interface IMonitoringWriter
toString
in class AbstractMonitoringWriter
|
Kieker 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |