org.snmp4j.agent.mo.jmx
Interface JMXScalarSupport

All Known Implementing Classes:
MBeanActionMOScalarSupport, MBeanAttributeMOScalarSupport

public interface JMXScalarSupport

The JMXScalarSupport provides the interface between SNMP values and MBean based instrumentation. A JMXScalarSupport instance usually supports more than one scalar object.

Version:
1.0
Author:
Frank Fock

Method Summary
 int checkScalarValue(org.snmp4j.smi.OID scalarInstanceOID, org.snmp4j.smi.Variable value)
          Checks the value of the specified object instance and type.
 int getScalarValue(org.snmp4j.smi.OID scalarInstanceOID, org.snmp4j.smi.Variable value)
          Gets the actual value for the specified object instance and type.
 int setScalarValue(org.snmp4j.smi.OID scalarInstanceOID, org.snmp4j.smi.Variable value)
          Sets the value of the specified object instance and type.
 

Method Detail

getScalarValue

int getScalarValue(org.snmp4j.smi.OID scalarInstanceOID,
                   org.snmp4j.smi.Variable value)
Gets the actual value for the specified object instance and type.

Parameters:
scalarInstanceOID - the instance OID of the target object.
value - the instance to hold the return value.
Returns:
zero on success or a SNMP error status value if fetching the value fails.

setScalarValue

int setScalarValue(org.snmp4j.smi.OID scalarInstanceOID,
                   org.snmp4j.smi.Variable value)
Sets the value of the specified object instance and type.

Parameters:
scalarInstanceOID - the instance OID of the target object.
value - the instance's new value.
Returns:
zero on success or a SNMP error status value if setting the value fails.

checkScalarValue

int checkScalarValue(org.snmp4j.smi.OID scalarInstanceOID,
                     org.snmp4j.smi.Variable value)
Checks the value of the specified object instance and type.

Parameters:
scalarInstanceOID - the instance OID of the target object.
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)