Class RoundTripRpc

  • All Implemented Interfaces:
    Receiver

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

      • 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
      • requestMethod

        protected static final java.lang.reflect.Method requestMethod
    • Constructor Detail

      • RoundTripRpc

        public RoundTripRpc()
    • Method Detail

      • start

        protected void start​(java.lang.String props,
                             java.lang.String name)
                      throws java.lang.Exception
        Throws:
        java.lang.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 java.lang.Exception
        Throws:
        java.lang.Exception
      • print

        protected static java.lang.String print​(AverageMinMax avg)
      • main

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

        private static void help()