Package kieker.monitoring.writer.amqp
Class ChunkingAmqpWriter
java.lang.Object
kieker.monitoring.writer.amqp.ChunkingAmqpWriter
- All Implemented Interfaces:
IRawDataWriter
AMQP writer plugin that supports chunking via the new raw data I/O infrastructure.
- Since:
- 1.13
- Author:
- Holger Knoche
-
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. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled by the collector during initialization (before any records are written).voidCalled by the collector upon termination (after remaining records have been flushed).voidwriteData(ByteBuffer buffer, int offset, int length) Writes raw data contained in the given byte buffer.
-
Field Details
-
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
-
ChunkingAmqpWriter
public ChunkingAmqpWriter(Configuration configuration) throws KeyManagementException, NoSuchAlgorithmException, URISyntaxException, IOException, TimeoutException
-
-
Method Details
-
onInitialization
public void onInitialization()Description copied from interface:IRawDataWriterCalled by the collector during initialization (before any records are written).- Specified by:
onInitializationin interfaceIRawDataWriter
-
onTermination
public void onTermination()Description copied from interface:IRawDataWriterCalled by the collector upon termination (after remaining records have been flushed).- Specified by:
onTerminationin interfaceIRawDataWriter
-
writeData
Description copied from interface:IRawDataWriterWrites raw data contained in the given byte buffer.- Specified by:
writeDatain interfaceIRawDataWriter- Parameters:
buffer- The buffer containing the dataoffset- The offset in the buffer where the data startslength- The length of the data to write
-