Class IOPerformanceCounter


  • public class IOPerformanceCounter
    extends Object

    IOPerformanceCounter: data object that tracks the server performance of a particular component (client, vHost, server, stream). It tracks bytes and messages sent to and from the object being measured.

    • Constructor Detail

      • IOPerformanceCounter

        public IOPerformanceCounter()
        Create an empty performance counter.
    • Method Detail

      • clone

        public IOPerformanceCounter clone()
        Create a deep clone (copy) if this object.
        Overrides:
        clone in class Object
      • addDifference

        public void addDifference​(IOPerformanceCounter current,
                                  IOPerformanceCounter last)
        Add the result of (current-last) to this counter. Used internally to efficiently track object performance on a timer.
        Parameters:
        current - current counter
        last - last counter
      • clear

        public void clear()
        Clear or reset this counter back to zero.
      • add

        public void add​(IOPerformanceCounter value)
        Add (value) to this counter.
        Parameters:
        value - value to add
      • doSet

        public void doSet​(IOPerformanceCounter value)
        Set this object to value.
        Parameters:
        value - value to set
      • incrementMessagesIn

        public long incrementMessagesIn​(long bytes)
        Increment bytes-in by bytes and increment message count by 1.
        Parameters:
        bytes - number of bytes
        Returns:
        bytes-in bytes
      • incrementFileIn

        public long incrementFileIn​(long bytes)
        Increment file-bytes-in by bytes.
        Parameters:
        bytes - number of bytes
        Returns:
        bytes-in bytes
      • incrementMessagesIn

        public long incrementMessagesIn​(long bytes,
                                        long count)
        Increment bytes-in by bytes and message count by count.
        Parameters:
        bytes - number of bytes
        count - number of messages
        Returns:
        bytes-in bytes
      • incrementBytesIn

        public long incrementBytesIn​(long bytes)
        Increment bytes-in by bytes and increment message count by 0.
        Parameters:
        bytes -
        Returns:
        bytes-in bytes
      • incrementMessagesIn

        public long incrementMessagesIn()
        Increment byte-in message count by 1.
        Returns:
        bytes-in message count
      • incrementMessagesOut

        public long incrementMessagesOut​(long bytes)
        Increment bytes-out by bytes and increment message count by 1.
        Parameters:
        bytes - number of bytes
        Returns:
        bytes-out bytes
      • incrementFileOut

        public long incrementFileOut​(long bytes)
        Increment file bytes-out by bytes.
        Parameters:
        bytes - number of bytes
        Returns:
        bytes-out bytes
      • incrementMessagesLoss

        public long incrementMessagesLoss​(long bytes)
        Increment bytes-loss by bytes and increment message count by 1.
        Parameters:
        bytes - number of bytes
        Returns:
        bytes-loss bytes
      • incrementMessagesOut

        public long incrementMessagesOut​(long bytes,
                                         long count)
        Increment bytes-out by bytes and message count by count.
        Parameters:
        bytes - number of bytes
        count - number of messages
        Returns:
        bytes-out bytes
      • incrementMessagesLoss

        public long incrementMessagesLoss​(long bytes,
                                          long count)
        Increment bytes-loss by bytes and message count by count.
        Parameters:
        bytes - number of bytes
        count - number of messages
        Returns:
        bytes-loss bytes
      • incrementBytesOut

        public long incrementBytesOut​(long bytes)
        Increment bytes-out by bytes and increment message count by 0.
        Parameters:
        bytes -
        Returns:
        bytes-out bytes
      • incrementBytesLoss

        public long incrementBytesLoss​(long bytes)
        Increment bytes-loss by bytes and increment message count by 0.
        Parameters:
        bytes -
        Returns:
        bytes-loss bytes
      • incrementMessagesOut

        public long incrementMessagesOut()
        Increment byte-out message count by 1.
        Returns:
        bytes-out message count
      • incrementMessagesLoss

        public long incrementMessagesLoss()
        Increment byte-loss message count by 1.
        Returns:
        bytes-loss message count
      • getMessagesInCount

        public long getMessagesInCount()
        Get byte-in message count
        Returns:
        byte-in message count
      • getMessagesOutCount

        public long getMessagesOutCount()
        Get byte-out message count
        Returns:
        byte-out message count
      • getMessagesLossCount

        public long getMessagesLossCount()
        Get byte-loss message count
        Returns:
        byte-loss message count
      • getMessagesInBytes

        public long getMessagesInBytes()
        Get byte-in bytes
        Returns:
        byte-in bytes
      • getFileInBytes

        public long getFileInBytes()
        Get file in bytes
        Returns:
        file in bytes
      • getMessagesOutBytes

        public long getMessagesOutBytes()
        Get byte-out bytes
        Returns:
        byte-out bytes
      • getFileOutBytes

        public long getFileOutBytes()
        Get file byte-out bytes (not implemented)
        Returns:
        byte-out bytes
      • getMessagesLossBytes

        public long getMessagesLossBytes()
        Get byte-loss bytes
        Returns:
        byte-loss bytes
      • getMessagesInCountRate

        public long getMessagesInCountRate()
        Get estimate of byte-in message count rate.
        Returns:
        estimate of byte-in message count rate (messages per second)
      • getMessagesOutCountRate

        public long getMessagesOutCountRate()
        Get estimate of byte-out message count rate.
        Returns:
        estimate of byte-out message count rate (messages per second)
      • getMessagesLossCountRate

        public long getMessagesLossCountRate()
        Get estimate of byte-loss message count rate.
        Returns:
        estimate of byte-loss message count rate (messages per second)
      • getMessagesInBytesRate

        public double getMessagesInBytesRate()
        Get estimate of byte-in message byte rate.
        Returns:
        estimate of byte-in message byte rate (bytes per second)
      • getFileInBytesRate

        public double getFileInBytesRate()
        Get estimate of file byte-in byte rate.
        Returns:
        estimate of file byte-in byte rate (bytes per second)
      • getMessagesOutBytesRate

        public double getMessagesOutBytesRate()
        Get estimate of byte-out message byte rate.
        Returns:
        estimate of byte-out message byte rate (bytes per second)
      • getFileOutBytesRate

        public double getFileOutBytesRate()
        Get estimate of file byte-out message byte rate (not implemented).
        Returns:
        estimate of file byte-out message byte rate (bytes per second)
      • getMessagesLossBytesRate

        public double getMessagesLossBytesRate()
        Get estimate of byte-loss message byte rate.
        Returns:
        estimate of byte-loss message byte rate (bytes per second)
      • dummy

        public void dummy()
      • isDebugLog

        public boolean isDebugLog()
      • setDebugLog

        public void setDebugLog​(boolean debugLog)