Package org.snmp4j.agent.io
Class MOServerPersistence
java.lang.Object
org.snmp4j.agent.io.MOServerPersistence
The
MOServerPersistence
provides persistence operations
to load and save serialized MIB data.- Version:
- 1.4
- Author:
- Frank Fock
-
Constructor Summary
ConstructorDescriptionMOServerPersistence
(MOServer server) MOServerPersistence
(MOServer[] moServers) -
Method Summary
-
Constructor Details
-
MOServerPersistence
-
MOServerPersistence
-
-
Method Details
-
loadData
- Throws:
IOException
-
saveData
Saves the serializable data of the associated servers to the givenMOOutput
. This method can be called while the registrations of theMOServer
s are changed, becauseMOServer.iterator()
is synchronized and returns a copy tree of the registered objects.- Parameters:
output
- aMOOutput
instance to store the data.- Throws:
IOException
- if the output stream cannot be written.
-