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.
|
toStringpublic 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.KeyManagementExceptionjava.security.NoSuchAlgorithmExceptionjava.net.URISyntaxExceptionjava.io.IOExceptionjava.util.concurrent.TimeoutExceptionpublic void onStarting()
AbstractMonitoringWriterMonitoringWriterThread just before reading the writer queue.onStarting in class AbstractMonitoringWriterpublic void writeMonitoringRecord(IMonitoringRecord monitoringRecord)
AbstractMonitoringWriterwriteMonitoringRecord in class AbstractMonitoringWriterpublic void onNewRegistryEntry(java.lang.String value,
int id)
IRegistryListeneronNewRegistryEntry in interface IRegistryListener<java.lang.String>public void onTerminating()
AbstractMonitoringWriterMonitoringWriterThread just after finishing the writer queue.onTerminating in class AbstractMonitoringWriterCopyright 2017 Kieker Project, http://kieker-monitoring.net