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);