Class JMXJsonServletNaNFiltered

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.hadoop.jmx.JMXJsonServlet
org.apache.hadoop.jmx.JMXJsonServletNaNFiltered
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class JMXJsonServletNaNFiltered extends JMXJsonServlet
For example in case of MutableGauge we are using numbers, but not implementing Number interface, so we skip class check here because we can not be sure NaN values are wrapped with classes which implements the Number interface
See Also:
  • Field Summary

    Fields inherited from class org.apache.hadoop.jmx.JMXJsonServlet

    jsonFactory, mBeanServer
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    In case you need to modify the logic, how java objects transforms to json, you can overwrite this method to return true in case special handling
    protected void
    extraWrite(Object value, String attName, com.fasterxml.jackson.core.JsonGenerator jg)
     

    Methods inherited from class org.apache.hadoop.jmx.JMXJsonServlet

    doGet, doTrace, init, isInstrumentationAccessAllowed

    Methods inherited from class javax.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPost, doPut, getLastModified, service, service

    Methods inherited from class javax.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JMXJsonServletNaNFiltered

      public JMXJsonServletNaNFiltered()
  • Method Details

    • extraCheck

      protected boolean extraCheck(Object value)
      Description copied from class: JMXJsonServlet
      In case you need to modify the logic, how java objects transforms to json, you can overwrite this method to return true in case special handling
      Overrides:
      extraCheck in class JMXJsonServlet
      Parameters:
      value - the object what should be judged
      Returns:
      true, if it needs special transformation
    • extraWrite

      protected void extraWrite(Object value, String attName, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException
      Overrides:
      extraWrite in class JMXJsonServlet
      Throws:
      IOException