Class UpgradeGroupInfo
java.lang.Object
org.apache.tomcat.util.modeler.BaseModelMBean
org.apache.coyote.http11.upgrade.UpgradeGroupInfo
- All Implemented Interfaces:
DynamicMBean, MBeanRegistration, ModelMBeanNotificationBroadcaster, NotificationBroadcaster
This aggregates the data collected from each UpgradeInfo instance.
-
Field Summary
Fields inherited from class BaseModelMBean
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an active upgrade connection to this group.longReturns the total bytes received across all connections.longReturns the total bytes sent across all connections.longReturns the total messages received across all connections.longReturns the total messages sent across all connections.voidRemoves an upgrade connection from this group.voidResets all counters to zero.voidsetBytesReceived(long bytesReceived) Resets the bytes received counter.voidsetBytesSent(long bytesSent) Resets the bytes sent counter.voidsetMsgsReceived(long msgsReceived) Resets the messages received counter.voidsetMsgsSent(long msgsSent) Resets the messages sent counter.Methods inherited from class BaseModelMBean
addAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, invoke, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedBean, setManagedResource, toString
-
Constructor Details
-
UpgradeGroupInfo
public UpgradeGroupInfo()Constructs a new UpgradeGroupInfo.
-
-
Method Details
-
addUpgradeInfo
Adds an active upgrade connection to this group.- Parameters:
ui- the upgrade connection
-
removeUpgradeInfo
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.
-