Path: blob/master/test/jdk/javax/management/mxbean/BasicMXBean.java
41152 views
/*1* Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223import java.util.Date;24import java.util.Map;2526import javax.management.ObjectName;2728/**29* Interface BasicMBean30* Basic Description31*/32@SqeDescriptorKey("INTERFACE BasicMXBean")33public interface BasicMXBean34{35/**36* Get int attribute37*/38@SqeDescriptorKey("ATTRIBUTE intAtt")39public int getIntAtt();4041/**42* Set int attribute43*/44@SqeDescriptorKey("ATTRIBUTE intAtt")45public void setIntAtt(int value);4647/**48* Get Integer attribute49*/50@SqeDescriptorKey("ATTRIBUTE integerAtt")51public Integer getIntegerAtt();5253/**54* Set Integer attribute55*/56@SqeDescriptorKey("ATTRIBUTE integerAtt")57public void setIntegerAtt(Integer value);5859/**60* Get boolean attribute61*/62@SqeDescriptorKey("ATTRIBUTE boolAtt")63public boolean getBoolAtt();6465/**66* Set boolean attribute67*/68@SqeDescriptorKey("ATTRIBUTE boolAtt")69public void setBoolAtt(boolean value);7071/**72* Get Boolean attribute73*/74@SqeDescriptorKey("ATTRIBUTE booleanAtt")75public Boolean getBooleanAtt();7677/**78* Set Boolean attribute79*/80@SqeDescriptorKey("ATTRIBUTE booleanAtt")81public void setBooleanAtt(Boolean value);8283/**84* Get String attribute85*/86@SqeDescriptorKey("ATTRIBUTE stringAtt")87public String getStringAtt();8889/**90* Set String attribute91*/92@SqeDescriptorKey("ATTRIBUTE stringAtt")93public void setStringAtt(String value);9495/**96* Get Date attribute97*/98@SqeDescriptorKey("ATTRIBUTE dateAtt")99public Date getDateAtt();100101/**102* Set Date attribute103*/104@SqeDescriptorKey("ATTRIBUTE dateAtt")105public void setDateAtt(Date value);106107/**108* Get ObjectName attribute109*/110@SqeDescriptorKey("ATTRIBUTE objectNameAtt")111public ObjectName getObjectNameAtt();112113/**114* Set ObjectName attribute115*/116@SqeDescriptorKey("ATTRIBUTE objectNameAtt")117public void setObjectNameAtt(ObjectName value);118119/**120* Get SqeParameter attribute121*/122@SqeDescriptorKey("ATTRIBUTE sqeParameterAtt")123public SqeParameter getSqeParameterAtt() throws Exception;124125/**126* Set SqeParameter attribute127*/128@SqeDescriptorKey("ATTRIBUTE sqeParameterAtt")129public void setSqeParameterAtt(SqeParameter value);130131/**132* Set NumOfNotificationSenders attribute133*/134@SqeDescriptorKey("ATTRIBUTE NumOfNotificationSenders")135public void setNumOfNotificationSenders(int value);136137/**138* Set NumOfNotificationSenderLoops attribute139*/140@SqeDescriptorKey("ATTRIBUTE NumOfNotificationSenderLoops")141public void setNumOfNotificationSenderLoops(int value);142143/**144* do nothing145*146*/147@SqeDescriptorKey("OPERATION doNothing")148public void doNothing();149150/**151* Do take SqeParameter as a parameter152*/153@SqeDescriptorKey("OPERATION doWeird")154public void doWeird(@SqeDescriptorKey("METHOD PARAMETER")SqeParameter param);155156/**157* throw an Exception158*159*/160@SqeDescriptorKey("OPERATION throwException")161public void throwException() throws Exception;162163/**164* throw an Error165*166*/167@SqeDescriptorKey("OPERATION throwError")168public void throwError();169170/**171* reset all attributes172*173*/174@SqeDescriptorKey("OPERATION reset")175public void reset();176177/**178* returns the weather for the coming days179*180* @param verbose <code>boolean</code> verbosity181* @return <code>ObjectName</code>182*/183@SqeDescriptorKey("OPERATION getWeather")184public Weather getWeather(@SqeDescriptorKey("METHOD PARAMETER")boolean verbose)185throws java.lang.Exception;186187public enum Weather {188CLOUDY, SUNNY189}190191@SqeDescriptorKey("ATTRIBUTE notifDescriptorAsMapAtt")192public Map<String, String> getNotifDescriptorAsMapAtt();193194@SqeDescriptorKey("ATTRIBUTE notifDescriptorAsMapAtt")195public void setNotifDescriptorAsMapAtt(Map<String, String> value);196197@SqeDescriptorKey("OPERATION sendNotification")198public void sendNotification(@SqeDescriptorKey("METHOD PARAMETER")String notifType);199200@SqeDescriptorKey("OPERATION sendNotificationWave")201public void sendNotificationWave(boolean customNotification) throws Exception;202}203204205