Class RpcDispatcherSpeedTest

java.lang.Object
org.jgroups.tests.RpcDispatcherSpeedTest
All Implemented Interfaces:
Receiver

public class RpcDispatcherSpeedTest extends Object implements Receiver
Test for measuring performance of RPCs. See RoundTrip for simple messages
  • Field Details

    • channel

      protected JChannel channel
    • disp

      protected RpcDispatcher disp
    • props

      protected String props
    • jmx

      protected boolean jmx
    • num

      protected int num
    • METHODS

      protected static final Method[] METHODS
    • oob

      protected boolean oob
    • dont_bundle

      protected boolean dont_bundle
    • format

      protected static final String format
      See Also:
  • Constructor Details

    • RpcDispatcherSpeedTest

      public RpcDispatcherSpeedTest()
  • Method Details

    • measure

      public static void measure()
    • start

      public void start(String props, boolean jmx, String name) throws Exception
      Throws:
      Exception
    • loop

      protected void loop()
    • invokeRpcs

      protected void invokeRpcs() throws Exception
      Throws:
      Exception
    • viewAccepted

      public void viewAccepted(View new_view)
      Description copied from interface: Receiver
      Called when a change in membership has occurred. No long running actions, sending of messages or anything that could block should be done in this callback. If some long running action needs to be performed, it should be done in a separate thread.

      Note that on reception of the first view (a new member just joined), the channel will not yet be in the connected state. This only happens when JChannel.connect(String) returns.

      Specified by:
      viewAccepted in interface Receiver
    • main

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

      static void help()