Package com.mapr.streams.listener
Class ListenerV10
- java.lang.Object
-
- com.mapr.streams.listener.Listener
-
- com.mapr.streams.listener.ListenerV10
-
- All Implemented Interfaces:
java.lang.Runnable
public class ListenerV10 extends Listener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mapr.streams.listener.Listener
Listener.PartitionInfo, Listener.TED_ACTION
-
-
Field Summary
-
Fields inherited from class com.mapr.streams.listener.Listener
isTracingEnabled, keysInOrder, numStreams, status, streamName, topicIntial, verifyHeaderKey, verifyHeaderVal, verifyKeys
-
-
Constructor Summary
Constructors Constructor Description ListenerV10(java.lang.String streamName, int numStreams, int numTopics, int numSlowTopics, int numPartitions, int numExpectedMsgs, boolean verifyKeys, boolean keysInOrder, boolean allowDuplicateKeys, boolean isTracingEnabled, boolean printStats, Listener.TED_ACTION action, boolean topicSubscription, java.lang.String groupId, int maxPartitionFetchSize, int maxFetchSize, int maxPollRecords, boolean verifyHdrKey, boolean verifyHdrVal)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longgetHeadersSize(org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> rec)static booleanrunTestWithPollOptions(java.lang.String streamName, int numStreams, int numTopics, int numSlowTopics, int numPartitions, int numExpectedMsgs, int maxPartitionFetchSize, int maxFetchSize, int maxPollRecords, boolean verifyHdrKey, boolean verifyHdrVal)protected voidverifyHeaders(org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> rec)-
Methods inherited from class com.mapr.streams.listener.Listener
AddPerPartitonRecs, ChangePerm, DeleteStream, main, run, runLGTest, runTest, runTest, runTest, runTest, runTestWithPollOptions, runWithException, usage, VerifyPollingOrderedKey, VerifyPollingUnorderedKey
-
-
-
-
Constructor Detail
-
ListenerV10
public ListenerV10(java.lang.String streamName, int numStreams, int numTopics, int numSlowTopics, int numPartitions, int numExpectedMsgs, boolean verifyKeys, boolean keysInOrder, boolean allowDuplicateKeys, boolean isTracingEnabled, boolean printStats, Listener.TED_ACTION action, boolean topicSubscription, java.lang.String groupId, int maxPartitionFetchSize, int maxFetchSize, int maxPollRecords, boolean verifyHdrKey, boolean verifyHdrVal)
-
-
Method Detail
-
runTestWithPollOptions
public static boolean runTestWithPollOptions(java.lang.String streamName, int numStreams, int numTopics, int numSlowTopics, int numPartitions, int numExpectedMsgs, int maxPartitionFetchSize, int maxFetchSize, int maxPollRecords, boolean verifyHdrKey, boolean verifyHdrVal) throws java.io.IOException- Throws:
java.io.IOException
-
getHeadersSize
protected long getHeadersSize(org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> rec) throws java.io.IOException- Overrides:
getHeadersSizein classListener- Throws:
java.io.IOException
-
verifyHeaders
protected void verifyHeaders(org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> rec) throws java.io.IOException- Overrides:
verifyHeadersin classListener- Throws:
java.io.IOException
-
-