[SNMP4J] MOTable

Frank Fock fock at agentpp.com
Tue Oct 10 22:24:10 CEST 2006


Hello Jose,

For virtual table instrumentation implement the MOTableModel and
use a DefaultMOTable instance with that model. This is by far
better and a lot easier than implementing your own command processor
(even better than doing that, would be implementing a sub-class
of ManagedObject).

Best regards,
Frank

Jose Ignacio wrote:
> Hello, now I have a more interesting problem.I think it's better to explain
> with an example:
> 
> I need to send 'user id' with 'users last loggin'. I do it with MyMOTable
> (that extends DefaultTable). getValue method calls getCell(row,col) method
> from class Users and that one returns the Variable result.
> 
> The problem is that the number of users is unknown so I can't register all
> rows on the table (I can't use a listener because now the values are in a
> table, but later they can be in memory, ...). I have thought to write a
> commandProcessor wich sends all requests that begins with the table OID to
> class Users.
> 
> For exameple: If we have oid 1.2.3 for the table, then all request for
> 1.2.3.* are sent to Users class.
> 
> 
> Thanks
> -- 
> Jose Ignacio
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the SNMP4J mailing list