com.sun.management.snmp.agent
Interface SnmpStandardMetaServer

All Known Implementing Classes:
UsmStatsMeta, UsmUserEntryMeta, UsmUserMeta

public interface SnmpStandardMetaServer

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.

Since:
Java DMK 5.1

Method Summary
 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.
 SnmpValue get(long arc, Object userData)
          Returns the value of the scalar object identified by the given OID arc.
 SnmpValue set(SnmpValue x, long arc, Object userData)
          Sets the value of the scalar object identified by the given OID arc.
 

Method Detail

get

SnmpValue get(long arc,
              Object userData)
              throws SnmpStatusException
Returns the value of the scalar object identified by the given OID arc.

Parameters:
arc - OID arc of the queried 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.

set

SnmpValue set(SnmpValue x,
              long arc,
              Object userData)
              throws SnmpStatusException
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.

check

void check(SnmpValue x,
           long arc,
           Object userData)
           throws SnmpStatusException
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.

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.