Package javax.management.modelmbean

Examples of javax.management.modelmbean.ModelMBeanNotificationInfo


                                        operd);
        Descriptor notifd = new DescriptorSupport(new String[] {
            "name=name", "descriptorType=notification",
        });
        mmbni1 =
            new ModelMBeanNotificationInfo(null, "name", "descr");
        mmbni2 =
            new ModelMBeanNotificationInfo(null, "name", "descr", notifd);
        mmbni3 =
            new ModelMBeanNotificationInfo(new String[] {"type"}, "name", "descr");
        mmbni4 =
            new ModelMBeanNotificationInfo(new String[] {"type"}, "name",
                                           "descr", notifd);
        Descriptor mbeand = new DescriptorSupport(new String[] {
            "name=name", "descriptorType=mbean",
        });
        mmbi1 =
View Full Code Here


/*     */       {
/* 352 */         org.dom4j.Element type = (org.dom4j.Element)iterator.next();
/* 353 */         types.add(type.getTextTrim());
/*     */       }
/*     */
/* 356 */       ModelMBeanNotificationInfo info = new ModelMBeanNotificationInfo((String[])(String[])types.toArray(new String[types.size()]), name, description, descr);
/*     */
/* 359 */       infos.add(info);
/*     */     }
/*     */
/* 362 */     return (ModelMBeanNotificationInfo[])(ModelMBeanNotificationInfo[])infos.toArray(new ModelMBeanNotificationInfo[infos.size()]);
View Full Code Here

/* 227 */     MBeanNotificationInfo[] notifications = info.getNotifications();
/* 228 */     ModelMBeanNotificationInfo[] mmbNotifications = new ModelMBeanNotificationInfo[notifications.length];
/*     */
/* 230 */     for (int i = 0; i < notifications.length; i++)
/*     */     {
/* 232 */       mmbNotifications[i] = new ModelMBeanNotificationInfo(notifications[i].getNotifTypes(), notifications[i].getName(), notifications[i].getDescription());
/*     */     }
/*     */
/* 239 */     return new ModelMBeanInfoSupport(info.getClassName(), info.getDescription(), mmbAttributes, mmbConstructors, mmbOperations, mmbNotifications);
/*     */   }
View Full Code Here

/*    */       }
/*    */     }
/*    */
/* 76 */     String[] ntypes = new String[this.types.size()];
/* 77 */     this.types.toArray(ntypes);
/* 78 */     ModelMBeanNotificationInfo info = new ModelMBeanNotificationInfo(ntypes, this.name, this.description, this.descriptor);
/*    */
/* 80 */     return info;
/*    */   }
View Full Code Here

    private void extractMbeanNotifications(Object managedBean, Set<ModelMBeanNotificationInfo> mBeanNotifications) {
        ManagedNotifications notifications = managedBean.getClass().getAnnotation(ManagedNotifications.class);
        if (notifications != null) {
            for (ManagedNotification notification : notifications.value()) {
                ModelMBeanNotificationInfo info = new ModelMBeanNotificationInfo(notification.notificationTypes(), notification.name(), notification.description());
                mBeanNotifications.add(info);
                LOG.trace("Assembled notification: {}", info);
            }
        }
    }
View Full Code Here

    private void extractMbeanNotifications(Object managedBean, Set<ModelMBeanNotificationInfo> mBeanNotifications) {
        ManagedNotifications notifications = managedBean.getClass().getAnnotation(ManagedNotifications.class);
        if (notifications != null) {
            for (ManagedNotification notification : notifications.value()) {
                ModelMBeanNotificationInfo info = new ModelMBeanNotificationInfo(notification.notificationTypes(), notification.name(), notification.description());
                mBeanNotifications.add(info);
                LOG.trace("Assembled notification: {}", info);
            }
        }
    }
View Full Code Here

TOP

Related Classes of javax.management.modelmbean.ModelMBeanNotificationInfo

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.