Class ResponseMXBeanImpl
- java.lang.Object
-
- org.glassfish.jersey.server.internal.monitoring.jmx.ResponseMXBeanImpl
-
- All Implemented Interfaces:
ResponseMXBean
public class ResponseMXBeanImpl extends Object implements ResponseMXBean
MXBean implementing theResponseMXBeanMXBean interface.- Author:
- Miroslav Fuksa
-
-
Constructor Summary
Constructors Constructor Description ResponseMXBeanImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetLastResponseCode()Returns the response code of a last response written by the application.Map<Integer,Long>getResponseCodesToCountMap()Returns statistics of response codes produces by the application.voidupdateResponseStatistics(ResponseStatistics responseStatistics)Update the statistics exposed by the MXBean.
-
-
-
Method Detail
-
updateResponseStatistics
public void updateResponseStatistics(ResponseStatistics responseStatistics)
Update the statistics exposed by the MXBean.- Parameters:
responseStatistics-
-
getResponseCodesToCountMap
public Map<Integer,Long> getResponseCodesToCountMap()
Description copied from interface:ResponseMXBeanReturns statistics of response codes produces by the application. Keys of a returned map are response status codes and values is the the count of responses with these status count. Values are measured since start of the application.- Specified by:
getResponseCodesToCountMapin interfaceResponseMXBean- Returns:
- Map with status codes keys and count as values.
-
getLastResponseCode
public Integer getLastResponseCode()
Description copied from interface:ResponseMXBeanReturns the response code of a last response written by the application.- Specified by:
getLastResponseCodein interfaceResponseMXBean- Returns:
- Last response status code.
-
-