public class MemRepositoryDriver extends Object implements RepositoryDriver
RepositoryDriver which stores all MIB modules in memory.
Caution: This repository driver does not store the MIB modules persistently!| Constructor and Description |
|---|
MemRepositoryDriver() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteModule(RepositoryIO event)
Requests deletion of the MIB module identified by the module name supplied
with the
RepositoryIO object. |
String[] |
listModuleNames()
Enumerates the available MIB module names in the repository.
|
void |
readModule(RepositoryIO event)
Requests to read a MIB module with the name specified in the supplied
event object.
|
void |
writeModule(RepositoryIO event)
Requests to write a MIB module with the name specified in the supplied
event object.
|
public void writeModule(RepositoryIO event)
RepositoryDriverOutputStream
member of the supplied event object.writeModule in interface RepositoryDriverevent - a RepositoryIO with the module name of the MIB module
that should be written to persistent storage. The implementation of this
interface should set the OutputStream of event.public void readModule(RepositoryIO event)
RepositoryDriverInputStream
member of the supplied event object.readModule in interface RepositoryDriverevent - a RepositoryIO with the module name of the MIB module
that should be read from persistent storage. The implementation of this
interface should set the InputStream of event.public void deleteModule(RepositoryIO event)
RepositoryDriverRepositoryIO object.deleteModule in interface RepositoryDriverevent - a RepositoryIO with the module name of the MIB module
that should be removed from persistent MIB repository storage. If
a listener has successfully removed the module, it must set the
corresponding flag in the supplied event object.public String[] listModuleNames()
RepositoryDriverlistModuleNames in interface RepositoryDrivernull if that method is not
supported by the listener.Copyright © 2015 SNMP4J.com. All Rights Reserved.