Package com.mapr.streams.listener
Class ListenerV10
java.lang.Object
com.mapr.streams.listener.Listener
com.mapr.streams.listener.ListenerV10
- All Implemented Interfaces:
Runnable
-
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
ConstructorsConstructorDescriptionListenerV10(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, String groupId, int maxPartitionFetchSize, int maxFetchSize, int maxPollRecords, boolean verifyHdrKey, boolean verifyHdrVal) -
Method Summary
Modifier and TypeMethodDescriptionprotected longgetHeadersSize(org.apache.kafka.clients.consumer.ConsumerRecord<byte[], byte[]> rec) static booleanrunTestWithPollOptions(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 Details
-
ListenerV10
public ListenerV10(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, String groupId, int maxPartitionFetchSize, int maxFetchSize, int maxPollRecords, boolean verifyHdrKey, boolean verifyHdrVal)
-
-
Method Details
-
runTestWithPollOptions
public static boolean runTestWithPollOptions(String streamName, int numStreams, int numTopics, int numSlowTopics, int numPartitions, int numExpectedMsgs, int maxPartitionFetchSize, int maxFetchSize, int maxPollRecords, boolean verifyHdrKey, boolean verifyHdrVal) throws IOException - Throws:
IOException
-
getHeadersSize
protected long getHeadersSize(org.apache.kafka.clients.consumer.ConsumerRecord<byte[], byte[]> rec) throws IOException- Overrides:
getHeadersSizein classListener- Throws:
IOException
-
verifyHeaders
protected void verifyHeaders(org.apache.kafka.clients.consumer.ConsumerRecord<byte[], byte[]> rec) throws IOException- Overrides:
verifyHeadersin classListener- Throws:
IOException
-