Module org.snmp4j.agent
Package org.snmp4j.agent
Interface SerializableManagedObject<SR extends SubRequest<?>>
- All Superinterfaces:
ManagedObject<SR>,RegisteredManagedObject<SR>
- 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
public interface SerializableManagedObject<SR extends SubRequest<?>>
extends RegisteredManagedObject<SR>
The
SerializableManagedObject interface is implemented by
ManagedObjects whose (data) content can be serialized
using MOInput and MOOutput.- Version:
- 3.7.0
- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanDefines if this managed object can be configured even thoughisVolatile()returnstrue, i.e., initialized once the server enters itsAgentConfigManager.configure()phase.booleanTests if this instance of a SerializableManagedObject should be serialized or deserialized through persistent storage load or save operation.voidLoads the content of the managed object from the specified input (stream).voidSaves the (non-volatile) content of this managed object to the specified output (stream).Methods inherited from interface org.snmp4j.agent.ManagedObject
cleanup, commit, find, find, get, getScope, next, next, prepare, undoMethods inherited from interface org.snmp4j.agent.RegisteredManagedObject
getID
-
Method Details
-
load
Loads the content of the managed object from the specified input (stream).- Parameters:
input- aMOInputinstance.- Throws:
IOException- if an MOInput operation fails.
-
save
Saves the (non-volatile) content of this managed object to the specified output (stream).- Parameters:
output- aMOOutputinstance.- Throws:
IOException- if an MOOutput operation fails.
-
isVolatile
boolean isVolatile()Tests if this instance of a SerializableManagedObject should be serialized or deserialized through persistent storage load or save operation.- Returns:
trueifload(org.snmp4j.agent.io.MOInput)andsave(org.snmp4j.agent.io.MOOutput)should not be called through a persistent storage operation andfalseif these method should be called.
-
isConfigurable
default boolean isConfigurable()Defines if this managed object can be configured even thoughisVolatile()returnstrue, i.e., initialized once the server enters itsAgentConfigManager.configure()phase. IfisVolatile()returnsfalse, the value of this method isfalsetoo, then an initial configuration is rejected (ignored) but the value of the object will be persistent though.- Returns:
trueif this object can be configured byAgentConfigManager.configure(), otherwise its value will not be changed during agent configuration phase. Default istrue.- Since:
- 3.7.0
-