This page provides concrete MIB instrumentation sample implementations based on the SNMP4J-AGENT-TUTORIAL-MIB.
Instrumentation using Virtual Tables
With SNMP4J-AgentX's BufferedMOTableModel
, you can easily instrument tables based on a virtual table technology. That means, the table is (usually) never hold in with all its rows in memory. Instead, only those rows are fetched from the underlying data source that are actually needed and requested by the currently running requests on the table.
- Create your own sub-class implementation of
DefaultMOFactory
in order to be able to create/use your ownBufferedMOTableModel
instead of the default table model generated by AgenPro. In the generated Agent.java class file, change the getFactory() method to:
protected MOFactory getFactory() { return new Snmp4jAgentTutorialFactory(); }
- Implement your subclass of the
BufferedMOTableModel
orBufferedMOMutableTableModel
. See the attached file for an example.