Class Listener

java.lang.Object
com.mapr.streams.listener.Listener
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
ListenerV10

public class Listener extends Object implements Runnable
  • Field Details

    • topicIntial

      public static String topicIntial
    • streamName

      protected String streamName
    • numStreams

      protected int numStreams
    • verifyKeys

      protected boolean verifyKeys
    • verifyHeaderKey

      protected boolean verifyHeaderKey
    • verifyHeaderVal

      protected boolean verifyHeaderVal
    • keysInOrder

      protected boolean keysInOrder
    • isTracingEnabled

      protected boolean isTracingEnabled
    • status

      protected boolean status
  • Constructor Details

    • Listener

      public Listener(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)
    • Listener

      public Listener(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)
  • Method Details

    • usage

      public static void usage()
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • runLGTest

      public static boolean runLGTest(String streamName, int numStreams, int numTopics, int numPartitions, boolean isTracingEnabled, String groupId)
    • runTestWithPollOptions

      public static boolean runTestWithPollOptions(String streamName, int numStreams, int numTopics, int numSlowTopics, int numPartitions, int numExpectedMsgs, int maxPartitionFetchSize, int maxFetchSize, int maxPollRecords) throws IOException
      Throws:
      IOException
    • runTest

      public static boolean runTest(String streamName, int numStreams, int numTopics, int numSlowTopics, int numPartitions, int numExpectedMsgs) throws IOException
      Throws:
      IOException
    • runTest

      public static boolean runTest(String streamName, int numStreams, int numTopics, int numSlowTopics, int numPartitions, int numExpectedMsgs, String lgGrp) throws IOException
      Throws:
      IOException
    • runTest

      public static boolean runTest(String streamName, int numStreams, int numTopics, int numSlowTopics, int numPartitions, int numExpectedMsgs, Listener.TED_ACTION action) throws IOException
      Throws:
      IOException
    • runTest

      public static boolean runTest(String streamName, int numStreams, int numTopics, int numSlowTopics, int numPartitions, int numExpectedMsgs, boolean topicSubscription, boolean keysInOrder, String groupId) throws IOException
      Throws:
      IOException
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • runWithException

      public void runWithException() throws IOException
      Throws:
      IOException
    • DeleteStream

      public void DeleteStream()
    • ChangePerm

      public void ChangePerm()
    • getHeadersSize

      protected long getHeadersSize(org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> rec) throws IOException
      Throws:
      IOException
    • verifyHeaders

      protected void verifyHeaders(org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> rec) throws IOException
      Throws:
      IOException
    • VerifyPollingOrderedKey

      protected void VerifyPollingOrderedKey(String stName, String tpName, int partition, int seq) throws IOException
      Throws:
      IOException
    • AddPerPartitonRecs

      protected void AddPerPartitonRecs(Hashtable<Listener.PartitionInfo,Long> pMap, Hashtable<Listener.PartitionInfo,Long> pMsgMap, String stName, String tpName, int partition, long recSize)
    • VerifyPollingUnorderedKey

      protected void VerifyPollingUnorderedKey(String stName, String tpName, int partition, int seq) throws IOException
      Throws:
      IOException