org.snmp4j.agent.mo.jmx
Interface JMXColumnSupport


public interface JMXColumnSupport

The JMXColumnSupport is an interface to map MBean values to SNMP table columns and vice versa.

Version:
1.0
Author:
Frank Fock

Method Summary
 int checkColumnValue(javax.management.ObjectName mBean, int columnIndex, org.snmp4j.smi.Variable value)
          Checks the value of the specified object instance and type.
 int getColumnValue(javax.management.ObjectName mBean, int columnIndex, org.snmp4j.smi.Variable value)
          Gets the actual value for the specified object instance and type.
 int setColumnValue(javax.management.ObjectName mBean, int columnIndex, org.snmp4j.smi.Variable value)
          Sets the value of the specified object instance and type.
 

Method Detail

getColumnValue

int getColumnValue(javax.management.ObjectName mBean,
                   int columnIndex,
                   org.snmp4j.smi.Variable value)
Gets the actual value for the specified object instance and type.

Parameters:
mBean - the name of the MBean instance representing the row object.
columnIndex - the zero-based column index.
value - the instance to hold the return value.
Returns:
zero on success or a SNMP error status value if fetching the value fails.

setColumnValue

int setColumnValue(javax.management.ObjectName mBean,
                   int columnIndex,
                   org.snmp4j.smi.Variable value)
Sets the value of the specified object instance and type.

Parameters:
mBean - the name of the MBean instance representing the row object.
columnIndex - the zero-based column index.
value - the instance's new value.
Returns:
zero on success or a SNMP error status value if setting the value fails.

checkColumnValue

int checkColumnValue(javax.management.ObjectName mBean,
                     int columnIndex,
                     org.snmp4j.smi.Variable value)
Checks the value of the specified object instance and type.

Parameters:
mBean - the name of the MBean instance representing the row object.
columnIndex - the zero-based column index.
value - the instance's new value.
Returns:
zero on success or a SNMP error status value if setting the value fails.

Copyright 2006-2007 Frank Fock (SNMP4J.org)