Package org.jboss.jmx.adaptor.snmp.config.attribute

Examples of org.jboss.jmx.adaptor.snmp.config.attribute.MappedAttribute


       String oidPrefix = mmb.getOidPrefix();
       List attrs = mmb.getAttributes();
       Iterator aIt = attrs.iterator();
       while (aIt.hasNext())
       {
          MappedAttribute ma = (MappedAttribute)aIt.next();
          String oid;
          if (oidPrefix != null)
             oid = oidPrefix + ma.getOid();
          else
             oid = ma.getOid();
          
          BindEntry be = new BindEntry(oid, mmb.getName(), ma.getName());
          be.isReadWrite = ma.isReadWrite();
         
          ComparableSnmpObjectId coid = new ComparableSnmpObjectId(oid);
         
          if (log.isTraceEnabled())
             log.trace("New bind entry   " + be);
          if (bindings.containsKey(coid)) {
             log.info("Duplicate oid " + oid + SKIP_ENTRY);
             continue;
          }
          if (mmb.getName() == null || mmb.getName().equals(""))
          {
             log.info("Invalid mbean name for oid " + oid + SKIP_ENTRY);
             continue;
          }
          if (ma.getName() == null || ma.getName().equals(""))
          {
             log.info("Invalid attribute name " + ma.getName() + " for oid " + oid + SKIP_ENTRY);
             continue;
          }
          bindings.put(coid, be);
          oidKeys.add(coid);
         
View Full Code Here


 
  public Object newChild(ManagedBean mbean, UnmarshallingContext navigator,
      String namespaceUri, String localName, Attributes attrs)
  {
   
    MappedAttribute attribute = null;
    if ("attribute".equals(localName)) {
      String oid = attrs.getValue("oid");
      String name = attrs.getValue("name");
      String mode = attrs.getValue("mode");
      attribute = new MappedAttribute();
      if ("rw".equalsIgnoreCase(mode))
            attribute.setReadWrite(true);
      attribute.setName(name);
      attribute.setOid(oid);
    }
    return attribute;
  }
View Full Code Here

       String oidPrefix = mmb.getOidPrefix();
       List attrs = mmb.getAttributes();
       Iterator aIt = attrs.iterator();
       while (aIt.hasNext())
       {
          MappedAttribute ma = (MappedAttribute)aIt.next();
          String oid;
          if (oidPrefix != null)
             oid = oidPrefix + ma.getOid();
          else
             oid = ma.getOid();
          
          BindEntry be = new BindEntry(oid, mmb.getName(), ma.getName());
          be.isReadWrite = ma.isReadWrite();
         
          ComparableSnmpObjectId coid = new ComparableSnmpObjectId(oid);
         
          if (log.isTraceEnabled())
             log.trace("New bind entry   " + be);
          if (bindings.containsKey(coid)) {
             log.info("Duplicate oid " + oid + SKIP_ENTRY);
             continue;
          }
          if (mmb.getName() == null || mmb.getName().equals(""))
          {
             log.info("Invalid mbean name for oid " + oid + SKIP_ENTRY);
             continue;
          }
          if (ma.getName() == null || ma.getName().equals(""))
          {
             log.info("Invalid attribute name " + ma.getName() + " for oid " + oid + SKIP_ENTRY);
             continue;
          }
          bindings.put(coid, be);
          oidKeys.add(coid);
         
View Full Code Here

TOP

Related Classes of org.jboss.jmx.adaptor.snmp.config.attribute.MappedAttribute

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.