Class ConnectorStatisticsImpl

    • Constructor Detail

      • ConnectorStatisticsImpl

        public ConnectorStatisticsImpl()
    • Method Detail

      • getRequestCount

        public long getRequestCount()
        Specified by:
        getRequestCount in interface ConnectorStatistics
        Returns:
        The number of requests processed by this connector
      • getBytesSent

        public long getBytesSent()
        Specified by:
        getBytesSent in interface ConnectorStatistics
        Returns:
        The number of bytes sent on this connector
      • getBytesReceived

        public long getBytesReceived()
        Specified by:
        getBytesReceived in interface ConnectorStatistics
        Returns:
        The number of bytes that have been received by this connector
      • getErrorCount

        public long getErrorCount()
        Specified by:
        getErrorCount in interface ConnectorStatistics
        Returns:
        The number of requests that triggered an error (i.e. 500) response.
      • getProcessingTime

        public long getProcessingTime()
        Specified by:
        getProcessingTime in interface ConnectorStatistics
        Returns:
        The total amount of time spent processing all requests on this connector (nanoseconds)
      • requestFinished

        public void requestFinished​(long bytesSent,
                                    long bytesReceived,
                                    boolean error)
      • updateBytesSent

        public void updateBytesSent​(long bytes)
      • updateBytesReceived

        public void updateBytesReceived​(long bytes)
      • getMaxActiveConnections

        public long getMaxActiveConnections()
        Specified by:
        getMaxActiveConnections in interface ConnectorStatistics
        Returns:
        The maximum number of active connections that have every been active on this connector
      • incrementConnectionCount

        public void incrementConnectionCount()
      • decrementConnectionCount

        public void decrementConnectionCount()