Package com.sun.enterprise.admin.jmx.remote.notification

Examples of com.sun.enterprise.admin.jmx.remote.notification.NotificationWrapper


        } catch (ClassNotFoundException notfound) {
            // Ignore; Unknown Object ???
            return;
        }

        NotificationWrapper wrapr = (NotificationWrapper) obj;
        if (wrapr.getType() == NotificationWrapper.WAIT) {
            return;
        }

        mgr.raiseEvent(wrapr);
    }
View Full Code Here


                }
            }
            if (isExiting())
                break;
            while (!que.isEmpty() && !isExiting()) {
                NotificationWrapper wrapr = (NotificationWrapper) que.remove();
                ObjectName source = wrapr.getSource();
                Notification notif = wrapr.getNotification();

                ArrayList listeners = (ArrayList) listenerMap.get(source);
                Iterator itr = listeners.iterator();
                while (itr.hasNext() && !isExiting()) {
                    ListenerInfo info = (ListenerInfo) itr.next();
View Full Code Here

        return id;
    }


    public NotificationWrapper getNotificationWrapper() {
        return ( new NotificationWrapper(objname, notification) );
    }
View Full Code Here

     * An empty notification is sent every 10 seconds.
     */
    public void fireWaitNotif() {
        if (!hasIOExceptionOccurred() && (que.size() < bufsiz) && !dispatching && isIdle()) {
            synchronized (que) {
                que.add(new NotificationWrapper(NotificationWrapper.WAIT, null, null));
                que.notify();
            }
        }
    }
View Full Code Here

            }
            if (isExiting() || hasIOExceptionOccurred())
                break;
            dispatching = true;
            while (!que.isEmpty() && !isExiting() && !hasIOExceptionOccurred()) {
                NotificationWrapper wrapr = (NotificationWrapper) que.remove();
                try {
                    sendNotificationMsg(wrapr);
                } catch (IOException ioe) {
                    if (isExiting())
                        break;
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.jmx.remote.notification.NotificationWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.