/** {@inheritDoc} */ @Override protected void storeResult(SnmpResult res) { m_store.storeResult(res); }
/** * <p>getSysName</p> * * @return a {@link java.lang.String} object. */ public String getSysName() { return m_store.getDisplayString(SYS_NAME); }
/** * <p>getStpDesignatedRoot</p> * * @return a {@link java.lang.String} object. */ public String getStpDesignatedRoot(){ if (m_store.getValue(STP_DESIGNATED_ROOT) != null) return m_store.getHexString(STP_DESIGNATED_ROOT); return null; }
public void testStoreResultWithValueThenEndOfMibView() { String baseOid = ".1.3.6.1.2.1.31.1.1.1.18"; String ifAliasName = "ifAlias"; String ifAliasValue = "Foo!"; SnmpStore store = new SnmpStore(new NamedSnmpVar[] { new NamedSnmpVar(NamedSnmpVar.SNMPOCTETSTRING, ifAliasName, baseOid, 18) }); SnmpObjId base = SnmpObjId.get(baseOid); SnmpInstId inst = new SnmpInstId("1"); store.storeResult(new SnmpResult(base, inst, SnmpUtils.getValueFactory().getOctetString(ifAliasValue.getBytes()))); store.storeResult(new SnmpResult(base, inst, SnmpUtils.getValueFactory().getValue(SnmpValue.SNMP_END_OF_MIB, null))); assertEquals("ifAlias value", ifAliasValue, store.getDisplayString(ifAliasName)); } }
/** * <P>The class constructor is used to initialize the collector * and send out the initial SNMP packet requesting data. The * data is then received and store by the object. When all the * data has been collected the passed signaler object is <EM>notified</em> * using the notifyAll() method.</P> * * @param address a {@link java.net.InetAddress} object. */ public CiscoVtpTracker() { super(NamedSnmpVar.getTrackersFor(ms_elemList)); m_store = new SnmpStore(ms_elemList); }
/** * <p>getBridgeAddress</p> * * @return a {@link Integer} object. */ public Integer getVtpVersion() { return m_store.getInt32(VTP_VERSION); }
public String getIsisSysId() { return m_store.getHexString(ISIS_SYS_ID_ALIAS); }
public SnmpValue getLldpLocChassisid() { return m_store.getValue(LLDP_LOC_CHASSISID_ALIAS); }
public LldpLocalGroupTracker() { super(NamedSnmpVar.getTrackersFor(ms_elemList)); m_store = new SnmpStore(ms_elemList); }
public Integer getIsisSysAdminState() { return m_store.getInt32(ISIS_SYS_ADMIN_STATE_ALIAS); }
/** * <p>getBridgeAddress</p> * * @return a {@link java.lang.String} object. */ public String getBridgeAddress() { if (m_store.getValue(BASE_BRIDGE_ADDRESS) != null) return m_store.getHexString(BASE_BRIDGE_ADDRESS); return null; }
/** {@inheritDoc} */ @Override protected void storeResult(SnmpResult res) { m_store.storeResult(res); }
/** * <P>The class constructor is used to initialize the collector * and send out the initial SNMP packet requesting data. The * data is then received and store by the object. When all the * data has been collected the passed signaler object is <EM>notified</em> * using the notifyAll() method.</P> * * @param address a {@link java.net.InetAddress} object. */ public CdpGlobalGroupTracker() { super(NamedSnmpVar.getTrackersFor(ms_elemList)); m_store = new SnmpStore(ms_elemList); }
public Integer getCdpGlobalDeviceFormat() { return m_store.getInt32(CDP_GLOBAL_DEVICEID_FORMAT); }
/** * <p>getSysDescr</p> * * @return a {@link java.lang.String} object. */ public String getSysDescr() { return m_store.getDisplayString(SYS_DESCR); }
/** {@inheritDoc} */ protected void storeResult(SnmpResult res) { m_store.storeResult(res); }
/** * <P>The class constructor is used to initialize the collector * and send out the initial SNMP packet requesting data. The * data is then received and store by the object. When all the * data has been collected the passed signaler object is <EM>notified</em> * using the notifyAll() method.</P> * * @param address a {@link java.net.InetAddress} object. */ public Dot1dBaseTracker() { super(NamedSnmpVar.getTrackersFor(ms_elemList)); m_store = new SnmpStore(ms_elemList); }