Searched refs:notification (Results 1 - 25 of 61) sorted by relevance

123

/openjdk7/jdk/src/share/classes/javax/management/
H A DNotificationFilter.java30 * To be implemented by a any class acting as a notification filter.
31 * It allows a registered notification listener to filter the notifications of interest.
38 * Invoked before sending the specified notification to the listener.
40 * @param notification The notification to be sent.
41 * @return <CODE>true</CODE> if the notification has to be sent to the listener, <CODE>false</CODE> otherwise.
43 public boolean isNotificationEnabled(Notification notification); argument
H A DNotificationListener.java37 * Invoked when a JMX notification occurs.
39 * blocking its notification broadcaster.
41 * @param notification The notification.
47 public void handleNotification(Notification notification, Object handback); argument
H A DAttributeChangeNotificationFilter.java34 * interface for the {@link javax.management.AttributeChangeNotification attribute change notification}.
55 * Invoked before sending the specified notification to the listener.
56 * <BR>This filter compares the attribute name of the specified attribute change notification
59 * the notification must be sent to the listener and this method returns <CODE>true</CODE>.
61 * @param notification The attribute change notification to be sent.
62 * @return <CODE>true</CODE> if the notification has to be sent to the listener, <CODE>false</CODE> otherwise.
64 public synchronized boolean isNotificationEnabled(Notification notification) { argument
66 String type = notification.getType();
70 (!(notification instanceo
[all...]
H A DNotificationFilterSupport.java34 * The filtering is performed on the notification type attribute.
36 * Manages a list of enabled notification types.
37 * A method allows users to enable/disable as many notification types as required.
39 * Then, before sending a notification to a listener registered with a filter,
40 * the notification broadcaster compares this notification type with all notification types
41 * enabled by the filter. The notification will be sent to the listener
42 * only if its filter enables this notification type.
64 * @serial {@link Vector} that contains the enabled notification type
79 isNotificationEnabled(Notification notification) argument
[all...]
H A DMBeanServerDelegate.java196 * Enables the MBean server to send a notification.
197 * If the passed <var>notification</var> has a sequence number lesser
200 * @param notification The notification to send.
203 public void sendNotification(Notification notification) { argument
204 if (notification.getSequenceNumber() < 1) {
206 notification.setSequenceNumber(this.sequenceNumber++);
209 broadcaster.sendNotification(notification);
H A DNotificationBroadcasterSupport.java41 * <p>By default, the notification dispatch model is synchronous.
57 * not guaranteed that any remote listeners have yet received the notification.</p>
64 * thread sending the notification. This constructor is equivalent to
77 * isNotificationEnabled} returns true for the notification being sent. The call to
86 * send each notification. If it is null, the thread calling <code>sendNotification</code>
97 * invoked by the thread sending the notification. This
108 * @param info an array indicating, for each notification this
109 * MBean may send, the name of the Java class of the notification
110 * and the notification type. Can be null, which is equivalent to
127 * returns true for the notification bein
226 sendNotification(Notification notification) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/nio/sctp/
H A DAbstractNotificationHandler.java35 * methods, one for each of the required supported notification types, {@link
38 * appropriate method will be invoked when the notification is received.
51 * Invoked when an implementation specific notification is received from the
54 * @param notification
55 * The notification
64 public HandlerResult handleNotification(Notification notification, argument
73 * @param notification
74 * The notification
82 public HandlerResult handleNotification(AssociationChangeNotification notification, argument
91 * @param notification
100 handleNotification(PeerAddressChangeNotification notification, T attachment) argument
118 handleNotification(SendFailedNotification notification, T attachment) argument
136 handleNotification(ShutdownNotification notification, T attachment) argument
[all...]
H A DNotificationHandler.java30 * <P> The SCTP channels defined in this package allow a notification handler to
32 * notification is received the {@linkplain #handleNotification
34 * notification.
37 * operation to provide context when consuming the notification. The
44 * provide notification specific methods. However, an API should generally use
54 * Invoked when a notification is received from the SCTP stack.
56 * @param notification
57 * The notification
64 HandlerResult handleNotification(Notification notification, T attachment); argument
/openjdk7/jdk/src/share/classes/javax/management/remote/
H A DTargetedNotification.java34 * <p>This class is used to associate an emitted notification
48 // * notification is targeted. The client listener ID is one
51 // * @param notification Notification emitted from the MBean server.
53 // * notification is targeted.
55 // public TargetedNotification(Notification notification,
57 // this.notif = notification;
65 * notification is targeted. The client listener ID is one
68 * @param notification Notification emitted from the MBean server.
70 * notification is targeted.
72 * or <var>notification</va
74 TargetedNotification(Notification notification, Integer listenerID) argument
[all...]
/openjdk7/jdk/src/share/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/
H A DScanDirAgent.java103 // Initialize the notification queue
108 public void handleNotification(Notification notification,
111 // Just put the received notification in the queue.
114 LOG.finer("Queuing received notification "+notification);
115 queue.put(notification);
159 * Every time its state changes, the ScanManagerMXBean emits a notification.
160 * We don't rely on the notification content (if we were using a remote
165 * state every time that a notification is received.
185 // notification
[all...]
/openjdk7/jdk/src/share/classes/com/sun/jmx/remote/security/
H A DNotificationAccessController.java35 * methods when the notification listener parameter is of type
41 * {@code com.sun.jmx.remote.notification.access.controller}
91 * forwards the notification to the interested remote
95 * receiving the notification.
96 * @param name the name of the MBean forwarding the notification.
97 * @param notification the notification to be forwarded to the interested
103 * rights to receive the notification.
107 Notification notification,
105 fetchNotification(String connectionId, ObjectName name, Notification notification, Subject subject) argument
/openjdk7/jdk/test/javax/management/notification/
H A DFilterExceptionTest.java46 public boolean isNotificationEnabled(Notification notification) {
/openjdk7/jdk/src/share/classes/sun/management/
H A DNotificationEmitterSupport.java41 * Abstract helper class for notification emitter support.
72 every time a notification is sent. */
138 void sendNotification(Notification notification) { argument
140 if (notification == null) {
154 || li.filter.isNotificationEnabled(notification)) {
156 li.listener.handleNotification(notification, li.handback);
190 * synchronize when traversing the list to send a notification to
/openjdk7/jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/
H A DDirectoryScannerTest.java102 public void handleNotification(Notification notification,
105 queue.put(notification);
120 final Notification notification =
123 notification.getType());
125 notification.getClass());
127 notification.getSource());
129 (AttributeChangeNotification)notification;
205 public void handleNotification(Notification notification,
208 queue.put(notification);
H A DScanManagerTest.java180 public void handleNotification(Notification notification,
183 queue.put(notification);
197 final Notification notification =
200 notification.getType());
202 notification.getClass());
204 notification.getSource());
206 (AttributeChangeNotification)notification;
/openjdk7/jdk/src/share/classes/javax/management/modelmbean/
H A DModelMBeanNotificationBroadcaster.java74 * jmx.modelmbean.generic notification.
76 * @param ntfyObj The notification which is to be passed to
113 * @param notification The notification which is to be passed
120 public void sendAttributeChangeNotification(AttributeChangeNotification notification) argument
159 * @param handback The context to be sent to the listener with the notification when a notification is emitted.
/openjdk7/jdk/src/share/classes/sun/tools/jconsole/
H A DMBeansTab.java207 /* notification listener: handleNotification */
209 final Notification notification, Object handback) {
212 if (notification instanceof MBeanServerNotification) {
214 ((MBeanServerNotification) notification).getMBeanName();
215 if (notification.getType().equals(
218 } else if (notification.getType().equals(
208 handleNotification( final Notification notification, Object handback) argument
/openjdk7/jdk/test/javax/management/monitor/
H A DReflectionExceptionTest.java27 * @summary Test that the jmx.monitor.error.runtime monitor notification
78 public void handleNotification(Notification notification, Object handback) { argument
79 echo(">>> Received notification: " + notification);
80 if (notification instanceof MonitorNotification) {
81 String type = notification.getType();
83 MonitorNotification mn = (MonitorNotification) notification;
142 // Check if notification was received
145 echo("\tOK: CounterMonitor got RUNTIME_ERROR notification!");
148 "RUNTIME_ERROR notification!");
[all...]
H A DRuntimeExceptionTest.java27 * @summary Test that the jmx.monitor.error.runtime monitor notification
77 public void handleNotification(Notification notification, Object handback) { argument
78 echo(">>> Received notification: " + notification);
79 if (notification instanceof MonitorNotification) {
80 String type = notification.getType();
82 MonitorNotification mn = (MonitorNotification) notification;
141 // Check if notification was received
144 echo("\tOK: CounterMonitor got RUNTIME_ERROR notification!");
147 "RUNTIME_ERROR notification!");
[all...]
H A DCounterMonitorTest.java28 * emits a notification every time the threshold is exceeded.
61 // time to wait for notification (in seconds)
85 public void handleNotification(Notification notification, argument
87 MonitorNotification n = (MonitorNotification) notification;
100 echo("\t\tSkipping notification of type: " + type);
190 // Check if notification was received
195 echo("\tError: notification missed or not emitted");
/openjdk7/jdk/test/com/sun/nio/sctp/SctpChannel/
H A DCommUp.java312 Notification notification, Object attachment) {
313 fail("Unknown notification type");
319 AssociationChangeNotification notification, Object attachment) {
320 AssocChangeEvent event = notification.event();
322 debug(" Association: " + notification.association());
335 ShutdownNotification notification, Object attachment) {
337 debug(" Association: " + notification.association());
311 handleNotification( Notification notification, Object attachment) argument
318 handleNotification( AssociationChangeNotification notification, Object attachment) argument
334 handleNotification( ShutdownNotification notification, Object attachment) argument
/openjdk7/jdk/test/javax/management/MBeanServer/
H A DMBeanServerNotificationTest.java106 public void handleNotification(Notification notification,
109 queue.put(notification);
/openjdk7/jdk/test/javax/management/relation/
H A DRelationNotificationSeqNoTest.java66 public void handleNotification(Notification notification,
68 q.add(notification);
/openjdk7/jdk/test/javax/management/modelmbean/
H A DLoggingExceptionTest.java63 public void handleNotification(Notification notification,
/openjdk7/jdk/src/solaris/classes/sun/nio/ch/
H A DSctpResultContainer.java28 * Wraps the actual message or notification so that it can be
60 SctpNotification notification() { method in class:SctpResultContainer

Completed in 189 milliseconds

123