public interface

SnmpStandardMetaServer

com.sun.jmx.snmp.agent.SnmpStandardMetaServer
Known Indirect Subclasses

Class Overview

This interface defines the methods that must be implemented by an SNMP metadata object that needs to interact with an SnmpStandardObjectServer object.

All these methods are usually generated by mibgen when run in standard-metadata mode (default).

This interface is used internally between the generated Metadata and the SNMP runtime and you shouldn't need to worry about it, because you will never have to use it directly.

This API is a Sun Microsystems internal API and is subject to change without notice.

Summary

Public Methods
abstract void check(SnmpValue x, long arc, Object userData)
Checks that the new desired value of the scalar object identified by the given OID arc is valid.
abstract SnmpValue get(long arc, Object userData)
Returns the value of the scalar object identified by the given OID arc.
abstract SnmpValue set(SnmpValue x, long arc, Object userData)
Sets the value of the scalar object identified by the given OID arc.

Public Methods

public abstract void check (SnmpValue x, long arc, Object userData)

Checks that the new desired value of the scalar object identified by the given OID arc is valid.

Parameters
x New value for the scalar object identified by arc
arc OID arc of the scalar object whose value is set.
userData A contextual object containing user-data. This object is allocated through the SnmpUserDataFactory for each incoming SNMP request.
Throws
SnmpStatusException If the arc is not valid, or if access is denied, or if the new desired value is not valid.

public abstract SnmpValue get (long arc, Object userData)

Returns the value of the scalar object identified by the given OID arc.

Parameters
arc OID arc of the querried scalar object.
userData A contextual object containing user-data. This object is allocated through the SnmpUserDataFactory for each incoming SNMP request.
Returns
  • The SnmpValue of the scalar object identified by arc.
Throws
SnmpStatusException If the arc is not valid, or if access is denied.

public abstract SnmpValue set (SnmpValue x, long arc, Object userData)

Sets the value of the scalar object identified by the given OID arc.

Parameters
x New value for the scalar object identified by arc
arc OID arc of the scalar object whose value is set.
userData A contextual object containing user-data. This object is allocated through the SnmpUserDataFactory for each incoming SNMP request.
Returns
  • The new SnmpValue of the scalar object identified by arc.
Throws
SnmpStatusException If the arc is not valid, or if access is denied.