|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jaw.snmp.manager.MibStore
This class maintains a database of management information base (MIB) variables. Each entry in database contains a name, a dot-separated OID string, and the corresponding SMI type of the variable. A name can be resolved against the database. If the variable is not found an exception is raised.
Constructor Summary | |
MibStore()
Default constructor. |
Method Summary | |
static void |
addMib(MibStoreIfSrv aStore)
This method loads all of the MIB entries of object which supports the MibStoreIfSrv . |
SnmpOid |
getSysUpTimeOid()
Gets the object identifier corresponding to SysUpTimeOid as defined in MIBII. |
SnmpOid |
getSysUpTimeOid0()
Gets the object identifier corresponding to SysUpTimeOid variable instance. |
static void |
loadMib(java.lang.String[][] mibs)
Loads a list of variables into the storage area, which is kept in memory. |
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 or the OID and returns the array. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public MibStore() throws SnmpStatusException
Method Detail |
public java.util.Vector mibElements()
Strings
. A MIB element contains
a name, a dot-separated OID String
, and the corresponding SMI type
of the variable.public java.lang.String[] resolveMibVariable(java.lang.String name) throws SnmpStatusException
name
- The name of the MIB variable.public static void loadMib(java.lang.String[][] mibs)
mibs
- The list of variables to load.public static void addMib(MibStoreIfSrv aStore) throws SnmpStatusException
MibStoreIfSrv
.
If there are any MIB variables which have the same name as previous
loaded variables the previously loaded variables will be overwritten.aStore
- The MibStoreIfSrv
.public java.lang.String mapTypeToName(int type)
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
type
- The type.String
representation of the type.
public int mapNameToType(java.lang.String s)
MibStoreIfSrv
).s
- The code name of a type.public SnmpOid getSysUpTimeOid() throws SnmpStatusException
SysUpTimeOid
as defined in MIBII.SysUpTimeOid
is not definied in the repository.getSysUpTimeOid0()
public SnmpOid getSysUpTimeOid0() throws SnmpStatusException
SysUpTimeOid
variable instance.SysUpTimeOid
is not definied in the repository.getSysUpTimeOid()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |