|
JASMI API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.agentpp.smi.examples.DumpObjectTypes
public class DumpObjectTypes
This example shows how MIB module information from a MIB repository can be accessed. A MIB repository can be either a directory (default) or a ZIP/JAR file. This example shows also how custom MIB repository IO can be used to load MIB modules from ZIP or JAR files. Writing compiled MIB modules to ZIP and JAR files would also be possible but is not shown here.
| Constructor Summary | |
|---|---|
DumpObjectTypes(java.lang.String license,
java.lang.String licenseKey,
java.lang.String repositoryPath,
java.lang.String moduleName)
|
|
| 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. |
static void |
main(java.lang.String[] args)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DumpObjectTypes(java.lang.String license,
java.lang.String licenseKey,
java.lang.String repositoryPath,
java.lang.String moduleName)
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public void writeModule(RepositoryEvent event)
RepositoryListenerOutputStream
member of the supplied event object.
writeModule in interface RepositoryListenerevent - 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.public void deleteModule(RepositoryEvent event)
RepositoryListenerRepositoryEvent object.
deleteModule in interface RepositoryListenerevent - 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.public void readModule(RepositoryEvent event)
RepositoryListenerInputStream
member of the supplied event object.
readModule in interface RepositoryListenerevent - 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.public java.lang.String[] listModuleNames()
RepositoryListener
listModuleNames in interface RepositoryListenernull 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 | ||||||||