jdk/test/javax/management/namespace/WombatMBean.java
changeset 4156 acaa49a2768a
parent 4155 460e37d40f12
child 4159 9e3aae7675f1
equal deleted inserted replaced
4155:460e37d40f12 4156:acaa49a2768a
     1 
       
     2 /*
       
     3  * Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
       
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       
     5  *
       
     6  * This code is free software; you can redistribute it and/or modify it
       
     7  * under the terms of the GNU General Public License version 2 only, as
       
     8  * published by the Free Software Foundation.
       
     9  *
       
    10  * This code is distributed in the hope that it will be useful, but WITHOUT
       
    11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
       
    12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
       
    13  * version 2 for more details (a copy is included in the LICENSE file that
       
    14  * accompanied this code).
       
    15  *
       
    16  * You should have received a copy of the GNU General Public License version
       
    17  * 2 along with this work; if not, write to the Free Software Foundation,
       
    18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
       
    19  *
       
    20  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
       
    21  * CA 95054 USA or visit www.sun.com if you need additional information or
       
    22  * have any questions.
       
    23  */
       
    24 
       
    25 import java.util.Set;
       
    26 import javax.management.ObjectName;
       
    27 
       
    28 /**
       
    29  * Interface WombatMBean
       
    30  * Wombat Description
       
    31  * @author dfuchs
       
    32  */
       
    33 public interface WombatMBean
       
    34 {
       
    35     /**
       
    36      * This Wombat's mood on a [-100,+100] scale.
       
    37      * -100 means that this wombat is very angry.
       
    38      * @return The wombat's mood.
       
    39      */
       
    40     public int getMood();
       
    41 
       
    42     /**
       
    43      * Get A simple caption to describe a wombat
       
    44      */
       
    45     public String getCaption();
       
    46 
       
    47     /**
       
    48      * Set A simple caption to describe a wombat
       
    49      */
       
    50     public void setCaption(String value);
       
    51 
       
    52     /**
       
    53      * List matching MBeans in the same server.
       
    54      * @param pattern an ObjectName pattern or null.
       
    55      * @return A list of matching MBeans.
       
    56      */
       
    57     public Set<ObjectName> listMatching(ObjectName pattern);
       
    58 
       
    59 }