Class UpgradeGroupInfo

  • All Implemented Interfaces:
    javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.modelmbean.ModelMBeanNotificationBroadcaster, javax.management.NotificationBroadcaster

    public class UpgradeGroupInfo
    extends BaseModelMBean
    This aggregates the data collected from each UpgradeInfo instance.
    • Constructor Detail

      • UpgradeGroupInfo

        public UpgradeGroupInfo()
        Constructs a new UpgradeGroupInfo.
    • Method Detail

      • addUpgradeInfo

        public void addUpgradeInfo​(UpgradeInfo ui)
        Adds an active upgrade connection to this group.
        Parameters:
        ui - the upgrade connection
      • removeUpgradeInfo

        public void removeUpgradeInfo​(UpgradeInfo ui)
        Removes an upgrade connection from this group.
        Parameters:
        ui - the upgrade connection to remove
      • getBytesReceived

        public long getBytesReceived()
        Returns the total bytes received across all connections.
        Returns:
        the total bytes received
      • setBytesReceived

        public void setBytesReceived​(long bytesReceived)
        Resets the bytes received counter.
        Parameters:
        bytesReceived - the new value (ignored, used for MBean reset)
      • getBytesSent

        public long getBytesSent()
        Returns the total bytes sent across all connections.
        Returns:
        the total bytes sent
      • setBytesSent

        public void setBytesSent​(long bytesSent)
        Resets the bytes sent counter.
        Parameters:
        bytesSent - the new value (ignored, used for MBean reset)
      • getMsgsReceived

        public long getMsgsReceived()
        Returns the total messages received across all connections.
        Returns:
        the total messages received
      • setMsgsReceived

        public void setMsgsReceived​(long msgsReceived)
        Resets the messages received counter.
        Parameters:
        msgsReceived - the new value (ignored, used for MBean reset)
      • getMsgsSent

        public long getMsgsSent()
        Returns the total messages sent across all connections.
        Returns:
        the total messages sent
      • setMsgsSent

        public void setMsgsSent​(long msgsSent)
        Resets the messages sent counter.
        Parameters:
        msgsSent - the new value (ignored, used for MBean reset)
      • resetCounters

        public void resetCounters()
        Resets all counters to zero.