ManagedObject
AgentppSimulationMib.AgentppSimDeleteRow
, AgentppSimulationMib.AgentppSimDeleteTableContents
, AgentppSimulationMib.AgentppSimMode
, DateAndTimeScalar
, DefaultMOTable
, DisplayStringScalar
, EnumeratedScalar
, MOScalar
, NotificationLogMib.NlmConfigGlobalAgeOut
, NotificationLogMib.NlmConfigGlobalEntryLimit
, Snmp4jConfigMib.Snmp4jCfgSecSrcAddrValidation
, Snmp4jDemoMib.Snmp4jDemoScalar
, Snmp4jDemoMib.Snmp4jDemoSparseTableType
, Snmp4jHeartbeatMib.Snmp4jAgentHBRefTime
, SnmpTsmMib.SnmpTsmConfigurationUsePrefix
, SnmpUsmDhObjectsMib.UsmDHParameters
, SNMPv2MIB.SysOREntry
, SNMPv2MIB.SysUpTimeImpl
, TestAndIncr
, TimeStampScalar
, UsmDHParametersImpl
public interface RandomAccessManagedObject extends ManagedObject
ManagedObject
to/from
a byte array. What forms an instance (a single Variable
or a set of those) depends
on the paerticular ManagedObject
implementation but have to be consistent across all method implementation
of this interface.Modifier and Type | Method | Description |
---|---|---|
java.util.List<org.snmp4j.smi.VariableBinding> |
exportInstance(org.snmp4j.smi.OID instanceSubID) |
Exports the byte representation of an instance of the
ManagedObject . |
default org.snmp4j.smi.OID |
getInstanceSubID(org.snmp4j.smi.OID instanceOID) |
Returns the instance sub-identifier sufix for the given instance OID.
|
boolean |
importInstance(org.snmp4j.smi.OID instanceSubID,
java.util.List<org.snmp4j.smi.VariableBinding> data,
ImportMode importMode) |
Imports the data that internally represents the instance specified by the OID suffix
instanceID
from the byte data provided which can be encoded in any representation the ManagedObject is able to
understand. |
int |
instanceCount() |
Returns the number of instances managed by this
ManagedObject . |
java.util.Iterator<org.snmp4j.smi.OID> |
instanceIterator() |
|
boolean |
isVolatile() |
Tests if this instance of a SerializableManagedObject should be
serialized or deserialized through persistent storage
load or save operation.
|
boolean importInstance(org.snmp4j.smi.OID instanceSubID, java.util.List<org.snmp4j.smi.VariableBinding> data, ImportMode importMode)
instanceID
from the byte data provided which can be encoded in any representation the ManagedObject
is able to
understand.instanceSubID
- the OID suffix identifying the instance to export, for scalars this is "0" and for tabular objects
this is the row index.data
- the SNMP data of the instance where the OID identifies the sub-instance (i.e. the column sub-ID for row
instances and "0" for scalar objects).importMode
- defines the import strategy - must not be null
!true
if the import was successful, false
otherwise.java.util.List<org.snmp4j.smi.VariableBinding> exportInstance(org.snmp4j.smi.OID instanceSubID)
ManagedObject
.instanceSubID
- the OID suffix identifying the instance to export, for scalars this is "0" and for tabular objects
this is the row index.java.util.Iterator<org.snmp4j.smi.OID> instanceIterator()
int instanceCount()
ManagedObject
.boolean isVolatile()
true
if persistent storage operations should ignore this ManagedObject
and false
if this object should be saved/loaded to/from persistent storage.default org.snmp4j.smi.OID getInstanceSubID(org.snmp4j.smi.OID instanceOID)
importInstance(OID, List, ImportMode)
,
exportInstance(OID)
, and instanceIterator()
.instanceOID
- the fully qualified OID
of a SNMP Variable
.Variable
belongs to within this RandomAccessManagedObject
.Copyright © 2018 SNMP4J.org. All rights reserved.