Package javax.management

Examples of javax.management.MBeanNotificationInfo


        { constructor };
    }

    protected MBeanNotificationInfo[] createMBeanNotificationInfo()
    {
        MBeanNotificationInfo notification = new MBeanNotificationInfo(new String[0],
                "notification", "");
        return new MBeanNotificationInfo[]
        { notification };
    }
View Full Code Here


    public MBeanNotificationInfo[] getNotificationInfo()
    {
        String[] notificationTypes = new String[] { MonitorNotification.THRESHOLD_VALUE_EXCEEDED };
        String name = MonitorNotification.class.getName();
        String description = "Either Message count or Queue depth or Message size has reached threshold high value";
        MBeanNotificationInfo info1 = new MBeanNotificationInfo(notificationTypes, name, description);

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

        }

        public MBeanNotificationInfo[] getNotificationInfo()
        {
            return new MBeanNotificationInfo[] {
                    new MBeanNotificationInfo(types_,
                            Notification.class.getName(),
                            "User Notifications"),
                    new MBeanNotificationInfo(new String[] { AttributeChangeNotification.ATTRIBUTE_CHANGE },
                            AttributeChangeNotification.class.getName(),
                            "User attribute change notification") };
        }
View Full Code Here

    }

    public MBeanNotificationInfo[] getNotificationInfo()
    {
        return new MBeanNotificationInfo[] {
                new MBeanNotificationInfo(types_,
                        Notification.class.getName(),
                        "User Notifications"),
                new MBeanNotificationInfo(new String[] { AttributeChangeNotification.ATTRIBUTE_CHANGE },
                        AttributeChangeNotification.class.getName(),
                        "User attribute change notification") };
    }
View Full Code Here

      broadcaster.addNotificationListener(notificationListener, notificationFilter, o);
   }

   public MBeanNotificationInfo[] getNotificationInfo()
   {
      MBeanNotificationInfo info[] = new MBeanNotificationInfo[3];
      info[0] = new MBeanNotificationInfo(new String[]{NetworkNotification.SERVER_ADDED}, NetworkNotification.class.getName(), "Fired when Server is added");
      info[1] = new MBeanNotificationInfo(new String[]{NetworkNotification.SERVER_UPDATED}, NetworkNotification.class.getName(), "Fired when Server is updated");
      info[2] = new MBeanNotificationInfo(new String[]{NetworkNotification.SERVER_REMOVED}, NetworkNotification.class.getName(), "Fired when Server is removed");
      return info;
   }
View Full Code Here

      String[] names = new String[values.length];
      for (int i = 0; i < values.length; i++)
      {
         names[i] = values[i].toString();
      }
      return new MBeanNotificationInfo[] { new MBeanNotificationInfo(names,
                                                                     JMSServerControl.class.getName(),
                                                                     "Notifications emitted by a JMS Server") };
   }
View Full Code Here

      String[] names = new String[values.length];
      for (int i = 0; i < values.length; i++)
      {
         names[i] = values[i].toString();
      }
      return new MBeanNotificationInfo[] { new MBeanNotificationInfo(names,
                                                                     JMSServerControl.class.getName(),
                                                                     "Notifications emitted by a JMS Server") };
   }
View Full Code Here

     */
    public MBeanNotificationInfo[] getNotificationInfo() {
      // FIXME: i18n
      if(notificationInfo == null) {
        notificationInfo = new MBeanNotificationInfo[]{
            new MBeanNotificationInfo(new String[] {
            "j2ee.object.created"},
          Notification.class.getName(),
          "web application is created"
            ),
          new MBeanNotificationInfo(new String[] {
          "j2ee.state.starting"},
          Notification.class.getName(),
          "change web application is starting"
          ),
          new MBeanNotificationInfo(new String[] {
          "j2ee.state.running"},
          Notification.class.getName(),
          "web application is running"
          ),
          new MBeanNotificationInfo(new String[] {
          "j2ee.state.stopped"},
          Notification.class.getName(),
          "web application start to stopped"
          ),
          new MBeanNotificationInfo(new String[] {
          "j2ee.object.stopped"},
          Notification.class.getName(),
          "web application is stopped"
          ),
          new MBeanNotificationInfo(new String[] {
          "j2ee.object.deleted"},
          Notification.class.getName(),
          "web application is deleted"
          )
        };
View Full Code Here

    public MBeanNotificationInfo[] getNotificationInfo()
    {
        String[] notificationTypes = new String[] { MonitorNotification.THRESHOLD_VALUE_EXCEEDED };
        String name = MonitorNotification.class.getName();
        String description = "Channel count has reached threshold value";
        MBeanNotificationInfo info1 = new MBeanNotificationInfo(notificationTypes, name, description);

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

                , "ExchangeFailureHandledEvent", "ExchangeRedeliveryEvents", "ExchangeSentEvent", "RouteStartedEvent"
                , "RouteStoppedEvent", "ServiceStartupFailureEvent", "ServiceStopFailureEvent"};

        List<MBeanNotificationInfo> infos = new ArrayList<MBeanNotificationInfo>();
        for (String name : names) {
            MBeanNotificationInfo info = new MBeanNotificationInfo(new String[]{"org.apache.camel.management.event"},
                    "org.apache.camel.management.event." + name, "The event " + name + " occurred");
            infos.add(info);
        }

        return infos.toArray(new MBeanNotificationInfo[infos.size()]);
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.