1
2
3
4
5
6
7
8
9
10
11 package psiprobe.controllers.cluster;
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 ClusterStatsController extends BaseClusterStatsController {
28
29 @Value("false")
30 @Override
31 public void setLoadMembers(boolean loadMembers) {
32 super.setLoadMembers(loadMembers);
33 }
34
35
36
37
38
39
40 @Value("${psiprobe.beans.stats.collectors.cluster.period}")
41 public void setCollectionPeriod(String collectionPeriod) {
42 super.setCollectionPeriod(TimeExpression.inSeconds(collectionPeriod));
43 }
44
45 @RequestMapping(path = "/cluster.htm")
46 @Override
47 public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
48 throws Exception {
49 return super.handleRequest(request, response);
50 }
51
52 @Value("cluster")
53 @Override
54 public void setViewName(String viewName) {
55 super.setViewName(viewName);
56 }
57
58 }