public class AmqpWriter extends AbstractMonitoringWriter implements IRegistryListener<java.lang.String>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_EXCHANGENAME
The name of the configuration property for the AMQP exchange name.
|
static java.lang.String |
CONFIG_HEARTBEAT
The name of the configuration property for the heartbeat timeout.
|
static java.lang.String |
CONFIG_QUEUENAME
The name of the configuration property for the AMQP queue name.
|
static java.lang.String |
CONFIG_URI
The name of the configuration property for the server URI.
|
static byte |
REGISTRY_RECORD_ID
ID for registry records.
|
static byte |
REGULAR_RECORD_ID
ID for regular records.
|
configuration
Constructor and Description |
---|
AmqpWriter(Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
onNewRegistryEntry(java.lang.String value,
int id)
This event is fired after a new registry entry was registered.
|
void |
onStarting()
This event fires when Kieker has been initialized and is ready to monitor.
|
void |
onTerminating()
This event fires when Kieker has been notified to terminate.
|
void |
writeMonitoringRecord(IMonitoringRecord monitoringRecord)
This event fires when Kieker has received a new record.
|
toString
public static final byte REGISTRY_RECORD_ID
public static final byte REGULAR_RECORD_ID
public static final java.lang.String CONFIG_URI
public static final java.lang.String CONFIG_EXCHANGENAME
public static final java.lang.String CONFIG_QUEUENAME
public static final java.lang.String CONFIG_HEARTBEAT
public AmqpWriter(Configuration configuration) throws java.security.KeyManagementException, java.security.NoSuchAlgorithmException, java.net.URISyntaxException, java.io.IOException, java.util.concurrent.TimeoutException
java.security.KeyManagementException
java.security.NoSuchAlgorithmException
java.net.URISyntaxException
java.io.IOException
java.util.concurrent.TimeoutException
public void onStarting()
AbstractMonitoringWriter
MonitoringWriterThread
just before reading the writer queue.onStarting
in class AbstractMonitoringWriter
public void writeMonitoringRecord(IMonitoringRecord monitoringRecord)
AbstractMonitoringWriter
writeMonitoringRecord
in class AbstractMonitoringWriter
public void onNewRegistryEntry(java.lang.String value, int id)
IRegistryListener
onNewRegistryEntry
in interface IRegistryListener<java.lang.String>
public void onTerminating()
AbstractMonitoringWriter
MonitoringWriterThread
just after finishing the writer queue.onTerminating
in class AbstractMonitoringWriter
Copyright 2017 Kieker Project, http://kieker-monitoring.net