All Packages Class Hierarchy This Package Previous Next Index
Interface com.sun.jaw.snmp.common.MibStoreIfSrv
- public interface MibStoreIfSrv
This interface defines the minimal MIB functionality needed by the other
SNMP classes.
-
mapNameToType(String)
- Returns the type code as defined in
SnmpDataTypeEnums
if it is given the code name of a type (as stored in a
MibStoreIfSrv).
-
mapTypeToName(int)
- Returns the string representation of a type if it is given the type code.
-
mibElements()
- Returns a list that can be used to traverse
the MIB database currently loaded in MIB store house.
-
resolveMibVariable(String)
- Searches for the variable and return the array containing information on the
variable.
resolveMibVariable
public abstract String[] resolveMibVariable(String name) throws SnmpStatusException
- Searches for the variable and return the array containing information on the
variable.
The array contains the following elements:
- variable name;
- object identifier of the variable;
- 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:
- "C" for Counter32;
- "C64" for Counter64;
- "EN" for Table Entry;
- "G" for Gauge32;
- "I" for Integer32;
- "IP" for IpAddress;
- "NU" for Null;
- "O" for Opaque;
- "OI" for Object Identifier;
- "S" for String
- "T" for TimeTicks;
- "TA" for Table;
- "U" for Unsigned32;
- Parameters:
- name - Name of the MIB variable.
- Returns:
- array of string containing parameters.
- Throws: SnmpStatusException
- if a variable is not found.
mapTypeToName
public abstract 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:
Integer32, Gauge32,
Counter32, Counter64,TimeTicks, String,
Object Identifier, Null, Opaque, Unsigned32,
IpAddress, Table Entry (if the variable corresponds to a table entry),
Table (if the variable corresponds to a table), Unknown.
mapNameToType
public abstract int mapNameToType(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.
mibElements
public abstract 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.
All Packages Class Hierarchy This Package Previous Next Index