类 RpcStatus

    • 方法详细资料

      • getStatus

        public static RpcStatus getStatus(URL url)
        参数:
        url -
        返回:
        status
      • removeStatus

        public static void removeStatus(URL url)
        参数:
        url -
      • getStatus

        public static RpcStatus getStatus(URL url,
                                          String methodName)
        参数:
        url -
        methodName -
        返回:
        status
      • removeStatus

        public static void removeStatus(URL url,
                                        String methodName)
        参数:
        url -
      • beginCount

        public static void beginCount(URL url,
                                      String methodName)
        参数:
        url -
      • endCount

        public static void endCount(URL url,
                                    String methodName,
                                    long elapsed,
                                    boolean succeeded)
        参数:
        url -
        elapsed -
        succeeded -
      • set

        public void set(String key,
                        Object value)
        set value.
        参数:
        key -
        value -
      • get

        public Object get(String key)
        get value.
        参数:
        key -
        返回:
        value
      • getActive

        public int getActive()
        get active.
        返回:
        active
      • getTotal

        public long getTotal()
        get total.
        返回:
        total
      • getTotalElapsed

        public long getTotalElapsed()
        get total elapsed.
        返回:
        total elapsed
      • getAverageElapsed

        public long getAverageElapsed()
        get average elapsed.
        返回:
        average elapsed
      • getMaxElapsed

        public long getMaxElapsed()
        get max elapsed.
        返回:
        max elapsed
      • getFailed

        public int getFailed()
        get failed.
        返回:
        failed
      • getFailedElapsed

        public long getFailedElapsed()
        get failed elapsed.
        返回:
        failed elapsed
      • getFailedAverageElapsed

        public long getFailedAverageElapsed()
        get failed average elapsed.
        返回:
        failed average elapsed
      • getFailedMaxElapsed

        public long getFailedMaxElapsed()
        get failed max elapsed.
        返回:
        failed max elapsed
      • getSucceeded

        public long getSucceeded()
        get succeeded.
        返回:
        succeeded
      • getSucceededElapsed

        public long getSucceededElapsed()
        get succeeded elapsed.
        返回:
        succeeded elapsed
      • getSucceededAverageElapsed

        public long getSucceededAverageElapsed()
        get succeeded average elapsed.
        返回:
        succeeded average elapsed
      • getSucceededMaxElapsed

        public long getSucceededMaxElapsed()
        get succeeded max elapsed.
        返回:
        succeeded max elapsed.
      • getAverageTps

        public long getAverageTps()
        Calculate average TPS (Transaction per second).
        返回:
        tps