68 lines
2.3 KiB
Java
68 lines
2.3 KiB
Java
|
/*
|
||
|
* Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
|
||
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||
|
*
|
||
|
* This code is free software; you can redistribute it and/or modify it
|
||
|
* under the terms of the GNU General Public License version 2 only, as
|
||
|
* published by the Free Software Foundation.
|
||
|
*
|
||
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||
|
* version 2 for more details (a copy is included in the LICENSE file that
|
||
|
* accompanied this code).
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License version
|
||
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*
|
||
|
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||
|
* CA 95054 USA or visit www.sun.com if you need additional information or
|
||
|
* have any questions.
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* This is the management interface explicitly defined for the
|
||
|
* "SimpleStandard" standard MBean.
|
||
|
* The "SimpleStandard" standard MBean implements this interface
|
||
|
* in order to be manageable through a JMX agent.
|
||
|
*
|
||
|
* The "SimpleStandardMBean" interface shows how to expose for management:
|
||
|
* - a read/write attribute (named "State") through its getter and setter
|
||
|
* methods,
|
||
|
* - a read-only attribute (named "NbChanges") through its getter method,
|
||
|
* - an operation (named "reset").
|
||
|
*/
|
||
|
public interface SimpleStandardMBean {
|
||
|
|
||
|
/**
|
||
|
* Getter: set the "State" attribute of the "SimpleStandard" standard
|
||
|
* MBean.
|
||
|
*
|
||
|
* @return the current value of the "State" attribute.
|
||
|
*/
|
||
|
public String getState();
|
||
|
|
||
|
/**
|
||
|
* Setter: set the "State" attribute of the "SimpleStandard" standard
|
||
|
* MBean.
|
||
|
*
|
||
|
* @param <VAR>s</VAR> the new value of the "State" attribute.
|
||
|
*/
|
||
|
public void setState(String s);
|
||
|
|
||
|
/**
|
||
|
* Getter: get the "NbChanges" attribute of the "SimpleStandard" standard
|
||
|
* MBean.
|
||
|
*
|
||
|
* @return the current value of the "NbChanges" attribute.
|
||
|
*/
|
||
|
public int getNbChanges();
|
||
|
|
||
|
/**
|
||
|
* Operation: reset to their initial values the "State" and "NbChanges"
|
||
|
* attributes of the "SimpleStandard" standard MBean.
|
||
|
*/
|
||
|
public void reset();
|
||
|
}
|