public interface SerializableManagedObject extends RegisteredManagedObject
SerializableManagedObject interface is implemented by
ManagedObjects whose (data) content can be serialized
using MOInput and MOOutput.| Modifier and Type | Method and Description |
|---|---|
boolean |
isVolatile()
Tests if this instance of a SerializableManagedObject should be
serialized or deserialized through persistent storage
load or save operation.
|
void |
load(MOInput input)
Loads the content of the managed object from the specified input (stream).
|
void |
save(MOOutput output)
Saves the (non-volatile) content of this managed object to the specified
output (stream).
|
getIDvoid load(MOInput input) throws IOException
input - a MOInput instance.IOException - if an MOInput operation fails.void save(MOOutput output) throws IOException
output - a MOOutput instance.IOException - if an MOOutput operation fails.boolean isVolatile()
true if load(org.snmp4j.agent.io.MOInput) and save(org.snmp4j.agent.io.MOOutput) should not be
called through a persistent storage operation and false
if these method should be called.Copyright © 2020 SNMP4J.org. All rights reserved.