org.snmp4j.agent
Interface ManagedObjectValueAccess

All Superinterfaces:
ManagedObject
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.Snmp4jCfgSecSrcAddrValidation, Snmp4jDemoMib.Snmp4jDemoScalar, Snmp4jHeartbeatMib.Snmp4jAgentHBRefTime, SnmpTsmMib.SnmpTsmConfigurationUsePrefix, SNMPv2MIB.SysOREntry, SNMPv2MIB.SysUpTimeImpl, TestAndIncr, TimeStampScalar

public interface ManagedObjectValueAccess
extends ManagedObject

The ManagedObjectValueAccess interface provides direct access to instance values of a ManagedObject.

Since:
1.4
Version:
1.4
Author:
Frank Fock

Method Summary
 org.snmp4j.smi.Variable getValue(org.snmp4j.smi.OID instanceOID)
          Returns the variable (a copy thereof) with the specified instance OID managed by this ManagedObject.
 boolean setValue(org.snmp4j.smi.VariableBinding newValueAndInstanceOID)
          Sets the value of a particular MIB object instance managed by this ManagedObject.
 
Methods inherited from interface org.snmp4j.agent.ManagedObject
cleanup, commit, find, get, getScope, next, prepare, undo
 

Method Detail

getValue

org.snmp4j.smi.Variable getValue(org.snmp4j.smi.OID instanceOID)
Returns the variable (a copy thereof) with the specified instance OID managed by this ManagedObject.

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 or null 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 this ManagedObject. This is a low level operation, thus no change events will be fired.

Parameters:
newValueAndInstanceOID - a VariableBinding 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.

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.