Package javax.management

Examples of javax.management.MBeanNotificationInfo


      String[] types = new String[] {
         AttributeChangeNotification.ATTRIBUTE_CHANGE
      };

      String name = AttributeChangeNotification.class.getName();
      MBeanNotificationInfo loggingEventInfo =
         new MBeanNotificationInfo(types, name, "Error logging events of cluster node '" + this.glob.getId() + "'");
      MBeanNotificationInfo loginEventInfo =
         new MBeanNotificationInfo(types, name, "Client login events of cluster node '" + this.glob.getId() + "'");
      MBeanNotificationInfo logoutEventInfo =
         new MBeanNotificationInfo(types, name, "Client logout events of cluster node '" + this.glob.getId() + "'");

      return new MBeanNotificationInfo[] {loggingEventInfo, loginEventInfo, logoutEventInfo};
   }
View Full Code Here


      String[] types = new String[] {
         AttributeChangeNotification.ATTRIBUTE_CHANGE
      };
      String name = AttributeChangeNotification.class.getName();
      String description = "TODO: An attribute of this MBean has changed";
      MBeanNotificationInfo info =
         new MBeanNotificationInfo(types, name, description);
      return new MBeanNotificationInfo[] {info};
   }
View Full Code Here

    public MBeanNotificationInfo[] getNotificationInfo()
    {
        String[] types = new String[] { AttributeChangeNotification.ATTRIBUTE_CHANGE };
        String name = AttributeChangeNotification.class.getName();
        String description = "An attribute of the monitored EJServer has changed";
        MBeanNotificationInfo info = new MBeanNotificationInfo( types, name, description );
        return new MBeanNotificationInfo[] { info };
    }
View Full Code Here

    public MBeanNotificationInfo[] getNotificationInfo(){

        String type = "time.expired";
        MBeanNotificationInfo[] notifications = new MBeanNotificationInfo[1];
        notifications[0] = new MBeanNotificationInfo(new String[]{type},
                "TimeNotification",
                "Types of notifications emitted by this broadcaster");

        return notifications;
    }
View Full Code Here

      // notifications
      if (notifs.length > 0)
      {
         for (int i = 0; i < notifs.length; i++)
         {
            MBeanNotificationInfo notifInfo = notifs[i];
            String[] types = notifInfo.getNotifTypes();
            out.println("   <notification>");
            out.println("      <description>" + notifInfo.getDescription() + "</description>");
            out.println("      <name>" + notifInfo.getName() + "</name>");
            for (int j = 0; j < types.length; j++)
            {
               out.println("      <notification-type>" + types[j] + "</notification-type>");
            }
            out.println("   </notification>");
View Full Code Here

  public MBeanNotificationInfo[] getNotificationInfo()
  {
    String[] types = new String[] { "SIP" };
    String name = MBeanNotificationInfo.class.getName();
    String description = "SIP message notification";
    MBeanNotificationInfo info = new MBeanNotificationInfo(types, name, description);

    return new MBeanNotificationInfo[] { info };
  }
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

    private MBeanInfo createMBeanInfo()
    {
        MBeanAttributeInfo attrs[] = createMBeanAttributeInfo();
        MBeanConstructorInfo ctors[] = createMBeanConstructorInfo();
        MBeanOperationInfo opers[] = createMBeanOperationInfo();
        MBeanNotificationInfo notifs[] = createMBeanNotificationInfo();
        String className = getMBeanClassName();
        String description = getMBeanDescription();
        return new MBeanInfo(className, description, attrs, ctors, opers, notifs);
    }
View Full Code Here

    @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

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.