1
2
3
4
5
6
7
8
9
10
11 package psiprobe.controllers.apps;
12
13 import jakarta.inject.Inject;
14
15 import org.springframework.stereotype.Controller;
16
17 import psiprobe.beans.stats.collectors.AppStatsCollectorBean;
18
19
20
21
22
23 @Controller
24 public class ResetAppStatsController extends AbstractNoSelfContextHandlerController {
25
26
27 @Inject
28 private AppStatsCollectorBean statsCollector;
29
30
31
32
33
34
35 public AppStatsCollectorBean getStatsCollector() {
36 return statsCollector;
37 }
38
39
40
41
42
43
44 public void setStatsCollector(AppStatsCollectorBean statsCollector) {
45 this.statsCollector = statsCollector;
46 }
47
48 @Override
49 protected void executeAction(String contextName) throws Exception {
50 statsCollector.reset(contextName);
51 }
52
53 }