Class RequestGroupInfo

All Implemented Interfaces:
DynamicMBean, MBeanRegistration, ModelMBeanNotificationBroadcaster, NotificationBroadcaster

public class RequestGroupInfo extends BaseModelMBean
JMX artifact to aggregate data from each request processor thread.
  • Constructor Details

    • RequestGroupInfo

      public RequestGroupInfo()
      Default constructor.
  • Method Details

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