Package org.apache.coyote.http11.upgrade
Class UpgradeGroupInfo
- java.lang.Object
-
- org.apache.tomcat.util.modeler.BaseModelMBean
-
- org.apache.coyote.http11.upgrade.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.
-
-
Field Summary
-
Fields inherited from class org.apache.tomcat.util.modeler.BaseModelMBean
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType
-
-
Constructor Summary
Constructors Constructor Description UpgradeGroupInfo()Constructs a new UpgradeGroupInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddUpgradeInfo(UpgradeInfo ui)Adds an active upgrade connection to this group.longgetBytesReceived()Returns the total bytes received across all connections.longgetBytesSent()Returns the total bytes sent across all connections.longgetMsgsReceived()Returns the total messages received across all connections.longgetMsgsSent()Returns the total messages sent across all connections.voidremoveUpgradeInfo(UpgradeInfo ui)Removes an upgrade connection from this group.voidresetCounters()Resets 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 org.apache.tomcat.util.modeler.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
-
-
-
-
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.
-
-