Class RoundTripRpc

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

public class RoundTripRpc extends Object implements Receiver
Class that measure RTT for multicast messages between 2 cluster members. See RpcDispatcherSpeedTest for RPCs
  • Field Details

    • channel

      protected JChannel channel
    • disp

      protected RpcDispatcher disp
    • num_msgs

      protected int num_msgs
    • num_senders

      protected int num_senders
    • oob

      protected boolean oob
    • dont_bundle

      protected boolean dont_bundle
    • details

      protected boolean details
    • invokers

      protected RoundTripRpc.Invoker[] invokers
    • requestMethod

      protected static final Method requestMethod
  • Constructor Details

    • RoundTripRpc

      public RoundTripRpc()
  • Method Details

    • start

      protected void start(String props, String name) throws Exception
      Throws:
      Exception
    • request

      public static short request(short id)
    • viewAccepted

      public void viewAccepted(View 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
    • loop

      protected void loop()
    • invokeRequests

      protected void invokeRequests() throws Exception
      Throws:
      Exception
    • print

      protected static String print(AverageMinMax avg)
    • main

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

      private static void help()