|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.snmp.mibs.MibModule
|
+--com.adventnet.snmp.mibs.JdbcMibModule
| Inner classes inherited from class com.adventnet.snmp.mibs.MibModule |
MibModule.ImportOid,
MibModule.ImportsClass |
| Field Summary | |
(package private) JdbcMibOperations |
jMibOps
|
(package private) java.lang.String |
moduleName
|
(package private) java.lang.String |
queryString
|
(package private) java.sql.ResultSet |
rs
|
(package private) java.sql.ResultSet |
rs1
|
(package private) java.lang.String |
tableName
|
| Fields inherited from class com.adventnet.snmp.mibs.MibModule |
agentCapabilitiesNode,
agentCapVect,
augList,
descInp,
filename,
importedModules,
imports,
importsString,
importsVector,
impVect,
inp,
isVersion2Mib,
mibModules,
mibOps,
modComList,
moduleCompliance,
moduleComps,
moduleIdentity,
moduleIdentityList,
name,
nodeList,
nonDefnStdTCs,
notificationGroupList,
notificationList,
notificationTypeList,
objectGroupList,
oidVector,
preModuleComments,
root,
rootNodes,
seqList,
stc,
tcList,
trapList,
unResolvedNodes,
unResolvedTCList,
vectorOID |
| Fields inherited from interface com.adventnet.snmp.mibs.mibparser.MIBConstants |
ACCESS_ACCESSIBLE_FOR_NOTIFY,
ACCESS_NOT_ACCESSIBLE,
ACCESS_NOT_IMPLEMENTED,
ACCESS_READ_CREATE,
ACCESS_READ_ONLY,
ACCESS_READ_WRITE,
ACCESS_WRITE_ONLY,
accessStr,
AGENT_CAPABILITIES,
alphaStr,
BITSTRING,
COUNTER,
COUNTER32,
COUNTER64,
GAUGE,
GAUGE32,
INTEGER,
INTEGER32,
IPADDRESS,
macroStr,
MODULE_COMPLIANCE,
MODULE_IDENTITY,
NETWORKADDRESS,
NOTIFICATION_GROUP,
NOTIFICATION_TYPE,
NULL,
numericStr,
OBJECT_GROUP,
OBJECT_IDENTIFIER,
OBJECT_IDENTITY,
OBJECT_TYPE,
OCTETSTRING,
OPAQUE,
SEQUENCE,
STATUS_CURRENT,
STATUS_DEPRECATED,
STATUS_MANDATORY,
STATUS_OBSOLETE,
STATUS_OPTIONAL,
statusStr,
TEXTUAL_CONVENTION,
TIMETICKS,
TRAP_TYPE,
UNSIGNED32 |
| Constructor Summary | |
(package private) |
JdbcMibModule()
|
(package private) |
JdbcMibModule(java.lang.String name,
JdbcMibOperations jdbcMibOps)
|
| Method Summary | |
MibNode |
getAgentCapabilities()
Gets the node corresponding to AgentCapabilities for this module. |
AgentCapabilities |
getAgentCapabilities(java.lang.String acName)
Returns the AgentCapabilities object present in this module. |
java.util.Enumeration |
getDefinedAgentCapabilities()
Returns the Enumeration of AgentCapabilities present in this module. |
java.util.Enumeration |
getDefinedModuleCompliances()
Returns the ModuleCompliances present in this module. |
java.util.Enumeration |
getDefinedNodes()
Gets all the nodes defined in this module using this method. |
java.util.Enumeration |
getDefinedNotificationGroups()
Gets all the NotificationGroup objects defined in this module. |
java.util.Enumeration |
getDefinedNotifications()
Gets all the NOTIFICATION-TYPE objects defined in this module. |
java.util.Enumeration |
getDefinedNotificationTypes()
Gets all the NotificationType objects defined in this module. |
java.util.Enumeration |
getDefinedObjectGroups()
Gets all the ObjectGroup objects defined in this module. |
java.util.Enumeration |
getDefinedTCs()
Gets all the TEXTUAL-CONVENTIONS defined in this module. |
java.util.Enumeration |
getDefinedTraps()
Gets all the TRAP-TYPE objects defined in this MIB module. |
java.lang.String |
getFilename()
|
java.lang.String |
getFileName()
Gets the filename of this module. |
java.lang.String |
getImportedModules()
Gets the names of the modules imported by this module. |
java.util.Hashtable |
getImports()
Gets the imported elements in the MIB. |
(package private) java.lang.String |
getImportsString()
|
(package private) java.lang.String |
getinstance(java.lang.String s)
|
(package private) java.lang.String |
getInstance(java.lang.String s,
java.lang.String oidList)
|
LeafSyntax |
getLeafSyntax(SnmpOID oid)
Gets the syntax of the node corresponding to this oid. |
ModuleIdentity |
getMibModuleIdentity()
Gets the ModuleIdentity object for the given name. |
MibNode |
getMibNode(int[] oid)
Gets the MibNode corresponding to the int array of OID. |
MibNode |
getMibNode(SnmpOID oid)
Gets the MibNode corresponding to the SnmpOID argument |
(package private) MibNode |
getMibNode(SnmpOID oid,
boolean flag)
|
(package private) MibNode |
getMibnode(java.lang.String oid)
|
MibNode |
getMibNode(java.lang.String oid)
Gets the MibNode corresponding to the String OID argument. |
MibNode |
getMibNode(java.util.Vector oid)
Gets the MibNode per the Vector of Strings OID argument. |
MibNode |
getMibNodeByName(java.lang.String nodeLabel)
Gives the MibNode corresponding to the specified nodeLabel |
MibNode |
getMibNotification(java.lang.String name)
Gets the NOTIFICATION-TYPE object corresponding to the given name. |
MibTC |
getMibTC(java.lang.String name)
Gets the TEXTUAL-CONVENTION corresponding to the given name. |
MibTrap |
getMibTrap(java.lang.String name)
Used to get the MibTrap object by giving the trap name. Using the MibTrap object, the trap informations such as the enterprise, trap number etc. |
boolean |
getMibVersion()
Used to know whether the loaded MIB module is an SMIv1 MIB (Structure of Management Information) or SMIv2 MIB. |
ModuleCompliance |
getModuleCompliance(java.lang.String mcName)
Returns the ModuleComplience object corresponding to the given name. |
MibNode |
getModuleIdentity()
Gives the MODULE-IDENTITY node defined in the MIB. |
java.lang.String |
getName()
Gets the name of this MIB module. |
MibNode |
getNearestNode(int[] oid)
Gets the Nearest MibNode corresponding to the int array of OID. |
(package private) MibNode |
getnearestnode(SnmpOID oid)
|
(package private) java.lang.String |
getNodeName(java.lang.String moduleName,
java.lang.String oid)
|
NotificationGroup |
getNotificationGroup(java.lang.String name)
Gets the NotificationGroup object for the given name. |
NotificationType |
getNotificationType(java.lang.String name)
Gets the NotificationType object for the given name. |
ObjectGroup |
getObjectGroup(java.lang.String name)
Gets the ObjectGroup object for the given name. |
MibNode |
getRootNode()
Gets a reference to the root node in this MIB module. |
java.util.Vector |
getRootNodes()
Returns a collection of root nodes. |
(package private) java.util.Vector |
getRootNodeVect(java.util.Vector vect)
|
SnmpOID |
getSnmpOID(java.lang.String s)
Creates an SnmpOID instance from the specified string and information from this Module. |
(package private) boolean |
isDigit(java.lang.String oid)
|
java.lang.String |
toString()
Returns the name of this MibModule. |
java.lang.String |
translateToNames(java.lang.String oid)
Used for translating numbered OID String to named OID String. |
java.lang.String |
translateToNumbers(java.lang.String oid)
Used for translating named OID String to numbered OID String. |
| Methods inherited from class com.adventnet.snmp.mibs.MibModule |
byteToInt,
debugPrint,
getAccess,
getAccessStr,
getCurrentRoot,
getModComTable,
getModIdenTable,
getNonDefinedStdTC,
getNotiGrpTable,
getNotiTypeTable,
getObjGrpTable,
getPreModuleComments,
getStatus,
getSyntaxType,
isBaseNode,
isResolved,
performResolution,
printOctets,
readFile,
readFromHashtables,
readImportedOid,
readImportedTC,
readNextDesc,
readSequence,
readSequences,
readStdTCs,
readTCs,
readTraps,
removeChildren,
removeModuleComplianceSyntax,
skipToEol,
update,
upDateRootsChildren |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
java.lang.String moduleName
java.lang.String queryString
java.lang.String tableName
java.sql.ResultSet rs
java.sql.ResultSet rs1
JdbcMibOperations jMibOps
| Constructor Detail |
JdbcMibModule()
JdbcMibModule(java.lang.String name,
JdbcMibOperations jdbcMibOps)
| Method Detail |
public java.lang.String getName()
The module name begins with an upper-case letter and continues with zero or more letters, digits, or hyphens, except that a hyphen can not be the last character, nor can there be two consecutive hyphens. For example, RFC1213-MIB
MibModule.toString()public java.lang.String toString()
MibModule.getName()public MibNode getRootNode()
This method will create a root node by getting the common ancestor node
of all the nodes present in this module.
If a module has more than one root node this method will return null.
In that case the method getRootNodes() can be used which retuns all
the root nodes.
MibModule.getRootNodes()public java.util.Vector getRootNodes()
In case of a module containing a single root node, both
the methods getRootNode() and getRootNodes() will return
the root node.
In case of module containing more than one root nodes like
iso and ccitt, the getRootNode() will return null and the
getRootNodes() will return a collection of root nodes.
MibModule.getRootNode()public java.util.Enumeration getDefinedTraps()
MibModule.getMibTrap(java.lang.String)public MibTrap getMibTrap(java.lang.String name)
name - the name of the trapMibOperations.getMibTrap(com.adventnet.snmp.snmp2.SnmpOID, int, int)public java.util.Enumeration getDefinedNodes()
public java.lang.String getFilename()
MibModule.getFileName()public java.lang.String getFileName()
public java.lang.String translateToNames(java.lang.String oid)
for example, if the input argument is 1.3.0, then this method
will return ".iso.org.dod.internet.mgmt.mib-2.system.sysUpTime.0"
oid - numbered OID string(e.g. .1.3.6.1.2.1.1.3.0)public java.lang.String translateToNumbers(java.lang.String oid)
oid - OID String( e.g. .iso.org.dod)public MibNode getMibNodeByName(java.lang.String nodeLabel)
nodeLabel - the name of the nodepublic MibNode getMibNode(java.lang.String oid)
oid - String OIDMibNode getMibnode(java.lang.String oid)
public LeafSyntax getLeafSyntax(SnmpOID oid)
oid - the SnmpOID instance of the nodepublic MibNode getMibNode(SnmpOID oid)
oid - an instance of SnmpOID
MibNode getMibNode(SnmpOID oid,
boolean flag)
public MibNode getMibNode(java.util.Vector oid)
oid - Vector of Strings OIDpublic MibNode getMibNode(int[] oid)
oid - Integer array of the OIDpublic MibNode getNearestNode(int[] oid)
oid - Integer array of the OIDMibNode getnearestnode(SnmpOID oid)
public SnmpOID getSnmpOID(java.lang.String s)
s - String OID(e.g. .1.3.6 or .iso.org.dod)public java.util.Enumeration getDefinedTCs()
MibModule.getMibTC(java.lang.String)public MibTC getMibTC(java.lang.String name)
name - the label of the TEXTUAL-CONVENTION
java.lang.String getInstance(java.lang.String s,
java.lang.String oidList)
java.lang.String getNodeName(java.lang.String moduleName,
java.lang.String oid)
java.util.Vector getRootNodeVect(java.util.Vector vect)
java.lang.String getinstance(java.lang.String s)
public java.util.Hashtable getImports()
public MibNode getAgentCapabilities()
public java.util.Enumeration getDefinedAgentCapabilities()
public AgentCapabilities getAgentCapabilities(java.lang.String acName)
public java.util.Enumeration getDefinedModuleCompliances()
public ModuleCompliance getModuleCompliance(java.lang.String mcName)
public java.util.Enumeration getDefinedNotifications()
MibModule.getMibNotification(java.lang.String)public MibNode getMibNotification(java.lang.String name)
name - label of the node whose macro-type is NOTIFICATION-TYPEpublic boolean getMibVersion()
If the MibModule contains any one of the following Macro constructs, this module will be treated as an SMIv2 MIB.
public MibNode getModuleIdentity()
java.lang.String getImportsString()
public java.lang.String getImportedModules()
MibModule.getImports()public java.util.Enumeration getDefinedNotificationTypes()
MibModule.getNotificationType(java.lang.String),
MibModule.getDefinedNotifications()public NotificationType getNotificationType(java.lang.String name)
name - label of the node whose macro-type is NOTIFICATION-TYPEMibModule.getMibNotification(java.lang.String)public java.util.Enumeration getDefinedNotificationGroups()
MibModule.getNotificationGroup(java.lang.String)public NotificationGroup getNotificationGroup(java.lang.String name)
name - label of the node whose macro-type is NOTIFICATION-GROUPpublic java.util.Enumeration getDefinedObjectGroups()
MibModule.getObjectGroup(java.lang.String)public ObjectGroup getObjectGroup(java.lang.String name)
name - label of the node whose macro-type is OBJECT-GROUPpublic ModuleIdentity getMibModuleIdentity()
name - label of the node whose macro-type is MODULE-IDENTITYboolean isDigit(java.lang.String oid)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||