1
2
3
4
5
6
7
8
9
10
11 package psiprobe.model.jmx;
12
13 import java.util.ArrayList;
14 import java.util.Collection;
15 import java.util.Collections;
16 import java.util.List;
17
18 import javax.management.ObjectName;
19
20
21
22
23
24 public class ThreadPoolObjectName {
25
26
27 private ObjectName threadPoolName;
28
29
30 private ObjectName globalRequestProcessorName;
31
32
33 private List<ObjectName> requestProcessorNames = new ArrayList<>();
34
35
36
37
38
39
40 public ObjectName getThreadPoolName() {
41 return threadPoolName;
42 }
43
44
45
46
47
48
49 public ObjectName getGlobalRequestProcessorName() {
50 return globalRequestProcessorName;
51 }
52
53
54
55
56
57
58 public List<ObjectName> getRequestProcessorNames() {
59 return requestProcessorNames == null ? Collections.emptyList()
60 : new ArrayList<>(requestProcessorNames);
61 }
62
63
64
65
66
67
68 public void setThreadPoolName(ObjectName threadPoolName) {
69 this.threadPoolName = threadPoolName;
70 }
71
72
73
74
75
76
77 public void setGlobalRequestProcessorName(ObjectName globalRequestProcessorName) {
78 this.globalRequestProcessorName = globalRequestProcessorName;
79 }
80
81
82
83
84
85
86 public void setRequestProcessorNames(Collection<ObjectName> requestProcessorNames) {
87 this.requestProcessorNames = requestProcessorNames == null ? Collections.emptyList()
88 : new ArrayList<>(requestProcessorNames);
89 }
90
91 }