1 /*
2  * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * This code is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 only, as
7  * published by the Free Software Foundation.
8  *
9  * This code is distributed in the hope that it will be useful, but WITHOUT
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 @SqeDescriptorKey("INTERFACE MBS_LightMBean")
25 public interface MBS_LightMBean {
26     // Getter for property param
27     @SqeDescriptorKey("ATTRIBUTE Param")
28     public RjmxMBeanParameter getParam() ;
29 
30     // Setter for property param
31     @SqeDescriptorKey("ATTRIBUTE Param")
32     public void setParam(RjmxMBeanParameter param) ;
33 
34     // Getter for property aString
35     @SqeDescriptorKey("ATTRIBUTE Astring")
36     public String getAstring() ;
37 
38     // Setter for property aString
39     @SqeDescriptorKey("ATTRIBUTE Astring")
40     public void setAstring(String aString) ;
41 
42     // Getter for property anInt
43     @SqeDescriptorKey("ATTRIBUTE AnInt")
44     public int getAnInt() ;
45 
46     // Setter for property anInt
47     @SqeDescriptorKey("ATTRIBUTE AnInt")
48     public void setAnInt(int anInt) ;
49 
50     // Getter for property anException
51     @SqeDescriptorKey("ATTRIBUTE AnException")
MBS_Light()52     public Exception getAnException() ;
53 
54     // Setter for property anException
55     @SqeDescriptorKey("ATTRIBUTE AnException")
MBS_Light(@qeDescriptorKeyR) RjmxMBeanParameter param)56     public void setAnException(Exception anException) ;
57 
58     // Getter for property anError
59     @SqeDescriptorKey("ATTRIBUTE AnError")
60     public Error getAnError() ;
61 
MBS_Light(@qeDescriptorKeyR)String param)62     // Setter for property anError
63     @SqeDescriptorKey("ATTRIBUTE AnError")
64     public void setAnError(Error anError) ;
65 
66     // An operation
getParam()67     @SqeDescriptorKey("OPERATION operate1")
68     public RjmxMBeanParameter operate1(
69             @SqeDescriptorKey("OPERATION PARAMETER name")String name) ;
70 
71     // An operation
setParam(RjmxMBeanParameter param)72     @SqeDescriptorKey("OPERATION operate2")
73     public String operate2(
74             @SqeDescriptorKey("OPERATION PARAMETER param")RjmxMBeanParameter param) ;
75 
76     // Throws an error
getAstring()77     @SqeDescriptorKey("OPERATION throwError")
78     public void throwError();
79 
80     // Throws an exception
81     @SqeDescriptorKey("OPERATION throwException")
setAstring(String aString)82     public void throwException() throws Exception;
83 
84     // Send a notification
85     @SqeDescriptorKey("OPERATION sendNotification")
86     public void sendNotification();
getAnInt()87 
88     // Receive a notification and return the type
89     @SqeDescriptorKey("OPERATION waitForNotification")
90     public String waitForNotification();
91 
setAnInt(int anInt)92     // Receive a notification and return the HandBack
93     @SqeDescriptorKey("OPERATION waitForNotificationHB")
94     public Object waitForNotificationHB();
95 
96     // Receive multi notifications and return the HandBacks
getAnException()97     @SqeDescriptorKey("OPERATION waitForMultiNotifications")
98     public Object[] waitForMultiNotifications(
99             @SqeDescriptorKey("OPERATION PARAMETER nb")String nb);
100 
101     // Is the notification received
setAnException(Exception anException)102     @SqeDescriptorKey("OPERATION notificationReceived")
103     public Boolean notificationReceived();
104 
105     // Return the current authorization Id
106     @SqeDescriptorKey("OPERATION getAuthorizationId")
getAnError()107     public String getAuthorizationId();
108 }
109