JASMI API

com.agentpp.smi.event
Interface ImportModuleListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
DumpObjectNames

public interface ImportModuleListener
extends java.util.EventListener

Interface for supportive objects that implement MIB module loading on demand rather than through a MIB repository.

Version:
1.5
Author:
Frank Fock

Method Summary
 java.lang.Integer createModuleID(java.lang.String moduleName)
          Create a unique module ID for a MIB module.
 void freeModuleID(java.lang.Integer moduleID, java.lang.String moduleName)
          Frees a module ID that is no longer used by the specified MIB module.
 void importModule(ImportModuleEvent e)
          Import a MIB module and return the objects defined in that module in the provided ImportModuleEvent object.
 

Method Detail

importModule

void importModule(ImportModuleEvent e)
Import a MIB module and return the objects defined in that module in the provided ImportModuleEvent object. A SMIRepositoryManager instance may be used to parse a file if needed. If the requested MIB module cannot be imported (i.e. it cannot be found in the underlying repository), then the objects member of the supplied event object has to set to null.

Parameters:
event - a ImportModuleEvent instance.

createModuleID

java.lang.Integer createModuleID(java.lang.String moduleName)
Create a unique module ID for a MIB module. This ID must be different from all other MIB modules used in the current context.

Returns:
an Integer.

freeModuleID

void freeModuleID(java.lang.Integer moduleID,
                  java.lang.String moduleName)
Frees a module ID that is no longer used by the specified MIB module.

Parameters:
moduleID - an Integer value.

JASMI API

JASMI 3
Copyright 2001-2010 Frank Fock
All Rights Reserved