/** * Constructs a new BindEntry. * * @param coid * The SNMP-oid, this entry will use. * @param mbName * The name of an MBean with attribute to query * @param attrName * The name of the attribute to query */ BindEntry(final OID coid, final String mbName, final String attrName) { oid = coid; this.mName = mbName; this.aName = attrName; try { setMbean(new ObjectName(mbName)); setAttr(new Attribute(attrName, null)); } catch (Exception e) { // log.warn(e.toString()); mName = "-unset-"; aName = "-unset-"; } }
/** * Constructs a new BindEntry. * * @param coid * The SNMP-oid, this entry will use. * @param mbName * The name of an MBean with attribute to query * @param attrName * The name of the attribute to query */ BindEntry(final OID coid, final String mbName, final String attrName) { oid = coid; this.mName = mbName; this.aName = attrName; try { setMbean(new ObjectName(mbName)); setAttr(new Attribute(attrName, null)); } catch (Exception e) { // log.warn(e.toString()); mName = "-unset-"; aName = "-unset-"; } }
protected BindEntry clone(){ BindEntry bindEntry = new BindEntry(oid, mName, aName); bindEntry.setAttr(attr); bindEntry.setMbean(mbean); bindEntry.setReadWrite(isReadWrite); bindEntry.setTable(isTable); return bindEntry; } }
protected BindEntry clone(){ BindEntry bindEntry = new BindEntry(oid, mName, aName); bindEntry.setAttr(attr); bindEntry.setMbean(mbean); bindEntry.setReadWrite(isReadWrite); bindEntry.setTable(isTable); return bindEntry; } }