@Controller
public class DataSourceTestController
extends org.springframework.web.servlet.mvc.ParameterizableViewController
| Constructor and Description |
|---|
DataSourceTestController() |
| Modifier and Type | Method and Description |
|---|---|
long |
getCollectionPeriod()
Gets the collection period.
|
int |
getHistorySize()
Gets the history size.
|
int |
getMaxRows()
Gets the max rows.
|
String |
getReplacePattern()
Gets the replace pattern.
|
int |
getRowsPerPage()
Gets the rows per page.
|
org.springframework.web.servlet.ModelAndView |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
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 |
setCollectionPeriod(String collectionPeriod)
Sets the collection period using expression.
|
void |
setHistorySize(int historySize)
Sets the history size.
|
void |
setMaxRows(int maxRows)
Sets the max rows.
|
void |
setReplacePattern(String replacePattern)
Sets the replace pattern.
|
void |
setRowsPerPage(int rowsPerPage)
Sets the rows per page.
|
void |
setViewName(String viewName) |
getStatusCode, getView, getViewName, isStatusOnly, setStatusCode, setStatusOnly, setView, toStringisSynchronizeOnSession, setSynchronizeOnSessionapplyCacheControl, 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, setVaryByRequestHeadersgetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext@RequestMapping(path="/sql/datasourcetest.htm")
public org.springframework.web.servlet.ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
handleRequest in interface org.springframework.web.servlet.mvc.ControllerhandleRequest in class org.springframework.web.servlet.mvc.AbstractControllerExceptionprotected org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
handleRequestInternal in class org.springframework.web.servlet.mvc.ParameterizableViewControllerExceptionpublic long getCollectionPeriod()
public void setCollectionPeriod(long collectionPeriod)
collectionPeriod - the new collection period@Value(value="${psiprobe.beans.stats.collectors.connector.period}")
public void setCollectionPeriod(String collectionPeriod)
collectionPeriod - the new collection period using expressionpublic int getMaxRows()
@Value(value="1000") public void setMaxRows(int maxRows)
maxRows - the new max rowspublic int getRowsPerPage()
@Value(value="50") public void setRowsPerPage(int rowsPerPage)
rowsPerPage - the new rows per pagepublic int getHistorySize()
@Value(value="30") public void setHistorySize(int historySize)
historySize - the new history sizepublic String getReplacePattern()
@Value(value="^http(s)?://[a-zA-Z\\-\\.0-9]+(:[0-9]+)?") public void setReplacePattern(String replacePattern)
replacePattern - the new replace pattern@Value(value="datasourcetest") public void setViewName(String viewName)
setViewName in class org.springframework.web.servlet.mvc.ParameterizableViewControllerCopyright © 2009–2020 psi-probe. All rights reserved.