Examples of enableAttribute()


Examples of javax.management.AttributeChangeNotificationFilter.enableAttribute()

     * @throws IllegalArgumentException
     */
    public void addAttributeChangeNotificationListener(NotificationListener l, String attrName, Object handback) throws MBeanException,
                    RuntimeOperationsException, IllegalArgumentException {
        AttributeChangeNotificationFilter currFilter = new AttributeChangeNotificationFilter();
        currFilter.enableAttribute(attrName);
        broadcasterSupport.addNotificationListener(l, currFilter, handback);
    }

    /**
     * @param l
View Full Code Here

Examples of javax.management.AttributeChangeNotificationFilter.enableAttribute()

     * @throws IllegalArgumentException
     */
    public void addAttributeChangeNotificationListener(NotificationListener l, String attrName, Object handback)
            throws MBeanException, RuntimeOperationsException, IllegalArgumentException {
        AttributeChangeNotificationFilter currFilter = new AttributeChangeNotificationFilter();
        currFilter.enableAttribute(attrName);
        broadcasterSupport.addNotificationListener(l, currFilter, handback);
    }

    /**
     * @param l
View Full Code Here

Examples of javax.management.AttributeChangeNotificationFilter.enableAttribute()

          transactionManagerInformation.make(configuration);
          TransactionManager tm =  new TransactionManager(jndi, transactionManagerInformation, this);
          new Thread(tm).start();
   
          AttributeChangeNotificationFilter nf = new AttributeChangeNotificationFilter();
          nf.enableAttribute("TMState");
          this.addNotificationListener((NotificationListener) tm, nf, this);
   
          logger.info(transactionManagerInformation.getIdtrn()+"|Configurado e iniciado.|");
        }
    } catch (ConfigurationException e) {
View Full Code Here

Examples of javax.management.AttributeChangeNotificationFilter.enableAttribute()

      TransactionInformation ti = tmInformation.getTransactionInformation(m);
      String trnName = tmInformation.getIdtrn()+"-" + new GregorianCalendar().getTimeInMillis();
      Transaction trn = new Transaction(trnName, ti , message.getStringProperty("connection"));
     
      AttributeChangeNotificationFilter nf = new AttributeChangeNotificationFilter();
      nf.enableAttribute("TMState");
      configurator.addNotificationListener((NotificationListener) trn, nf, this);
     
      trn.setMessage(m);
      new TransactionTimeOut(trn,ti.getTimeOut());
    }catch (Exception e){
View Full Code Here

Examples of javax.management.AttributeChangeNotificationFilter.enableAttribute()

       
        logger.info(channelName+"| Iniciando connection...|");
        logger.info(channelName+"| Servicio jndi: "+jndi+"|");

        AttributeChangeNotificationFilter nf = new AttributeChangeNotificationFilter();
        nf.enableAttribute("ChannelState");

        incomingTopic = configuration.getAttribute("incomingTopic");
        outgoingTopic = configuration.getAttribute("outgoingTopic");
        idxLink = 0;
View Full Code Here

Examples of javax.management.AttributeChangeNotificationFilter.enableAttribute()

  public void registerLinkChannel(ILink link) {
    if (logger.isDebugEnabled())
      logger.debug(channelName+"| registerLinkChannel - link "+link+" registrado. |");
    AttributeChangeNotificationFilter nf = new AttributeChangeNotificationFilter();
    nf.disableAllAttributes();
    nf.enableAttribute("ChannelState");
    this.addNotificationListener((NotificationListener) link, nf, this);
  }

  public void deregisterLinkChannel(ILink link) {
    try {
View Full Code Here

Examples of javax.management.AttributeChangeNotificationFilter.enableAttribute()

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

Examples of javax.management.AttributeChangeNotificationFilter.enableAttribute()

      else
      {
         filter = new AttributeChangeNotificationFilter();
         MBeanAttributeInfo[] allAttributes = minfo.getAttributes();
         for (int i = 0; i < allAttributes.length; ++i)
            filter.enableAttribute(allAttributes[i].getName());
      }
      notifier.addNotificationListener(listener, filter, handback);
   }

   /**
 
View Full Code Here

Examples of javax.management.AttributeChangeNotificationFilter.enableAttribute()

            // look for 'attribute-name' attribute
            if (((Element)filterChildNode).hasAttribute(ENABLE_ATTRNAME_ATTRIBUTE))
            {
               String attributeName = ((Element)filterChildNode).getAttribute(ENABLE_ATTRNAME_ATTRIBUTE);
               // enable this type in the filter
               filter.enableAttribute(attributeName);
            }
            else
            {
               throw new Exception("'" + ENABLE_ELEMENT + "' element must have a '"
                     + ENABLE_ATTRNAME_ATTRIBUTE + "' attribute");
View Full Code Here

Examples of javax.management.AttributeChangeNotificationFilter.enableAttribute()

        MBeanAttributeInfo[] attrInfo = modelMBeanInfo.getAttributes();
        boolean found = false;
        if (inAttributeName == null) {
            if ((attrInfo != null) && (attrInfo.length>0)) {
                for (int i=0; i<attrInfo.length; i++) {
                    currFilter.enableAttribute(attrInfo[i].getName());
                }
            }
        } else {
            if ((attrInfo != null) && (attrInfo.length>0)) {
                for (int i=0; i<attrInfo.length; i++) {
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.