Package org.apache.coyote
Class RequestGroupInfo
- java.lang.Object
-
- org.apache.tomcat.util.modeler.BaseModelMBean
-
- org.apache.coyote.RequestGroupInfo
-
- All Implemented Interfaces:
javax.management.DynamicMBean,javax.management.MBeanRegistration,javax.management.modelmbean.ModelMBeanNotificationBroadcaster,javax.management.NotificationBroadcaster
public class RequestGroupInfo extends BaseModelMBean
JMX artifact to aggregate data from each request processor thread.
-
-
Field Summary
-
Fields inherited from class org.apache.tomcat.util.modeler.BaseModelMBean
attributeBroadcaster, generalBroadcaster, managedBean, oname, resource, resourceType
-
-
Constructor Summary
Constructors Constructor Description RequestGroupInfo()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRequestProcessor(RequestInfo rp)Add a request processor.longgetBytesReceived()Return the total bytes received.longgetBytesSent()Return the total bytes sent.intgetErrorCount()Return the error count.longgetMaxTime()Return the maximum request processing time.longgetProcessingTime()Return the total processing time.intgetRequestCount()Return the request count.voidremoveRequestProcessor(RequestInfo rp)Remove a request processor.voidresetCounters()Reset 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 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
-
addRequestProcessor
public void addRequestProcessor(RequestInfo rp)
Add a request processor.- Parameters:
rp- the request processor
-
removeRequestProcessor
public void removeRequestProcessor(RequestInfo rp)
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.
-
-