Class RpczZPageHandler


  • final class RpczZPageHandler
    extends ZPageHandler
    HTML page formatter for gRPC cumulative and interval stats.
    • Field Detail

      • RPC_STATS_TYPES

        private static final com.google.common.collect.ImmutableList<java.lang.String> RPC_STATS_TYPES
      • CLIENT_RPC_CUMULATIVE_VIEWS

        private static final com.google.common.collect.ImmutableList<View> CLIENT_RPC_CUMULATIVE_VIEWS
      • SERVER_RPC_CUMULATIVE_VIEWS

        private static final com.google.common.collect.ImmutableList<View> SERVER_RPC_CUMULATIVE_VIEWS
      • CLIENT_RPC_MINUTE_VIEWS

        private static final com.google.common.collect.ImmutableList<View> CLIENT_RPC_MINUTE_VIEWS
      • SERVER_RPC_MINUTE_VIEWS

        private static final com.google.common.collect.ImmutableList<View> SERVER_RPC_MINUTE_VIEWS
      • CLIENT_RPC_HOUR_VIEWS

        private static final com.google.common.collect.ImmutableList<View> CLIENT_RPC_HOUR_VIEWS
      • SERVER_RPC_HOUR_VIEWS

        private static final com.google.common.collect.ImmutableList<View> SERVER_RPC_HOUR_VIEWS
    • Constructor Detail

      • RpczZPageHandler

        private RpczZPageHandler​(ViewManager viewManager)
    • Method Detail

      • getUrlPath

        public java.lang.String getUrlPath()
        Description copied from class: ZPageHandler
        Returns the URL path that should be used to register this page.
        Specified by:
        getUrlPath in class ZPageHandler
        Returns:
        the URL path that should be used to register this page.
      • emitStyle

        private static void emitStyle​(java.io.PrintWriter out)
      • emitHtml

        public void emitHtml​(java.util.Map<java.lang.String,​java.lang.String> queryMap,
                             java.io.OutputStream outputStream)
        Description copied from class: ZPageHandler
        Emits the HTML generated page to the outputStream.
        Specified by:
        emitHtml in class ZPageHandler
        Parameters:
        queryMap - the query components map.
        outputStream - the output OutputStream.
      • emitHtmlBody

        private void emitHtmlBody​(java.io.PrintWriter out)
      • emitSummaryTable

        private void emitSummaryTable​(java.io.PrintWriter out,
                                      java.util.Formatter formatter,
                                      boolean isReceived)
      • emitSummaryTableHeader

        private static void emitSummaryTableHeader​(java.io.PrintWriter out,
                                                   java.util.Formatter formatter)
      • emitSummaryTableRows

        private static void emitSummaryTableRows​(java.io.PrintWriter out,
                                                 java.util.Formatter formatter,
                                                 RpczZPageHandler.StatsSnapshot snapshot,
                                                 java.lang.String method)
      • toDoubleSeconds

        private static double toDoubleSeconds​(Duration duration)