|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
SnmpValue get(long arc, Object userData) throws SnmpStatusException
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.
SnmpValue
of the scalar object identified
by arc
.
SnmpStatusException
- If the arc is not valid, or if
access is denied.SnmpValue set(SnmpValue x, long arc, Object userData) throws SnmpStatusException
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.
SnmpValue
of the scalar object
identified by arc
.
SnmpStatusException
- If the arc is not valid, or if
access is denied.void check(SnmpValue x, long arc, Object userData) throws SnmpStatusException
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.
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 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |