Package kieker.monitoring.writer.amqp
Class ChunkingAmqpWriter
java.lang.Object
kieker.monitoring.writer.amqp.ChunkingAmqpWriter
- All Implemented Interfaces:
IRawDataWriter
public class ChunkingAmqpWriter extends java.lang.Object implements IRawDataWriter
AMQP writer plugin that supports chunking via the new raw data I/O infrastructure.
- Since:
- 1.13
- Author:
- Holger Knoche
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIG_EXCHANGENAMEThe name of the configuration property for the AMQP exchange name.static java.lang.StringCONFIG_HEARTBEATThe name of the configuration property for the heartbeat timeout.static java.lang.StringCONFIG_QUEUENAMEThe name of the configuration property for the AMQP queue name.static java.lang.StringCONFIG_URIThe name of the configuration property for the server URI. -
Constructor Summary
Constructors Constructor Description ChunkingAmqpWriter(Configuration configuration) -
Method Summary
Modifier and Type Method Description voidonInitialization()Called by the collector during initialization (before any records are written).voidonTermination()Called by the collector upon termination (after remaining records have been flushed).voidwriteData(java.nio.ByteBuffer buffer, int offset, int length)Writes raw data contained in the given byte buffer.
-
Field Details
-
CONFIG_URI
public static final java.lang.String CONFIG_URIThe name of the configuration property for the server URI. -
CONFIG_EXCHANGENAME
public static final java.lang.String CONFIG_EXCHANGENAMEThe name of the configuration property for the AMQP exchange name. -
CONFIG_QUEUENAME
public static final java.lang.String CONFIG_QUEUENAMEThe name of the configuration property for the AMQP queue name. -
CONFIG_HEARTBEAT
public static final java.lang.String CONFIG_HEARTBEATThe name of the configuration property for the heartbeat timeout.
-
-
Constructor Details
-
ChunkingAmqpWriter
public ChunkingAmqpWriter(Configuration configuration) throws java.security.KeyManagementException, java.security.NoSuchAlgorithmException, java.net.URISyntaxException, java.io.IOException, java.util.concurrent.TimeoutException- Throws:
java.security.KeyManagementExceptionjava.security.NoSuchAlgorithmExceptionjava.net.URISyntaxExceptionjava.io.IOExceptionjava.util.concurrent.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
public void writeData(java.nio.ByteBuffer buffer, int offset, int length)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
-