Class RequestGroupInfo
java.lang.Object
org.apache.tomcat.util.modeler.BaseModelMBean
org.apache.coyote.RequestGroupInfo
- All Implemented Interfaces:
DynamicMBean, MBeanRegistration, ModelMBeanNotificationBroadcaster, NotificationBroadcaster
JMX artifact to aggregate data from each request processor thread.
-
Field Summary
Fields inherited from class BaseModelMBean
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a request processor.longReturn the total bytes received.longReturn the total bytes sent.intReturn the error count.longReturn the maximum request processing time.longReturn the total processing time.intReturn the request count.voidRemove a request processor.voidReset all counters.voidsetBytesReceived(long bytesReceived) Reset the bytes received.voidsetBytesSent(long bytesSent) Reset the bytes sent.voidsetErrorCount(int errorCount) Reset the error count.voidsetMaxTime(long maxTime) Reset the maximum time.voidsetProcessingTime(long totalTime) Reset the total processing time.voidsetRequestCount(int requestCount) Reset the request count.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
-
RequestGroupInfo
public RequestGroupInfo()Default constructor.
-
-
Method Details
-
addRequestProcessor
Add a request processor.- Parameters:
rp- the request processor
-
removeRequestProcessor
Remove a request processor.- Parameters:
rp- the request processor
-
getMaxTime
public long getMaxTime()Return the maximum request processing time.- Returns:
- the maximum time
-
setMaxTime
public void setMaxTime(long maxTime) Reset the maximum time.- Parameters:
maxTime- the new maximum time
-
getProcessingTime
public long getProcessingTime()Return the total processing time.- Returns:
- the total processing time
-
setProcessingTime
public void setProcessingTime(long totalTime) Reset the total processing time.- Parameters:
totalTime- the new total processing time
-
getRequestCount
public int getRequestCount()Return the request count.- Returns:
- the request count
-
setRequestCount
public void setRequestCount(int requestCount) Reset the request count.- Parameters:
requestCount- the new request count
-
getErrorCount
public int getErrorCount()Return the error count.- Returns:
- the error count
-
setErrorCount
public void setErrorCount(int errorCount) Reset the error count.- Parameters:
errorCount- the new error count
-
getBytesReceived
public long getBytesReceived()Return the total bytes received.- Returns:
- the bytes received
-
setBytesReceived
public void setBytesReceived(long bytesReceived) Reset the bytes received.- Parameters:
bytesReceived- the new bytes received
-
getBytesSent
public long getBytesSent()Return the total bytes sent.- Returns:
- the bytes sent
-
setBytesSent
public void setBytesSent(long bytesSent) Reset the bytes sent.- Parameters:
bytesSent- the new bytes sent
-
resetCounters
public void resetCounters()Reset all counters.
-