|
JASMI API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RepositoryListener
The RepositoryListener interface is implemented by classes that provide input and output streams to read and write MIB modules from/to persistent storage. By default JASMI is using a dedicated directory to store compiled MIB modules. By implementing this interface and adding the listener to the SMIRepository instance, one can change the default behavior to use customer provided input and output streams.
| Method Summary | |
|---|---|
void |
deleteModule(RepositoryEvent event)
Requests deletion of the MIB module identified by the module name supplied with the RepositoryEvent object. |
java.lang.String[] |
listModuleNames()
Enumerates the available MIB module names in the repository. |
void |
readModule(RepositoryEvent event)
Requests to read a MIB module with the name specified in the supplied event object. |
void |
writeModule(RepositoryEvent event)
Requests to write a MIB module with the name specified in the supplied event object. |
| Method Detail |
|---|
void writeModule(RepositoryEvent event)
OutputStream
member of the supplied event object.
event - a RepositoryEvent with the module name of the MIB module
that should be written to persistent storage. The implementor of this
interface should set the OutputStream of event.void readModule(RepositoryEvent event)
InputStream
member of the supplied event object.
event - a RepositoryEvent with the module name of the MIB module
that should be read from persistent storage. The implementor of this
interface should set the InputStream of event.void deleteModule(RepositoryEvent event)
RepositoryEvent object.
event - a RepositoryEvent 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.java.lang.String[] listModuleNames()
null if that method is not
supported by the listener.
|
JASMI API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||