KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > mx > remoting > tracker > MBeanTrackerAction


1 /***************************************
2  * *
3  * JBoss: The OpenSource J2EE WebOS *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  ***************************************/

9 package org.jboss.mx.remoting.tracker;
10
11 import java.io.Serializable JavaDoc;
12 import javax.management.Notification JavaDoc;
13 import org.jboss.mx.remoting.MBeanLocator;
14
15 /**
16  * MBeanTrackerAction
17  *
18  * @author <a HREF="mailto:jhaynie@vocalocity.net">Jeff Haynie</a>
19  * @version $Revision: 30251 $
20  */

21 public interface MBeanTrackerAction extends Serializable JavaDoc
22 {
23    /**
24     * called when an MBean is registered with the MBeanServer
25     *
26     * @param locator
27     */

28    public void mbeanRegistered(MBeanLocator locator);
29
30    /**
31     * called when an MBean is unregistered with the MBeanServer
32     *
33     * @param locator
34     */

35    public void mbeanUnregistered(MBeanLocator locator);
36
37    /**
38     * called when a mbean notification is fired
39     *
40     * @param locator
41     * @param notification
42     * @param handback
43     */

44    public void mbeanNotification(MBeanLocator locator, Notification JavaDoc notification, Object JavaDoc handback);
45
46    /**
47     * called when the mbean state changes. Note: this method will only be called on MBeans that have a
48     * <tt>State</tt> attribute and where state change attribute notifications are fired
49     *
50     * @param locator
51     * @param oldState
52     * @param newState
53     */

54    public void mbeanStateChanged(MBeanLocator locator, int oldState, int newState);
55 }
56
Popular Tags