FileDocCategorySizeDatePackage
SnmpStandardMetaServer.javaAPI DocJava SE 5 API3493Fri Aug 26 14:55:04 BST 2005com.sun.jmx.snmp.agent

SnmpStandardMetaServer

public interface SnmpStandardMetaServer

This interface defines the methods that must be implemented by an SNMP metadata object that needs to interact with an {@link com.sun.jmx.snmp.agent.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.

Fields Summary
Constructors Summary
Methods Summary
public voidcheck(com.sun.jmx.snmp.SnmpValue x, long arc, java.lang.Object userData)
Checks that the new desired value of the scalar object identified by the given OID arc is valid.

param
x New value for the scalar object identified by arc
param
arc OID arc of the scalar object whose value is set.
param
userData A contextual object containing user-data. This object is allocated through the {@link com.sun.jmx.snmp.agent.SnmpUserDataFactory} for each incoming SNMP request.
exception
SnmpStatusException If the arc is not valid, or if access is denied, or if the new desired value is not valid.

public com.sun.jmx.snmp.SnmpValueget(long arc, java.lang.Object userData)
Returns the value of the scalar object identified by the given OID arc.

param
arc OID arc of the querried scalar object.
return
The SnmpValue of the scalar object identified by arc.
param
userData A contextual object containing user-data. This object is allocated through the {@link com.sun.jmx.snmp.agent.SnmpUserDataFactory} for each incoming SNMP request.
exception
SnmpStatusException If the arc is not valid, or if access is denied.

public com.sun.jmx.snmp.SnmpValueset(com.sun.jmx.snmp.SnmpValue x, long arc, java.lang.Object userData)
Sets the value of the scalar object identified by the given OID arc.

param
x New value for the scalar object identified by arc
param
arc OID arc of the scalar object whose value is set.
return
The new SnmpValue of the scalar object identified by arc.
param
userData A contextual object containing user-data. This object is allocated through the {@link com.sun.jmx.snmp.agent.SnmpUserDataFactory} for each incoming SNMP request.
exception
SnmpStatusException If the arc is not valid, or if access is denied.