Class BaseMemoryStatsController

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller
    Direct Known Subclasses:
    MemoryStatsAjaxController, MemoryStatsController

    public class BaseMemoryStatsController
    extends org.springframework.web.servlet.mvc.ParameterizableViewController
    The Class BaseMemoryStatsController.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long collectionPeriod
      The collection period.
      private JvmMemoryInfoAccessorBean jvmMemoryInfoAccessorBean
      The jvm memory info accessor bean.
      • Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator

        HEADER_CACHE_CONTROL, METHOD_GET, METHOD_HEAD, METHOD_POST
      • Fields inherited from class org.springframework.context.support.ApplicationObjectSupport

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getCollectionPeriod()
      Gets the collection period.
      JvmMemoryInfoAccessorBean getJvmMemoryInfoAccessorBean()
      Gets the jvm memory info accessor bean.
      protected org.springframework.web.servlet.ModelAndView handleRequestInternal​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      void setCollectionPeriod​(long collectionPeriod)
      Sets the collection period.
      void setJvmMemoryInfoAccessorBean​(JvmMemoryInfoAccessorBean jvmMemoryInfoAccessorBean)
      Sets the jvm memory info accessor bean.
      • Methods inherited from class org.springframework.web.servlet.mvc.ParameterizableViewController

        getStatusCode, getView, getViewName, isStatusOnly, setStatusCode, setStatusOnly, setView, setViewName, toString
      • Methods inherited from class org.springframework.web.servlet.mvc.AbstractController

        handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
      • Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator

        applyCacheControl, applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, checkRequest, getAllowHeader, getCacheControl, getCacheSeconds, getSupportedMethods, getVaryByRequestHeaders, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, prepareResponse, preventCaching, setAlwaysMustRevalidate, setCacheControl, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader, setVaryByRequestHeaders
      • Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport

        getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
      • Methods inherited from class org.springframework.context.support.ApplicationObjectSupport

        getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
    • Field Detail

      • jvmMemoryInfoAccessorBean

        @Inject
        private JvmMemoryInfoAccessorBean jvmMemoryInfoAccessorBean
        The jvm memory info accessor bean.
      • collectionPeriod

        private long collectionPeriod
        The collection period.
    • Constructor Detail

      • BaseMemoryStatsController

        public BaseMemoryStatsController()
    • Method Detail

      • getJvmMemoryInfoAccessorBean

        public JvmMemoryInfoAccessorBean getJvmMemoryInfoAccessorBean()
        Gets the jvm memory info accessor bean.
        Returns:
        the jvm memory info accessor bean
      • setJvmMemoryInfoAccessorBean

        public void setJvmMemoryInfoAccessorBean​(JvmMemoryInfoAccessorBean jvmMemoryInfoAccessorBean)
        Sets the jvm memory info accessor bean.
        Parameters:
        jvmMemoryInfoAccessorBean - the new jvm memory info accessor bean
      • getCollectionPeriod

        public long getCollectionPeriod()
        Gets the collection period.
        Returns:
        the collection period
      • setCollectionPeriod

        public void setCollectionPeriod​(long collectionPeriod)
        Sets the collection period.
        Parameters:
        collectionPeriod - the new collection period
      • handleRequestInternal

        protected org.springframework.web.servlet.ModelAndView handleRequestInternal​(javax.servlet.http.HttpServletRequest request,
                                                                                     javax.servlet.http.HttpServletResponse response)
                                                                              throws Exception
        Overrides:
        handleRequestInternal in class org.springframework.web.servlet.mvc.ParameterizableViewController
        Throws:
        Exception