Package kieker.monitoring.writer.amqp
Class AmqpWriter
java.lang.Object
kieker.monitoring.writer.AbstractMonitoringWriter
kieker.monitoring.writer.amqp.AmqpWriter
- All Implemented Interfaces:
IRegistryListener<String>
Monitoring record writer which sends records using the AMQP protocol to a message queue.
- Since:
- 1.12
- Author:
- Holger Knoche, Christian Wulf
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the configuration property for the AMQP exchange name.static final StringThe name of the configuration property for the heartbeat timeout.static final StringThe name of the configuration property for the AMQP queue name.static final StringThe name of the configuration property for the server URI.static final byteID for registry records.static final byteID for regular records.Fields inherited from class kieker.monitoring.writer.AbstractMonitoringWriter
configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonNewRegistryEntry(String value, int id) This event is fired after a new registry entry was registered.voidThis event fires when Kieker has been initialized and is ready to monitor.voidThis event fires when Kieker has been notified to terminate.voidwriteMonitoringRecord(IMonitoringRecord monitoringRecord) This event fires when Kieker has received a new record.Methods inherited from class kieker.monitoring.writer.AbstractMonitoringWriter
toString
-
Field Details
-
REGISTRY_RECORD_ID
public static final byte REGISTRY_RECORD_IDID for registry records.- See Also:
-
REGULAR_RECORD_ID
public static final byte REGULAR_RECORD_IDID for regular records.- See Also:
-
CONFIG_URI
The name of the configuration property for the server URI. -
CONFIG_EXCHANGENAME
The name of the configuration property for the AMQP exchange name. -
CONFIG_QUEUENAME
The name of the configuration property for the AMQP queue name. -
CONFIG_HEARTBEAT
The name of the configuration property for the heartbeat timeout.
-
-
Constructor Details
-
AmqpWriter
public AmqpWriter(Configuration configuration) throws KeyManagementException, NoSuchAlgorithmException, URISyntaxException, IOException, TimeoutException
-
-
Method Details
-
onStarting
public void onStarting()Description copied from class:AbstractMonitoringWriterThis event fires when Kieker has been initialized and is ready to monitor. It is executed by theMonitoringWriterThreadjust before reading the writer queue.- Specified by:
onStartingin classAbstractMonitoringWriter
-
writeMonitoringRecord
Description copied from class:AbstractMonitoringWriterThis event fires when Kieker has received a new record.- Specified by:
writeMonitoringRecordin classAbstractMonitoringWriter
-
onNewRegistryEntry
Description copied from interface:IRegistryListenerThis event is fired after a new registry entry was registered.- Specified by:
onNewRegistryEntryin interfaceIRegistryListener<String>- Parameters:
value- valueid- id
-
onTerminating
public void onTerminating()Description copied from class:AbstractMonitoringWriterThis event fires when Kieker has been notified to terminate. It is executed by theMonitoringWriterThreadjust after finishing the writer queue.- Specified by:
onTerminatingin classAbstractMonitoringWriter
-