Class LoadSimulationClient


  • public class LoadSimulationClient
    extends java.lang.Object
    LoadSimulationClient is used to simulate client load by maintaining producers and consumers for topics. Instances of this class are controlled across a network via LoadSimulationController.
    • Constructor Summary

      Constructors 
      Constructor Description
      LoadSimulationClient​(org.apache.pulsar.testclient.LoadSimulationClient.MainArguments arguments)
      Create a LoadSimulationClient with the given JCommander arguments.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Start a client with command line arguments.
      void run()
      Start listening for controller commands to create producers and consumers.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LoadSimulationClient

        public LoadSimulationClient​(org.apache.pulsar.testclient.LoadSimulationClient.MainArguments arguments)
                             throws java.lang.Exception
        Create a LoadSimulationClient with the given JCommander arguments.
        Parameters:
        arguments - Arguments to configure this from.
        Throws:
        java.lang.Exception
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Start a client with command line arguments.
        Parameters:
        args - Command line arguments to pass in.
        Throws:
        java.lang.Exception
      • run

        public void run()
                 throws java.lang.Exception
        Start listening for controller commands to create producers and consumers.
        Throws:
        java.lang.Exception