Package javax.management

Examples of javax.management.MBeanNotificationInfo


      MonitorNotification.OBSERVED_ATTRIBUTE_ERROR,
      MonitorNotification.OBSERVED_ATTRIBUTE_TYPE_ERROR,
      MonitorNotification.STRING_TO_COMPARE_VALUE_MATCHED,
      MonitorNotification.STRING_TO_COMPARE_VALUE_DIFFERED
    };
    result[0] = new MBeanNotificationInfo(types,
      "javax.management.monitor.MonitorNotification",
      "Notifications sent by the String Monitor Service MBean");
    return result;
  }
View Full Code Here


     *
     * @return notification metadata
     */
    public MBeanNotificationInfo[] getNotificationInfo()
    {
        MBeanNotificationInfo ni[] = new MBeanNotificationInfo[1];
        ni[0] = new MBeanNotificationInfo(new String[]{"cascadingagent.transports.changed", "cascadingagent.partition.changed"}, AttributeChangeNotification.class.getName(), "attribute change notification");
        return ni;
    }
View Full Code Here

   public MBeanNotificationInfo[] getNotificationInfo()
   {
      if (info == null)
      {
         info = new MBeanNotificationInfo[]{
            new MBeanNotificationInfo(new String[]{"CLASSLOADER_ADDED"},
                                      "javax.management.Notification",
                                      "Notification that a classloader has been added to the extensible classloader"),
            new MBeanNotificationInfo(new String[]{"CLASS_REMOVED"},
                                      "javax.management.Notification",
                                      "Notification that a class has been removed from the extensible classloader")

         };
      }
View Full Code Here

     *
     * @return notification metadata
     */
    public MBeanNotificationInfo[] getNotificationInfo()
    {
        MBeanNotificationInfo ni[] = new MBeanNotificationInfo[2];
        ni[0] = new MBeanNotificationInfo(new String[]{"detector.interval.changed", "detector.instanceid.changed", "detector.partition.changed"}, AttributeChangeNotification.class.getName(), "attribute changed notification");
        ni[1] = new MBeanNotificationInfo(new String[]{DetectionNotification.STARTUP, DetectionNotification.FAILURE}, DetectionNotification.class.getName(), "detection notification");
        return ni;
    }
View Full Code Here

   public MBeanNotificationInfo[] getNotificationInfo()
   {
      if (info == null)
      {
         info = new MBeanNotificationInfo[]{
            new MBeanNotificationInfo(new String[]{"CLASSLOADER_ADDED"},
                                      "javax.management.Notification",
                                      "Notification that a classloader has been added to the extensible classloader"),
            new MBeanNotificationInfo(new String[]{"CLASS_REMOVED"},
                                      "javax.management.Notification",
                                      "Notification that a class has been removed from the extensible classloader")

         };
      }
View Full Code Here

            for (int i = 0; i < consts.length; i++)
                System.out.println("  ConstructorInfo=" + consts[i]);
            Descriptor descs[] = info.getDescriptors(null);
            for (int i = 0; i < descs.length; i++)
                System.out.println("  Descriptor=" + descs[i]);
            MBeanNotificationInfo notifs[] = info.getNotifications();
            for (int i = 0; i < notifs.length; i++)
                System.out.println("  Notification=" + notifs[i]);
            MBeanOperationInfo opers[] = info.getOperations();
            for (int i = 0; i < opers.length; i++)
                System.out.println("  Operation=" + opers[i]);
View Full Code Here

        Description classDescription = annotatedMBean.getAnnotation(Description.class);
        description = getDescription(classDescription, "a MBean built by OpenEJB");

        NotificationInfo notification = annotatedMBean.getAnnotation(NotificationInfo.class);
        if (notification != null) {
            MBeanNotificationInfo notificationInfo = getNotificationInfo(notification);
            notificationInfos.add(notificationInfo);
        }

        NotificationInfos notifications = annotatedMBean.getAnnotation(NotificationInfos.class);
        if (notifications != null && notifications.value() != null) {
            for (NotificationInfo n : notifications.value()) {
                MBeanNotificationInfo notificationInfo = getNotificationInfo(n);
                notificationInfos.add(notificationInfo);
            }
        }

View Full Code Here

            notificationInfos.toArray(new MBeanNotificationInfo[notificationInfos.size()]));
    }

    private MBeanNotificationInfo getNotificationInfo(NotificationInfo n) {
        String description = getDescription(n.description(), "-");
        MBeanNotificationInfo ni = new MBeanNotificationInfo(n.types(),
            n.notificationClass().getName(), description,
            new ImmutableDescriptor(n.descriptorFields()));
        return ni;
    }
View Full Code Here

  @Override
  public MBeanNotificationInfo[] getNotificationInfo()
  {
    // XXX: temporary hack
    MBeanNotificationInfo status = new MBeanNotificationInfo(new String[] { "jmx.attribute.change" }, "status", "status attribute changes");

    return new MBeanNotificationInfo[] { status };
  }
View Full Code Here

        if (!(_managedResource instanceof NotificationBroadcaster))
          throw new DynamicMBeanFacadeException(
            "Managed resource does not implement NotificationBroadcaster!");

        MBeanNotificationInfo notif = new MBeanNotificationInfo(
          new String[] {type},
          "javax.management.Notification",
          description);

        MBeanNotificationInfo[] notifs = _mbi.getNotifications();
View Full Code Here

TOP

Related Classes of javax.management.MBeanNotificationInfo

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.