01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package javax.management.modelmbean;
10:
11: import javax.management.Attribute;
12: import javax.management.AttributeChangeNotification;
13: import javax.management.ListenerNotFoundException;
14: import javax.management.MBeanException;
15: import javax.management.Notification;
16: import javax.management.NotificationBroadcaster;
17: import javax.management.NotificationListener;
18: import javax.management.RuntimeOperationsException;
19:
20: /**
21: * @version $Revision: 1.5 $
22: */
23: public interface ModelMBeanNotificationBroadcaster extends
24: NotificationBroadcaster {
25: public void sendNotification(Notification notification)
26: throws MBeanException, RuntimeOperationsException;
27:
28: public void sendNotification(String message) throws MBeanException,
29: RuntimeOperationsException;
30:
31: public void addAttributeChangeNotificationListener(
32: NotificationListener listener, String attributeName,
33: Object handback) throws MBeanException,
34: RuntimeOperationsException, IllegalArgumentException;
35:
36: public void removeAttributeChangeNotificationListener(
37: NotificationListener listener, String attributeName)
38: throws MBeanException, RuntimeOperationsException,
39: ListenerNotFoundException;
40:
41: // public void removeAttributeChangeNotificationListener(NotificationListener listener, String attributeName, Object handback) throws MBeanException, RuntimeOperationsException, ListenerNotFoundException;
42: public void sendAttributeChangeNotification(
43: AttributeChangeNotification notification)
44: throws MBeanException, RuntimeOperationsException;
45:
46: public void sendAttributeChangeNotification(Attribute oldValue,
47: Attribute newValue) throws MBeanException,
48: RuntimeOperationsException;
49: }
|