1 /* 2 * Copyright (c) 2005, 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 import java.util.Date; 25 import java.util.Map; 26 27 import javax.management.ObjectName; 28 29 /** 30 * Interface BasicMBean 31 * Basic Description 32 */ 33 @SqeDescriptorKey("INTERFACE BasicMXBean") 34 public interface BasicMXBean 35 { 36 /** 37 * Get int attribute 38 */ 39 @SqeDescriptorKey("ATTRIBUTE intAtt") getIntAtt()40 public int getIntAtt(); 41 42 /** 43 * Set int attribute 44 */ 45 @SqeDescriptorKey("ATTRIBUTE intAtt") setIntAtt(int value)46 public void setIntAtt(int value); 47 48 /** 49 * Get Integer attribute 50 */ 51 @SqeDescriptorKey("ATTRIBUTE integerAtt") getIntegerAtt()52 public Integer getIntegerAtt(); 53 54 /** 55 * Set Integer attribute 56 */ 57 @SqeDescriptorKey("ATTRIBUTE integerAtt") setIntegerAtt(Integer value)58 public void setIntegerAtt(Integer value); 59 60 /** 61 * Get boolean attribute 62 */ 63 @SqeDescriptorKey("ATTRIBUTE boolAtt") getBoolAtt()64 public boolean getBoolAtt(); 65 66 /** 67 * Set boolean attribute 68 */ 69 @SqeDescriptorKey("ATTRIBUTE boolAtt") setBoolAtt(boolean value)70 public void setBoolAtt(boolean value); 71 72 /** 73 * Get Boolean attribute 74 */ 75 @SqeDescriptorKey("ATTRIBUTE booleanAtt") getBooleanAtt()76 public Boolean getBooleanAtt(); 77 78 /** 79 * Set Boolean attribute 80 */ 81 @SqeDescriptorKey("ATTRIBUTE booleanAtt") setBooleanAtt(Boolean value)82 public void setBooleanAtt(Boolean value); 83 84 /** 85 * Get String attribute 86 */ 87 @SqeDescriptorKey("ATTRIBUTE stringAtt") getStringAtt()88 public String getStringAtt(); 89 90 /** 91 * Set String attribute 92 */ 93 @SqeDescriptorKey("ATTRIBUTE stringAtt") setStringAtt(String value)94 public void setStringAtt(String value); 95 96 /** 97 * Get Date attribute 98 */ 99 @SqeDescriptorKey("ATTRIBUTE dateAtt") getDateAtt()100 public Date getDateAtt(); 101 102 /** 103 * Set Date attribute 104 */ 105 @SqeDescriptorKey("ATTRIBUTE dateAtt") setDateAtt(Date value)106 public void setDateAtt(Date value); 107 108 /** 109 * Get ObjectName attribute 110 */ 111 @SqeDescriptorKey("ATTRIBUTE objectNameAtt") getObjectNameAtt()112 public ObjectName getObjectNameAtt(); 113 114 /** 115 * Set ObjectName attribute 116 */ 117 @SqeDescriptorKey("ATTRIBUTE objectNameAtt") setObjectNameAtt(ObjectName value)118 public void setObjectNameAtt(ObjectName value); 119 120 /** 121 * Get SqeParameter attribute 122 */ 123 @SqeDescriptorKey("ATTRIBUTE sqeParameterAtt") getSqeParameterAtt()124 public SqeParameter getSqeParameterAtt() throws Exception; 125 126 /** 127 * Set SqeParameter attribute 128 */ 129 @SqeDescriptorKey("ATTRIBUTE sqeParameterAtt") setSqeParameterAtt(SqeParameter value)130 public void setSqeParameterAtt(SqeParameter value); 131 132 /** 133 * Set NumOfNotificationSenders attribute 134 */ 135 @SqeDescriptorKey("ATTRIBUTE NumOfNotificationSenders") setNumOfNotificationSenders(int value)136 public void setNumOfNotificationSenders(int value); 137 138 /** 139 * Set NumOfNotificationSenderLoops attribute 140 */ 141 @SqeDescriptorKey("ATTRIBUTE NumOfNotificationSenderLoops") setNumOfNotificationSenderLoops(int value)142 public void setNumOfNotificationSenderLoops(int value); 143 144 /** 145 * do nothing 146 * 147 */ 148 @SqeDescriptorKey("OPERATION doNothing") doNothing()149 public void doNothing(); 150 151 /** 152 * Do take SqeParameter as a parameter 153 */ 154 @SqeDescriptorKey("OPERATION doWeird") doWeird(@qeDescriptorKeyR)SqeParameter param)155 public void doWeird(@SqeDescriptorKey("METHOD PARAMETER")SqeParameter param); 156 157 /** 158 * throw an Exception 159 * 160 */ 161 @SqeDescriptorKey("OPERATION throwException") throwException()162 public void throwException() throws Exception; 163 164 /** 165 * throw an Error 166 * 167 */ 168 @SqeDescriptorKey("OPERATION throwError") throwError()169 public void throwError(); 170 171 /** 172 * reset all attributes 173 * 174 */ 175 @SqeDescriptorKey("OPERATION reset") reset()176 public void reset(); 177 178 /** 179 * returns the weather for the coming days 180 * 181 * @param verbose <code>boolean</code> verbosity 182 * @return <code>ObjectName</code> 183 */ 184 @SqeDescriptorKey("OPERATION getWeather") getWeather(@qeDescriptorKeyR)boolean verbose)185 public Weather getWeather(@SqeDescriptorKey("METHOD PARAMETER")boolean verbose) 186 throws java.lang.Exception; 187 188 public enum Weather { 189 CLOUDY, SUNNY 190 } 191 192 @SqeDescriptorKey("ATTRIBUTE notifDescriptorAsMapAtt") getNotifDescriptorAsMapAtt()193 public Map<String, String> getNotifDescriptorAsMapAtt(); 194 195 @SqeDescriptorKey("ATTRIBUTE notifDescriptorAsMapAtt") setNotifDescriptorAsMapAtt(Map<String, String> value)196 public void setNotifDescriptorAsMapAtt(Map<String, String> value); 197 198 @SqeDescriptorKey("OPERATION sendNotification") sendNotification(@qeDescriptorKeyR)String notifType)199 public void sendNotification(@SqeDescriptorKey("METHOD PARAMETER")String notifType); 200 201 @SqeDescriptorKey("OPERATION sendNotificationWave") sendNotificationWave(boolean customNotification)202 public void sendNotificationWave(boolean customNotification) throws Exception; 203 } 204