Class ConnectionStatistics

    • Constructor Detail

      • ConnectionStatistics

        public ConnectionStatistics()
    • Method Detail

      • doStart

        protected void doStart()
                        throws java.lang.Exception
        Overrides:
        doStart in class AbstractLifeCycle
        Throws:
        java.lang.Exception
      • onTotalOpened

        protected void onTotalOpened​(Connection connection)
      • onConnectionOpened

        protected void onConnectionOpened​(Connection connection)
      • onTotalClosed

        protected void onTotalClosed​(Connection connection)
      • onConnectionClosed

        protected void onConnectionClosed​(Connection connection)
      • getReceivedBytes

        @ManagedAttribute("Total number of bytes received by tracked connections")
        public long getReceivedBytes()
      • getReceivedBytesRate

        @ManagedAttribute("Total number of bytes received per second since the last invocation of this method")
        public long getReceivedBytesRate()
      • getSentBytes

        @ManagedAttribute("Total number of bytes sent by tracked connections")
        public long getSentBytes()
      • getSentBytesRate

        @ManagedAttribute("Total number of bytes sent per second since the last invocation of this method")
        public long getSentBytesRate()
      • getConnectionDurationMax

        @ManagedAttribute("The max duration of a connection in ms")
        public long getConnectionDurationMax()
      • getConnectionDurationMean

        @ManagedAttribute("The mean duration of a connection in ms")
        public double getConnectionDurationMean()
      • getConnectionDurationStdDev

        @ManagedAttribute("The standard deviation of the duration of a connection")
        public double getConnectionDurationStdDev()
      • getConnectionsTotal

        @ManagedAttribute("The total number of connections opened")
        public long getConnectionsTotal()
      • getConnections

        @ManagedAttribute("The current number of open connections")
        public long getConnections()
      • getConnectionsMax

        @ManagedAttribute("The max number of open connections")
        public long getConnectionsMax()
      • getReceivedMessages

        @ManagedAttribute("The total number of messages received")
        public long getReceivedMessages()
      • getReceivedMessagesRate

        @ManagedAttribute("Total number of messages received per second since the last invocation of this method")
        public long getReceivedMessagesRate()
      • getSentMessages

        @ManagedAttribute("The total number of messages sent")
        public long getSentMessages()
      • getSentMessagesRate

        @ManagedAttribute("Total number of messages sent per second since the last invocation of this method")
        public long getSentMessagesRate()
      • getConnectionStatisticsGroups

        public java.util.Map<java.lang.String,​ConnectionStatistics.Stats> getConnectionStatisticsGroups()
      • dump

        public void dump​(java.lang.Appendable out,
                         java.lang.String indent)
                  throws java.io.IOException
        Description copied from interface: Dumpable
        Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
        Specified by:
        dump in interface Dumpable
        Parameters:
        out - The appendable to dump to
        indent - The indent to apply after any new lines.
        Throws:
        java.io.IOException - if unable to write to Appendable