Examples of enableAttribute()


Examples of javax.management.AttributeChangeNotificationFilter.enableAttribute()

        } else {
            if ((attrInfo != null) && (attrInfo.length>0)) {
                for (int i=0; i<attrInfo.length; i++) {
                    if (inAttributeName.equals(attrInfo[i].getName())) {
                        found = true;
                        currFilter.enableAttribute(inAttributeName);
                        break;
                    }
                }
            }
            if (!found) {
View Full Code Here

Examples of javax.management.AttributeChangeNotificationFilter.enableAttribute()

/*     */       {
/* 369 */         throw new RuntimeOperationsException(new IllegalArgumentException("Attribute does not exist: " + attributeName));
/*     */       }
/*     */
/* 372 */       filter = new AttributeChangeNotificationFilter();
/* 373 */       filter.enableAttribute(attributeName);
/*     */     }
/*     */     else
/*     */     {
/* 377 */       filter = new AttributeChangeNotificationFilter();
/* 378 */       MBeanAttributeInfo[] allAttributes = minfo.getAttributes();
View Full Code Here

Examples of javax.management.AttributeChangeNotificationFilter.enableAttribute()

/*     */     else
/*     */     {
/* 377 */       filter = new AttributeChangeNotificationFilter();
/* 378 */       MBeanAttributeInfo[] allAttributes = minfo.getAttributes();
/* 379 */       for (int i = 0; i < allAttributes.length; i++)
/* 380 */         filter.enableAttribute(allAttributes[i].getName());
/*     */     }
/* 382 */     this.notifier.addNotificationListener(listener, filter, handback);
/*     */   }
/*     */
/*     */   public void removeAttributeChangeNotificationListener(NotificationListener listener, String attributeName)
View Full Code Here

Examples of javax.management.AttributeChangeNotificationFilter.enableAttribute()

/*     */       }
/*  87 */       if (((Element)filterChildNode).hasAttribute("attribute-name"))
/*     */       {
/*  89 */         String attributeName = ((Element)filterChildNode).getAttribute("attribute-name");
/*     */
/*  91 */         filter.enableAttribute(attributeName);
/*     */       }
/*     */       else
/*     */       {
/*  95 */         throw new Exception("'enable' element must have a 'attribute-name' attribute");
/*     */       }
View Full Code Here

Examples of javax.management.AttributeChangeNotificationFilter.enableAttribute()

      ejbModuleName = ejbModule.getServiceName().toString();

      // we register our inner-class to retrieve STATE notifications from our container
      //
      AttributeChangeNotificationFilter filter = new AttributeChangeNotificationFilter ();
      filter.enableAttribute ("State");

      this.container.getServer ().
         addNotificationListener (this.container.getEjbModule ().getServiceName (),
                                  new CleanShutdownInterceptor.StateChangeListener (),
                                  filter,
View Full Code Here

Examples of javax.management.AttributeChangeNotificationFilter.enableAttribute()

   {
      super.createService();
     
      // we register our inner-class to retrieve STATE notifications from our container
      AttributeChangeNotificationFilter filter = new AttributeChangeNotificationFilter();
      filter.enableAttribute("State");
      listener = new StateChangeListener();
      getServer().addNotificationListener(getTargetName(), listener, filter, null);
   }
  
   protected void startService() throws Exception
View Full Code Here

Examples of javax.management.AttributeChangeNotificationFilter.enableAttribute()

      super.create ();
     
      // we register our inner-class to retrieve STATE notifications from our container
      //
      AttributeChangeNotificationFilter filter = new AttributeChangeNotificationFilter ();
      filter.enableAttribute ("State");
     
      // ************************************************************************
      // NOTE: We could also subscribe for the container service events instead of the
      // ejbModule service events. This problem comes from beans using other beans
      // in the same ejbModule: we may receive an IllegalStateException thrown
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.