Class MPerfRpc.Stats

  • Enclosing class:
    MPerfRpc

    protected class MPerfRpc.Stats
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected long num_msgs_received  
      protected long seqno  
      protected long start  
      protected long stop  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Stats()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addMessage​(long seqno, boolean check_order)
      Adds the message and checks whether the messages are received in FIFO order.
      boolean isDone()  
      void reset()  
      void stop()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • start

        protected long start
      • stop

        protected long stop
      • num_msgs_received

        protected long num_msgs_received
      • seqno

        protected long seqno
    • Constructor Detail

      • Stats

        protected Stats()
    • Method Detail

      • reset

        public void reset()
      • stop

        public void stop()
      • isDone

        public boolean isDone()
      • addMessage

        public void addMessage​(long seqno,
                               boolean check_order)
        Adds the message and checks whether the messages are received in FIFO order. If we have multiple threads (check_order=false), then this check canot be performed
        Parameters:
        seqno -
        check_order -
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object