Class ResponseMXBeanImpl
- java.lang.Object
-
- org.glassfish.jersey.server.internal.monitoring.jmx.ResponseMXBeanImpl
-
- All Implemented Interfaces:
ResponseMXBean
public class ResponseMXBeanImpl extends java.lang.Object implements ResponseMXBean
MXBean implementing theResponseMXBean
MXBean interface.
-
-
Field Summary
Fields Modifier and Type Field Description private ResponseStatistics
responseStatistics
-
Constructor Summary
Constructors Constructor Description ResponseMXBeanImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
getLastResponseCode()
Returns the response code of a last response written by the application.java.util.Map<java.lang.Integer,java.lang.Long>
getResponseCodesToCountMap()
Returns statistics of response codes produces by the application.void
updateResponseStatistics(ResponseStatistics responseStatistics)
Update the statistics exposed by the MXBean.
-
-
-
Field Detail
-
responseStatistics
private volatile ResponseStatistics responseStatistics
-
-
Method Detail
-
updateResponseStatistics
public void updateResponseStatistics(ResponseStatistics responseStatistics)
Update the statistics exposed by the MXBean.- Parameters:
responseStatistics
-
-
getResponseCodesToCountMap
public java.util.Map<java.lang.Integer,java.lang.Long> getResponseCodesToCountMap()
Description copied from interface:ResponseMXBean
Returns 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:
getResponseCodesToCountMap
in interfaceResponseMXBean
- Returns:
- Map with status codes keys and count as values.
-
getLastResponseCode
public java.lang.Integer getLastResponseCode()
Description copied from interface:ResponseMXBean
Returns the response code of a last response written by the application.- Specified by:
getLastResponseCode
in interfaceResponseMXBean
- Returns:
- Last response status code.
-
-