org.glassfish.jersey.server.internal.monitoring.jmx
Class ResponseMXBeanImpl

java.lang.Object
  extended by org.glassfish.jersey.server.internal.monitoring.jmx.ResponseMXBeanImpl
All Implemented Interfaces:
ResponseMXBean

public class ResponseMXBeanImpl
extends Object
implements ResponseMXBean

MXBean implementing the ResponseMXBean MXBean interface.

Author:
Miroslav Fuksa (miroslav.fuksa at oracle.com)

Constructor Summary
ResponseMXBeanImpl()
           
 
Method Summary
 Integer getLastResponseCode()
          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.
 void updateResponseStatistics(ResponseStatistics responseStatistics)
          Update the statistics exposed by the MXBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseMXBeanImpl

public ResponseMXBeanImpl()
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: 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 interface ResponseMXBean
Returns:
Map with status codes keys and count as values.

getLastResponseCode

public Integer getLastResponseCode()
Description copied from interface: ResponseMXBean
Returns the response code of a last response written by the application.

Specified by:
getLastResponseCode in interface ResponseMXBean
Returns:
Last response status code.


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.