Class StatisticsHandler

    • Constructor Detail

      • StatisticsHandler

        public StatisticsHandler()
        Deprecated.
    • Method Detail

      • statsReset

        @ManagedOperation(value="resets statistics",
                          impact="ACTION")
        public void statsReset()
        Deprecated.
        Resets the current request statistics.
      • setGracefulShutdownWaitsForRequests

        public void setGracefulShutdownWaitsForRequests​(boolean gracefulShutdownWaitsForRequests)
        Deprecated.
        Set whether the graceful shutdown should wait for all requests to complete including async requests which are not currently dispatched, or whether it should only wait for all the actively dispatched requests to complete.
        Parameters:
        gracefulShutdownWaitsForRequests - true to wait for async requests on graceful shutdown.
      • getGracefulShutdownWaitsForRequests

        @ManagedAttribute("if graceful shutdown will wait for all requests")
        public boolean getGracefulShutdownWaitsForRequests()
        Deprecated.
        Returns:
        whether the graceful shutdown will wait for all requests to complete including async requests which are not currently dispatched, or whether it will only wait for all the actively dispatched requests to complete.
        See Also:
        getAsyncDispatches()
      • getRequestsActive

        @ManagedAttribute("number of requests currently active")
        public int getRequestsActive()
        Deprecated.
        Returns:
        the number of requests currently active. since statsReset() was last called.
      • getRequestsActiveMax

        @ManagedAttribute("maximum number of active requests")
        public int getRequestsActiveMax()
        Deprecated.
        Returns:
        the maximum number of active requests since statsReset() was last called.
      • getRequestTimeMax

        @ManagedAttribute("maximum time spend handling requests (in ms)")
        public long getRequestTimeMax()
        Deprecated.
        Returns:
        the maximum time (in milliseconds) of request handling since statsReset() was last called.
      • getRequestTimeTotal

        @ManagedAttribute("total time spend in all request handling (in ms)")
        public long getRequestTimeTotal()
        Deprecated.
        Returns:
        the total time (in milliseconds) of requests handling since statsReset() was last called.
      • getDispatched

        @ManagedAttribute("number of dispatches")
        public int getDispatched()
        Deprecated.
        Returns:
        the number of dispatches seen by this handler since statsReset() was last called, excluding active dispatches
      • getDispatchedActive

        @ManagedAttribute("number of dispatches currently active")
        public int getDispatchedActive()
        Deprecated.
        Returns:
        the number of dispatches currently in this handler since statsReset() was last called, including resumed requests
      • getDispatchedActiveMax

        @ManagedAttribute("maximum number of active dispatches being handled")
        public int getDispatchedActiveMax()
        Deprecated.
        Returns:
        the max number of dispatches currently in this handler since statsReset() was last called, including resumed requests
      • getDispatchedTimeMax

        @ManagedAttribute("maximum time spend in dispatch handling")
        public long getDispatchedTimeMax()
        Deprecated.
        Returns:
        the maximum time (in milliseconds) of request dispatch since statsReset() was last called.
      • getDispatchedTimeTotal

        @ManagedAttribute("total time spent in dispatch handling (in ms)")
        public long getDispatchedTimeTotal()
        Deprecated.
        Returns:
        the total time (in milliseconds) of requests handling since statsReset() was last called.
      • getAsyncRequests

        @ManagedAttribute("total number of async requests")
        public int getAsyncRequests()
        Deprecated.
        Returns:
        the number of requests handled by this handler since statsReset() was last called, including resumed requests
        See Also:
        getAsyncDispatches()
      • getAsyncRequestsWaiting

        @ManagedAttribute("currently waiting async requests")
        public int getAsyncRequestsWaiting()
        Deprecated.
        Returns:
        the number of requests currently suspended. since statsReset() was last called.
      • getAsyncRequestsWaitingMax

        @ManagedAttribute("maximum number of waiting async requests")
        public int getAsyncRequestsWaitingMax()
        Deprecated.
        Returns:
        the maximum number of current suspended requests since statsReset() was last called.
      • getAsyncDispatches

        @ManagedAttribute("number of requested that have been asynchronously dispatched")
        public int getAsyncDispatches()
        Deprecated.
        Returns:
        the number of requests that have been asynchronously dispatched
      • getExpires

        @ManagedAttribute("number of async requests requests that have expired")
        public int getExpires()
        Deprecated.
        Returns:
        the number of requests that expired while suspended.
        See Also:
        getAsyncDispatches()
      • getErrors

        @ManagedAttribute("number of async errors that occurred")
        public int getErrors()
        Deprecated.
        Returns:
        the number of async errors that occurred.
        See Also:
        getAsyncDispatches()
      • getResponses1xx

        @ManagedAttribute("number of requests with 1xx response status")
        public int getResponses1xx()
        Deprecated.
        Returns:
        the number of responses with a 1xx status returned by this context since statsReset() was last called.
      • getResponses2xx

        @ManagedAttribute("number of requests with 2xx response status")
        public int getResponses2xx()
        Deprecated.
        Returns:
        the number of responses with a 2xx status returned by this context since statsReset() was last called.
      • getResponses3xx

        @ManagedAttribute("number of requests with 3xx response status")
        public int getResponses3xx()
        Deprecated.
        Returns:
        the number of responses with a 3xx status returned by this context since statsReset() was last called.
      • getResponses4xx

        @ManagedAttribute("number of requests with 4xx response status")
        public int getResponses4xx()
        Deprecated.
        Returns:
        the number of responses with a 4xx status returned by this context since statsReset() was last called.
      • getResponses5xx

        @ManagedAttribute("number of requests with 5xx response status")
        public int getResponses5xx()
        Deprecated.
        Returns:
        the number of responses with a 5xx status returned by this context since statsReset() was last called.
      • getResponsesThrown

        @ManagedAttribute("number of requests that threw an exception during handling")
        public int getResponsesThrown()
        Deprecated.
        Returns:
        the number of requests that threw an exception during handling since statsReset() was last called. These may have resulted in some error responses which were unrecorded by the StatisticsHandler.
      • getStatsOnMs

        @ManagedAttribute("time in milliseconds stats have been collected for")
        public long getStatsOnMs()
        Deprecated.
        Returns:
        the milliseconds since the statistics were started with statsReset().
      • getResponsesBytesTotal

        @ManagedAttribute("total number of bytes across all responses")
        public long getResponsesBytesTotal()
        Deprecated.
        Returns:
        the total bytes of content sent in responses
      • toStatsHTML

        public java.lang.String toStatsHTML()
        Deprecated.
      • shutdown

        public java.util.concurrent.Future<java.lang.Void> shutdown()
        Deprecated.
        Specified by:
        shutdown in interface Graceful
      • isShutdown

        public boolean isShutdown()
        Deprecated.
        Specified by:
        isShutdown in interface Graceful