Class UpgradeGroupInfo

java.lang.Object
org.apache.tomcat.util.modeler.BaseModelMBean
org.apache.coyote.http11.upgrade.UpgradeGroupInfo
All Implemented Interfaces:
DynamicMBean, MBeanRegistration, ModelMBeanNotificationBroadcaster, NotificationBroadcaster

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

    • UpgradeGroupInfo

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

    • 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.