public void sendNotification(Notification notification) { notificationDelegate.sendNotification(notification); }
public void run() { broadcaster.sendNotification(new NetworkNotification(objectName, NetworkNotification.SERVER_UPDATED, identity, invokers)); } }.start();
public void run() { broadcaster.sendNotification(new NetworkNotification(objectName, NetworkNotification.SERVER_ADDED, identity, invokers)); } }.start();
public void run() { broadcaster.sendNotification(new NetworkNotification(objectName, NetworkNotification.SERVER_REMOVED, identity, il)); } }.start();
/** * Sends an attribute change notification. * * @param notification attribute change notification to send */ public void sendAttributeChangeNotification(AttributeChangeNotification notification) throws MBeanException { if( notification == null ) { throw new RuntimeOperationsException( new IllegalArgumentException("notification cannot be null") ); } notifier.sendNotification(notification); }
/** * Sends a notification. * * @param ntfyObj notification to send */ public void sendNotification(Notification ntfyObj) throws MBeanException, RuntimeOperationsException { if( ntfyObj == null ) { throw new RuntimeOperationsException( new IllegalArgumentException("ntfyText cannot be null") ); } notifier.sendNotification(ntfyObj); }
/** * Sends a notification. * * @param ntfyObj notification to send */ public void sendNotification(Notification ntfyObj) throws MBeanException, RuntimeOperationsException { if( ntfyObj == null ) { throw new RuntimeOperationsException( new IllegalArgumentException("ntfyText cannot be null") ); } notifier.sendNotification(ntfyObj); }
/** * Sends an attribute change notification. * * @param notification attribute change notification to send */ public void sendAttributeChangeNotification(AttributeChangeNotification notification) throws MBeanException { if( notification == null ) { throw new RuntimeOperationsException( new IllegalArgumentException("notification cannot be null") ); } notifier.sendNotification(notification); }
/** * An overload of the super sendNotification that only takes the event * type and msg. The source will be set to the managed object name, the * sequence will be the getNextNotificationSequenceNumber() value, and the * timestamp System.currentTimeMillis(). * * @param type the notification event type * @param info the notification event msg info */ public void sendNotification(String type, String info) { Notification msg = new Notification(type, this.getObjectName(), this.getNextNotificationSequenceNumber(), System.currentTimeMillis(), info); super.sendNotification(msg); }
notifier.sendNotification(notif);
public void run() { broadcaster.sendNotification(new NetworkNotification(objectName, NetworkNotification.DOMAIN_CHANGED, Identity.get(mBeanServer), InvokerRegistry.getRegisteredServerLocators())); } }.start();
notifier.sendNotification(notif);
/** * Notify of an event * * @param event the event * @param userData any user data, e.g. the exception on a failure */ protected void sendNotification(String event, Object userData) { if (emitter == null) return; try { Notification notif = new Notification(event, spec, emitter.nextNotificationSequenceNumber()); notif.setUserData(userData); emitter.sendNotification(notif); } catch (Throwable t) { log.warn("Error sending notification: " + event, t); } }
broadcaster.sendNotification(msg); else msg.setUserData(cl); broadcaster.sendNotification(msg);
broadcaster.sendNotification(msg); else msg.setUserData(cl); broadcaster.sendNotification(msg);
/** * This method provides an mbean-accessible way to add a * UnifiedClassloader, and sends a notification when it is added. * * @param ucl an <code>UnifiedClassLoader</code> value * @return a <code>LoaderRepository</code> value * * @jmx.managed-operation */ public LoaderRepository registerClassLoader(RepositoryClassLoader ucl) { addClassLoader(ucl); if (NOTIFICATION_MODE == LEGACY_MODE || NOTIFICATION_MODE == WEAK_REFERENCE_MODE) { Notification msg = new Notification(CLASSLOADER_ADDED, this, getNextSequenceNumber()); if (NOTIFICATION_MODE == WEAK_REFERENCE_MODE) msg.setUserData(new WeakReference<ClassLoader>(ucl)); else msg.setUserData(ucl); broadcaster.sendNotification(msg); } return this; }
/** * This method provides an mbean-accessible way to add a * UnifiedClassloader, and sends a notification when it is added. * * @param ucl an <code>UnifiedClassLoader</code> value * @return a <code>LoaderRepository</code> value * * @jmx.managed-operation */ public LoaderRepository registerClassLoader(RepositoryClassLoader ucl) { addClassLoader(ucl); if (NOTIFICATION_MODE == LEGACY_MODE || NOTIFICATION_MODE == WEAK_REFERENCE_MODE) { Notification msg = new Notification(CLASSLOADER_ADDED, this, getNextSequenceNumber()); if (NOTIFICATION_MODE == WEAK_REFERENCE_MODE) msg.setUserData(new WeakReference(ucl)); else msg.setUserData(ucl); broadcaster.sendNotification(msg); } return this; }