Module org.snmp4j.agent
Package org.snmp4j.agent
Interface ManagedObjectValueAccess<SR extends SubRequest<?>>
- All Superinterfaces:
ManagedObject<SR>
- All Known Subinterfaces:
MOTable<R,
C, M>
- All Known Implementing Classes:
AgentppSimulationMib.AgentppSimDeleteRow
,AgentppSimulationMib.AgentppSimDeleteTableContents
,AgentppSimulationMib.AgentppSimMode
,DateAndTimeScalar
,DefaultMOTable
,DisplayStringScalar
,EnumeratedScalar
,MOScalar
,NotificationLogMib.NlmConfigGlobalAgeOut
,NotificationLogMib.NlmConfigGlobalEntryLimit
,Snmp4jConfigMib.Snmp4jCfgReset
,Snmp4jConfigMib.Snmp4jCfgSecSrcAddrValidation
,SnmpTsmMib.SnmpTsmConfigurationUsePrefix
,SnmpUsmDhObjectsMib.UsmDHParameters
,SNMPv2MIB.SysOREntry
,SNMPv2MIB.SysUpTimeImpl
,TestAndIncr
,TimeStampScalar
,UsmDHParametersImpl
The
ManagedObjectValueAccess
interface provides direct
access to instance values of a ManagedObject
.- Since:
- 1.4
- Version:
- 3.0.4
- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescriptionorg.snmp4j.smi.Variable
getValue
(org.snmp4j.smi.OID instanceOID) Returns the variable (a copy thereof) with the specified instance OID managed by thisManagedObject
.boolean
setValue
(org.snmp4j.smi.VariableBinding newValueAndInstanceOID) Sets the value of a particular MIB object instance managed by thisManagedObject
.
-
Method Details
-
getValue
org.snmp4j.smi.Variable getValue(org.snmp4j.smi.OID instanceOID) Returns the variable (a copy thereof) with the specified instance OID managed by thisManagedObject
.- Parameters:
instanceOID
- the instance OID of the value. Thus, for scalar values with .0 suffix and for tabular objects with table index suffix.- Returns:
- a copy of the requested
Variable
ornull
if such a variable does not exist.
-
setValue
boolean setValue(org.snmp4j.smi.VariableBinding newValueAndInstanceOID) Sets the value of a particular MIB object instance managed by thisManagedObject
. This is a low level operation, thus no change events will be fired.- Parameters:
newValueAndInstanceOID
- aVariableBinding
identifying the object instance to modify by its OID and the new value by its variable part.- Returns:
true
if the object instance exists and has been modified successfully,false
otherwise.
-