Package psiprobe.controllers.system
Class BaseMemoryStatsController
- java.lang.Object
-
- org.springframework.context.support.ApplicationObjectSupport
-
- org.springframework.web.context.support.WebApplicationObjectSupport
-
- org.springframework.web.servlet.support.WebContentGenerator
-
- org.springframework.web.servlet.mvc.AbstractController
-
- org.springframework.web.servlet.mvc.ParameterizableViewController
-
- psiprobe.controllers.system.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.
-
Constructor Summary
Constructors Constructor Description BaseMemoryStatsController()
-
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
-
-
-
-
Field Detail
-
jvmMemoryInfoAccessorBean
@Inject private JvmMemoryInfoAccessorBean jvmMemoryInfoAccessorBean
The jvm memory info accessor bean.
-
collectionPeriod
private long collectionPeriod
The collection period.
-
-
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 classorg.springframework.web.servlet.mvc.ParameterizableViewController
- Throws:
Exception
-
-