kieker.monitoring.writer.jmx
Class JMXWriter
java.lang.Object
kieker.monitoring.writer.AbstractMonitoringWriter
kieker.monitoring.writer.jmx.JMXWriter
- All Implemented Interfaces:
- IMonitoringRecordReceiver, IMonitoringWriter
public final class JMXWriter
- extends AbstractMonitoringWriter
- Since:
- 1.4
|
Constructor Summary |
JMXWriter(Configuration configuration)
Creates a new instance of this class using the given parameters. |
|
Method Summary |
protected 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 |
CONFIG_DOMAIN
public static final java.lang.String CONFIG_DOMAIN
CONFIG_LOGNAME
public static final java.lang.String CONFIG_LOGNAME
JMXWriter
public JMXWriter(Configuration configuration)
- Creates a new instance of this class using the given parameters.
- Parameters:
configuration - The configuration for this writer.
init
protected void init()
throws java.lang.Exception
- Description copied from class:
AbstractMonitoringWriter
- Implementing classes should indicate an initialization error by throwing an
Exception.
- Specified by:
init in class AbstractMonitoringWriter
- Throws:
java.lang.Exception - If something during the initialization went wrong.
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.