Package com.snmp4j.smi.util
Class MemRepositoryDriver
java.lang.Object
com.snmp4j.smi.util.MemRepositoryDriver
- All Implemented Interfaces:
RepositoryDriver
MemRepositoryDriver is a
RepositoryDriver which stores all MIB modules in memory.
Caution: This repository driver does not store the MIB modules persistently!- Author:
- Frank Fock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteModule(RepositoryIO event) Requests deletion of the MIB module identified by the module name supplied with theRepositoryIOobject.String[]Enumerates the available MIB module names in the repository.voidreadModule(RepositoryIO event) Requests to read a MIB module with the name specified in the supplied event object.voidwriteModule(RepositoryIO event) Requests to write a MIB module with the name specified in the supplied event object.
-
Constructor Details
-
MemRepositoryDriver
public MemRepositoryDriver()
-
-
Method Details
-
writeModule
Description copied from interface:RepositoryDriverRequests to write a MIB module with the name specified in the supplied event object. Implementations of this method should set theOutputStreammember of the supplied event object.- Specified by:
writeModulein interfaceRepositoryDriver- Parameters:
event- aRepositoryIOwith the module name of the MIB module that should be written to persistent storage. The implementation of this interface should set theOutputStreamofevent.
-
readModule
Description copied from interface:RepositoryDriverRequests to read a MIB module with the name specified in the supplied event object. Implementations of this method should set theInputStreammember of the supplied event object.- Specified by:
readModulein interfaceRepositoryDriver- Parameters:
event- aRepositoryIOwith the module name of the MIB module that should be read from persistent storage. The implementation of this interface should set theInputStreamofevent.
-
deleteModule
Description copied from interface:RepositoryDriverRequests deletion of the MIB module identified by the module name supplied with theRepositoryIOobject.- Specified by:
deleteModulein interfaceRepositoryDriver- Parameters:
event- aRepositoryIOwith 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.
-
listModuleNames
Description copied from interface:RepositoryDriverEnumerates the available MIB module names in the repository.- Specified by:
listModuleNamesin interfaceRepositoryDriver- Returns:
- a list of MIB module names or
nullif that method is not supported by the listener.
-