KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > jbossnet > jmx > server > JMXTest


1 /*
2 * JBoss, the OpenSource J2EE webOS
3 *
4 * Distributable under LGPL license.
5 * See terms of license at gnu.org.
6 */

7 package org.jboss.test.jbossnet.jmx.server;
8
9 /**
10  * A test mbean that will be provided as a web-service
11  * @jmx.mbean name="jboss.net:service=JMXTestMBean"
12  * @jboss-net.web-service urn="JMXTest"
13  * @author braswell
14  * @author jung
15  * @version $Revision: 1.1.1.1.6.1 $
16  * @since long ago
17  */

18
19 public class JMXTest implements JMXTestMBean
20 {
21
22    /**
23     * Method getTestString
24     * @jmx.managed-attribute
25     * @jboss-net.web-method
26     * @return
27     */

28
29    public String JavaDoc getTestString()
30    {
31       return testString;
32    }
33
34    /**
35     * Method setTestString
36     * @jmx.managed-attribute
37     * @jboss-net.web-method
38     * @param str
39     */

40
41    public void setTestString(String JavaDoc str)
42    {
43       testString = str;
44    }
45
46    /**
47     * Method noopOperation
48     * @jmx.managed-operation
49     * @jboss-net.web-method
50     */

51
52    public void noopOperation()
53    {
54       /* doing nothing */
55    }
56
57    /* Member variables */
58    private String JavaDoc testString = "JMX_TEST_STRING";
59
60 }
61
Popular Tags