Package javax.management

Examples of javax.management.MBeanNotificationInfo


    @Override
    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.stopping"},
                    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


    @Override
    public MBeanNotificationInfo[] getNotificationInfo() {

        if(notificationInfo == null) {
            notificationInfo = new MBeanNotificationInfo[]{
                    new MBeanNotificationInfo(new String[] {
                    "j2ee.object.created"},
                    Notification.class.getName(),
                    "servlet is created"
                    ),
                    new MBeanNotificationInfo(new String[] {
                    "j2ee.state.starting"},
                    Notification.class.getName(),
                    "servlet is starting"
                    ),
                    new MBeanNotificationInfo(new String[] {
                    "j2ee.state.running"},
                    Notification.class.getName(),
                    "servlet is running"
                    ),
                    new MBeanNotificationInfo(new String[] {
                    "j2ee.state.stopped"},
                    Notification.class.getName(),
                    "servlet start to stopped"
                    ),
                    new MBeanNotificationInfo(new String[] {
                    "j2ee.object.stopped"},
                    Notification.class.getName(),
                    "servlet is stopped"
                    ),
                    new MBeanNotificationInfo(new String[] {
                    "j2ee.object.deleted"},
                    Notification.class.getName(),
                    "servlet is deleted"
                    )
            };
View Full Code Here

     * notifications sent by this MBean.
     */
    public MBeanNotificationInfo[] getNotificationInfo() {

        // Acquire the set of application notifications
        MBeanNotificationInfo current[] = getMBeanInfo().getNotifications();
        if (current == null)
            current = new MBeanNotificationInfo[0];
        MBeanNotificationInfo response[] =
            new MBeanNotificationInfo[current.length + 2];
//       Descriptor descriptor = null;

        // Fill in entry for general notifications
//        descriptor = new DescriptorSupport
//            (new String[] { "name=GENERIC",
//                            "descriptorType=notification",
//                            "log=T",
//                            "severity=5",
//                            "displayName=jmx.modelmbean.generic" });
        response[0] = new MBeanNotificationInfo
            (new String[] { "jmx.modelmbean.generic" },
             "GENERIC",
             "Text message notification from the managed resource");
             //descriptor);

        // Fill in entry for attribute change notifications
//        descriptor = new DescriptorSupport
//            (new String[] { "name=ATTRIBUTE_CHANGE",
//                            "descriptorType=notification",
//                            "log=T",
//                            "severity=5",
//                            "displayName=jmx.attribute.change" });
        response[1] = new MBeanNotificationInfo
            (new String[] { "jmx.attribute.change" },
             "ATTRIBUTE_CHANGE",
             "Observed MBean attribute value has changed");
             //descriptor);

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() {
     
      if(notificationInfo == null) {
        notificationInfo = new MBeanNotificationInfo[]{
            new MBeanNotificationInfo(new String[] {
            "j2ee.object.created"},
          Notification.class.getName(),
          "servlet is created"
            ),
          new MBeanNotificationInfo(new String[] {
          "j2ee.state.starting"},
          Notification.class.getName(),
          "servlet is starting"
          ),
          new MBeanNotificationInfo(new String[] {
          "j2ee.state.running"},
          Notification.class.getName(),
          "servlet is running"
          ),
          new MBeanNotificationInfo(new String[] {
          "j2ee.state.stopped"},
          Notification.class.getName(),
          "servlet start to stopped"
          ),
          new MBeanNotificationInfo(new String[] {
          "j2ee.object.stopped"},
          Notification.class.getName(),
          "servlet is stopped"
          ),
          new MBeanNotificationInfo(new String[] {
          "j2ee.object.deleted"},
          Notification.class.getName(),
          "servlet is deleted"
          )
        };
View Full Code Here

    @Override
    public MBeanNotificationInfo[] getNotificationInfo() {

        if(notificationInfo == null) {
            notificationInfo = new MBeanNotificationInfo[]{
                    new MBeanNotificationInfo(new String[] {
                    "j2ee.object.created"},
                    Notification.class.getName(),
                    "servlet is created"
                    ),
                    new MBeanNotificationInfo(new String[] {
                    "j2ee.state.starting"},
                    Notification.class.getName(),
                    "servlet is starting"
                    ),
                    new MBeanNotificationInfo(new String[] {
                    "j2ee.state.running"},
                    Notification.class.getName(),
                    "servlet is running"
                    ),
                    new MBeanNotificationInfo(new String[] {
                    "j2ee.state.stopped"},
                    Notification.class.getName(),
                    "servlet start to stopped"
                    ),
                    new MBeanNotificationInfo(new String[] {
                    "j2ee.object.stopped"},
                    Notification.class.getName(),
                    "servlet is stopped"
                    ),
                    new MBeanNotificationInfo(new String[] {
                    "j2ee.object.deleted"},
                    Notification.class.getName(),
                    "servlet is deleted"
                    )
            };
View Full Code Here

        return getBroadcastInfo();
    }

    private static MBeanNotificationInfo[] getBroadcastInfo() {
        String type = Notification.class.getCanonicalName();
        MBeanNotificationInfo info1 = new MBeanNotificationInfo(new String[] {FEATURE_EVENT_EVENT_TYPE},
            type, "Some features notification");
        MBeanNotificationInfo info2 = new MBeanNotificationInfo(new String[] {REPOSITORY_EVENT_EVENT_TYPE},
            type, "Some repository notification");
        return new MBeanNotificationInfo[] {info1, info2};
    }
View Full Code Here

      notificationTypes[3] = RelationNotification.RELATION_MBEAN_UPDATE;
      notificationTypes[4] = RelationNotification.RELATION_BASIC_REMOVAL;
      notificationTypes[5] = RelationNotification.RELATION_MBEAN_REMOVAL;

      String notificationDescription = "Sent when a relation is created, updated or deleted.";
      notificationInfo[0] = new MBeanNotificationInfo(notificationTypes, "RelationNotification", notificationDescription);
      return notificationInfo;
   }
View Full Code Here

         }
      }
      if (model.getNotifications() != null)
      {
         // cannot assume they are already ModelMBeanNotificationInfo
         MBeanNotificationInfo notifications[] = model.getNotifications();
         modelMBeanNotifications = new ModelMBeanNotificationInfo[notifications.length];
         for (int i = 0; i < notifications.length; i++)
         {
            MBeanNotificationInfo notification = notifications[i];
            if (notification instanceof ModelMBeanNotificationInfo)
               modelMBeanNotifications[i] = new ModelMBeanNotificationInfo((ModelMBeanNotificationInfo)notification);
            else
               modelMBeanNotifications[i] = new ModelMBeanNotificationInfo(notification.getNotifTypes(), notification.getName(), notification.getDescription());
         }
      }
      Descriptor mBeanDescriptor = null;
      try
      {
View Full Code Here

//            new ModelMBeanConstructorInfo[consts.length];
//        for (int i = 0; i < consts.length; i++)
//            constructors[i] = consts[i].createConstructorInfo();
       
        NotificationInfo notifs[] = getNotifications();
        MBeanNotificationInfo notifications[] =
            new MBeanNotificationInfo[notifs.length];
        for (int i = 0; i < notifs.length; i++)
            notifications[i] = notifs[i].createNotificationInfo();

       
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.