1
2
3
4
5
6
7
8
9
10
11 package psiprobe.controllers.system;
12
13 import jakarta.servlet.http.HttpServletRequest;
14 import jakarta.servlet.http.HttpServletResponse;
15
16 import org.springframework.beans.factory.annotation.Value;
17 import org.springframework.stereotype.Controller;
18 import org.springframework.web.bind.annotation.RequestMapping;
19 import org.springframework.web.servlet.ModelAndView;
20
21 import psiprobe.tools.TimeExpression;
22
23
24
25
26 @Controller
27 public class OsInfoController extends BaseSysInfoController {
28
29 @RequestMapping(path = "/adm/osinfo.htm")
30 @Override
31 public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
32 throws Exception {
33 return super.handleRequest(request, response);
34 }
35
36 @Value("osinfo")
37 @Override
38 public void setViewName(String viewName) {
39 super.setViewName(viewName);
40 }
41
42
43
44
45
46
47 @Value("${psiprobe.beans.stats.collectors.runtime.period}")
48 public void setCollectionPeriod(String collectionPeriod) {
49 super.setCollectionPeriod(TimeExpression.inSeconds(collectionPeriod));
50 }
51
52 }