public class MOServerPersistence extends Object
MOServerPersistence provides persistence operations
to load and save serialized MIB data.| Constructor and Description |
|---|
MOServerPersistence(MOServer server) |
MOServerPersistence(MOServer[] moServers) |
| Modifier and Type | Method and Description |
|---|---|
void |
loadData(MOInput input) |
void |
saveData(MOOutput output)
Saves the serializable data of the associated servers to the given
MOOutput. |
public MOServerPersistence(MOServer server)
public MOServerPersistence(MOServer[] moServers)
public void loadData(MOInput input) throws IOException
IOExceptionpublic void saveData(MOOutput output) throws IOException
MOOutput. This method can be called while the registrations
of the MOServers are changed, because MOServer.iterator()
is synchronized and returns a copy tree of the registered objects.output - a MOOutput instance to store the data.IOException - if the output stream cannot be written.Copyright © 2020 SNMP4J.org. All rights reserved.