Package javax.management.relation

Examples of javax.management.relation.MBeanServerNotificationFilter.enableType()


   }

   public MBeanServerNotificationFilter createMBeanServerNotificationFilter() throws MalformedObjectNameException
   {
      MBeanServerNotificationFilter filter = new MBeanServerNotificationFilter();
      filter.enableType("notif-type");
      filter.disableAllObjectNames();
      filter.enableObjectName(new ObjectName("domain:key=val"));
      return filter;
   }
View Full Code Here


      {
        final MBeanServerNotificationFilter  filter  =
          new MBeanServerNotificationFilter();
        filter.enableAllObjectNames();
        filter.disableAllTypes();
        filter.enableType( MBeanServerNotification.UNREGISTRATION_NOTIFICATION );
       
        JMXUtil.listenToMBeanServerDelegate( conn, this, filter, null );
      }
      catch( Exception e )
      {
View Full Code Here

      try
      {
        final MBeanServerNotificationFilter  filter  = new MBeanServerNotificationFilter();
        filter.enableAllObjectNames();
        filter.disableAllTypes();
        filter.enableType( MBeanServerNotification.UNREGISTRATION_NOTIFICATION );
        JMXUtil.listenToMBeanServerDelegate( conn, this, filter, null );
      }
      catch( Exception e )
      {
        warning( "ProxyFactory: connection does not support notifications: ",
View Full Code Here

            // but the http connector does not support listeners
            try {
                final MBeanServerNotificationFilter filter = new MBeanServerNotificationFilter();
                filter.enableAllObjectNames();
                filter.disableAllTypes();
                filter.enableType(MBeanServerNotification.UNREGISTRATION_NOTIFICATION);
                JMXUtil.listenToMBeanServerDelegate(conn, this, filter, null);
            } catch (Exception e) {
                warning("ProxyFactory: connection does not support notifications: ",
                        mMBeanServerID, conn);
            }
View Full Code Here

            // look for 'type' attribute
            if (((Element)filterChildNode).hasAttribute(ENABLE_TYPE_ATTRIBUTE))
            {
               String type = ((Element)filterChildNode).getAttribute(ENABLE_TYPE_ATTRIBUTE);
               // enable this type in the filter
               filter.enableType(type);
            }
            else if (((Element)filterChildNode).hasAttribute(ENABLE_OBJECTNAME_ATTRIBUTE))
            {
               String objectName = ((Element)filterChildNode).getAttribute(ENABLE_OBJECTNAME_ATTRIBUTE);
               // enable this objectName in the filter
View Full Code Here

/*     */       }
/* 102 */       if (((Element)filterChildNode).hasAttribute("type"))
/*     */       {
/* 104 */         String type = ((Element)filterChildNode).getAttribute("type");
/*     */
/* 106 */         filter.enableType(type);
/*     */       }
/* 108 */       else if (((Element)filterChildNode).hasAttribute("object-name"))
/*     */       {
/* 110 */         String objectName = ((Element)filterChildNode).getAttribute("object-name");
/*     */
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.