1 // Tags: not-a-test |
|
2 |
|
3 // Copyright (C) 2007 Andrew John Hughes <gnu_andrew@member.fsf.org> |
|
4 |
|
5 // This file is part of Mauve. |
|
6 |
|
7 // Mauve is free software; you can redistribute it and/or modify |
|
8 // it under the terms of the GNU General Public License as published by |
|
9 // the Free Software Foundation; either version 2, or (at your option) |
|
10 // any later version. |
|
11 |
|
12 // Mauve is distributed in the hope that it will be useful, |
|
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 // GNU General Public License for more details. |
|
16 |
|
17 // You should have received a copy of the GNU General Public License |
|
18 // along with Mauve; see the file COPYING. If not, write to |
|
19 // the Free Software Foundation, 59 Temple Place - Suite 330, |
|
20 // Boston, MA 02111-1307, USA. |
|
21 |
|
22 package gnu.testlet.javax.management.MBeanServerInvocationHandler; |
|
23 |
|
24 import javax.management.ObjectName; |
|
25 |
|
26 import java.util.Map; |
|
27 import java.util.Set; |
|
28 import java.util.SortedMap; |
|
29 import java.util.SortedSet; |
|
30 |
|
31 /** |
|
32 * Test {@link javax.management.MXBean} implementation for proxying. |
|
33 * |
|
34 * @author <a href="mailto:gnu_andrew@member.fsf.org">Andrew John Hughes</a> |
|
35 */ |
|
36 public class TestC |
|
37 implements TestCMXBean |
|
38 { |
|
39 |
|
40 private int id; |
|
41 |
|
42 private Integer size; |
|
43 |
|
44 private ObjectName name; |
|
45 |
|
46 private float[] weights; |
|
47 |
|
48 private String[] names; |
|
49 |
|
50 private Set<Integer> ages; |
|
51 |
|
52 private SortedSet<String> biscuits; |
|
53 |
|
54 private Colour colour; |
|
55 |
|
56 private Map<String,Integer> numbers; |
|
57 |
|
58 private SortedMap<String, Integer> sortedNumbers; |
|
59 |
|
60 private ChildMXBean child; |
|
61 |
|
62 public int getId() |
|
63 { |
|
64 return id; |
|
65 } |
|
66 |
|
67 public void setId(int id) |
|
68 { |
|
69 this.id = id; |
|
70 } |
|
71 |
|
72 public Integer getSize() |
|
73 { |
|
74 return size; |
|
75 } |
|
76 |
|
77 public void setSize(Integer size) |
|
78 { |
|
79 this.size = size; |
|
80 } |
|
81 |
|
82 public ObjectName getName() |
|
83 { |
|
84 return name; |
|
85 } |
|
86 |
|
87 public void setName(ObjectName name) |
|
88 { |
|
89 this.name = name; |
|
90 } |
|
91 |
|
92 public float[] getWeights() |
|
93 { |
|
94 return weights; |
|
95 } |
|
96 |
|
97 public void setWeights(float[] weights) |
|
98 { |
|
99 this.weights = weights; |
|
100 } |
|
101 |
|
102 public String[] getNames() |
|
103 { |
|
104 return names; |
|
105 } |
|
106 |
|
107 public void setNames(String[] names) |
|
108 { |
|
109 this.names = names; |
|
110 } |
|
111 |
|
112 public Set<Integer> getAges() |
|
113 { |
|
114 return ages; |
|
115 } |
|
116 |
|
117 public void setAges(Set<Integer> ages) |
|
118 { |
|
119 this.ages = ages; |
|
120 } |
|
121 |
|
122 public SortedSet<String> getBiscuits() |
|
123 { |
|
124 return biscuits; |
|
125 } |
|
126 |
|
127 public void setBiscuits(SortedSet<String> biscuits) |
|
128 { |
|
129 this.biscuits = biscuits; |
|
130 } |
|
131 |
|
132 public Colour getColour() |
|
133 { |
|
134 return colour; |
|
135 } |
|
136 |
|
137 public void setColour(Colour colour) |
|
138 { |
|
139 this.colour = colour; |
|
140 } |
|
141 |
|
142 public Map<String,Integer> getPhoneNumbers() |
|
143 { |
|
144 return numbers; |
|
145 } |
|
146 |
|
147 public void setPhoneNumbers(Map<String,Integer> numbers) |
|
148 { |
|
149 this.numbers = numbers; |
|
150 } |
|
151 |
|
152 public SortedMap<String,Integer> getSortedPhoneNumbers() |
|
153 { |
|
154 return sortedNumbers; |
|
155 } |
|
156 |
|
157 public void setSortedPhoneNumbers(SortedMap<String,Integer> numbers) |
|
158 { |
|
159 sortedNumbers = numbers; |
|
160 } |
|
161 |
|
162 public ChildMXBean getChild() |
|
163 { |
|
164 return child; |
|
165 } |
|
166 |
|
167 public void setChild(ChildMXBean child) |
|
168 { |
|
169 this.child = child; |
|
170 } |
|
171 |
|
172 } |
|