You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »


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.

  1. Create your own sub-class implementation of DefaultMOFactory in order to be able to create/use your own BufferedMOTableModel instead of the default table model generated by AgenPro.
  2. In the generated Agent.java class file, change the getFactory() method to:

    protected MOFactory getFactory() {
      return new Snmp4jAgentTutorialFactory();
    }
    
    
  3. Implement your subclass of the BufferedMOTableModel or BufferedMOMutableTableModel. See the attached file for an example.

 

  • No labels