KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > jmx > compliance > standard > support > TortureMBean


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software 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 GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.test.jmx.compliance.standard.support;
23
24 /**
25  * @author <a HREF="mailto:trevor@protocool.com">Trevor Squires</a>.
26  */

27
28 public interface TortureMBean
29 {
30    String JavaDoc getNiceString();
31    void setNiceString(String JavaDoc nice);
32
33    boolean isNiceBoolean();
34    void setNiceBoolean(boolean nice);
35
36    void setInt(int foo);
37    void setIntArray(int[] foo);
38    void setNestedIntArray(int[][][] foo);
39
40    void setInteger(Integer JavaDoc foo);
41    void setIntegerArray(Integer JavaDoc[] foo);
42    void setNestedIntegerArray(Integer JavaDoc[][][] foo);
43
44    int getMyinteger();
45    int[] getMyintegerArray();
46    int[][][] getMyNestedintegerArray();
47
48    Integer JavaDoc getMyInteger();
49    Integer JavaDoc[] getMyIntegerArray();
50    Integer JavaDoc[][][] getMyNestedIntegerArray();
51
52    // these should give an isIs right?
53
boolean isready();
54    Boolean JavaDoc getReady();
55
56    // these should be operations
57
boolean ispeachy(int peachy);
58    Boolean JavaDoc isPeachy(int peachy);
59    String JavaDoc issuer();
60    int settlement(String JavaDoc thing);
61    void setMulti(String JavaDoc foo, Integer JavaDoc bar);
62    String JavaDoc getResult(String JavaDoc source);
63    void setNothing();
64    void getNothing();
65
66    // ok, we have an attribute called Something
67
// and an operation called getSomething...
68
void setSomething(String JavaDoc something);
69    void getSomething();
70
71    // ooh yesssss
72
String JavaDoc[][] doSomethingCrazy(Object JavaDoc[] args, String JavaDoc[] foo, int[][][] goMental);
73 }
74
Popular Tags