10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 6222961
27 * @summary Test that the counter/gauge/string monitors
28 * support attributes of arbitrary data types.
29 * @author Luis-Miguel Alventosa
30 * @modules java.desktop
31 * java.management
32 * @run clean AttributeArbitraryDataTypeTest
33 * @run build AttributeArbitraryDataTypeTest
34 * @run main AttributeArbitraryDataTypeTest
35 */
36
37 import java.beans.BeanInfo;
38 import java.beans.IntrospectionException;
39 import java.beans.PropertyDescriptor;
40 import java.beans.SimpleBeanInfo;
41 import java.lang.reflect.Array;
42 import java.lang.reflect.InvocationTargetException;
43 import javax.management.AttributeNotFoundException;
44 import javax.management.MBeanServer;
45 import javax.management.MBeanServerFactory;
46 import javax.management.Notification;
47 import javax.management.NotificationListener;
48 import javax.management.ObjectName;
49 import javax.management.monitor.CounterMonitor;
50 import javax.management.monitor.GaugeMonitor;
51 import javax.management.monitor.MonitorNotification;
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 6222961
27 * @summary Test that the counter/gauge/string monitors
28 * support attributes of arbitrary data types.
29 * @author Luis-Miguel Alventosa
30 *
31 * @modules java.desktop
32 * java.management
33 *
34 * @run clean AttributeArbitraryDataTypeTest
35 * @run build AttributeArbitraryDataTypeTest
36 * @run main AttributeArbitraryDataTypeTest
37 */
38
39 import java.beans.BeanInfo;
40 import java.beans.IntrospectionException;
41 import java.beans.PropertyDescriptor;
42 import java.beans.SimpleBeanInfo;
43 import java.lang.reflect.Array;
44 import java.lang.reflect.InvocationTargetException;
45 import javax.management.AttributeNotFoundException;
46 import javax.management.MBeanServer;
47 import javax.management.MBeanServerFactory;
48 import javax.management.Notification;
49 import javax.management.NotificationListener;
50 import javax.management.ObjectName;
51 import javax.management.monitor.CounterMonitor;
52 import javax.management.monitor.GaugeMonitor;
53 import javax.management.monitor.MonitorNotification;
|