com.sun.jaw.snmp.common
Interface MibStoreIfSrv

All Known Implementing Classes:
MibStore

public abstract interface MibStoreIfSrv

This interface defines the minimal MIB functionality needed by the other SNMP classes.


Method Summary
 int mapNameToType(java.lang.String s)
          Returns the type code as defined in SnmpDataTypeEnums if it is given the code name of a type (as stored in a MibStoreIfSrv).
 java.lang.String mapTypeToName(int type)
          Returns the string representation of a type if it is given the type code.
 java.util.Vector mibElements()
          Returns a list that can be used to traverse the MIB database currently loaded in MIB store house.
 java.lang.String[] resolveMibVariable(java.lang.String name)
          Searches for the variable and return the array containing information on the variable.
 

Method Detail

resolveMibVariable

public java.lang.String[] resolveMibVariable(java.lang.String name)
                                      throws SnmpStatusException
Searches for the variable and return the array containing information on the variable. The array contains the following elements:
  1. variable name;
  2. object identifier of the variable;
  3. type of the variable.
The object identifier is represented using a dot notation (i.e 1.2.3.4).
The type is represented using one of the following:
Parameters:
name - The name of the MIB variable.
Returns:
The array of string containing parameters.
Throws:
SnmpStatusException - If a variable is not found.

mapTypeToName

public java.lang.String mapTypeToName(int type)
Returns the string representation of a type if it is given the type code.

The names returned can be one of:

Parameters:
type - The type.
Returns:
The string representation of the type.

mapNameToType

public int mapNameToType(java.lang.String s)
Returns the type code as defined in SnmpDataTypeEnums if it is given the code name of a type (as stored in a MibStoreIfSrv).
Parameters:
s - The code name of a type.
Returns:
The type code.

mibElements

public java.util.Vector mibElements()
Returns a list that can be used to traverse the MIB database currently loaded in MIB store house.
Returns:
Vector for the MIB elements. A MIB element is an array of Strings. A MIB element contains a name, a dot-separated OID String, and the corresponding SMI type of the variable.