Examples of enableObjectName()


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

                                                    ObjectName pObjectNameToFilter) {
        MBeanServerNotificationFilter filter = new MBeanServerNotificationFilter();
        if (pObjectNameToFilter == null) {
            filter.enableAllObjectNames();
        } else {
            filter.enableObjectName(pObjectNameToFilter);
        }
        try {
            pServer.addNotificationListener(getMBeanServerDelegateName(), pListener, filter, null);
        } catch (InstanceNotFoundException e) {
            throw new IllegalStateException("Cannot find " + getMBeanServerDelegateName() + " in server " + pServer,e);
View Full Code Here

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

            else if (((Element)filterChildNode).hasAttribute(ENABLE_OBJECTNAME_ATTRIBUTE))
            {
               String objectName = ((Element)filterChildNode).getAttribute(ENABLE_OBJECTNAME_ATTRIBUTE);
               // enable this objectName in the filter
               // may throw MalformedObjectNameException
               filter.enableObjectName(new ObjectName(objectName));
            }
            else
            {
               throw new Exception("'" + ENABLE_ELEMENT + "' element must have a '"
                     + ENABLE_TYPE_ATTRIBUTE + "' or a '" + ENABLE_OBJECTNAME_ATTRIBUTE + "' attribute");
View Full Code Here

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

/*     */       }
/* 108 */       else if (((Element)filterChildNode).hasAttribute("object-name"))
/*     */       {
/* 110 */         String objectName = ((Element)filterChildNode).getAttribute("object-name");
/*     */
/* 113 */         filter.enableObjectName(new ObjectName(objectName));
/*     */       }
/*     */       else
/*     */       {
/* 117 */         throw new Exception("'enable' element must have a 'type' or a 'object-name' attribute");
/*     */       }
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.