|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.mibs.MibModule
com.adventnet.snmp.mibs.JdbcMibModule
class JdbcMibModule
| Nested Class Summary |
|---|
| Nested classes/interfaces 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 | |
|---|---|
JdbcMibModule()
|
|
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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()
MibModuleThe 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
getName in class MibModuleMibModule.toString()public java.lang.String toString()
MibModule
toString in class MibModuleMibModule.getName()public MibNode getRootNode()
MibModule
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.
getRootNode in class MibModuleMibModule.getRootNodes()public java.util.Vector getRootNodes()
MibModule
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.
getRootNodes in class MibModuleMibModule.getRootNode()public java.util.Enumeration getDefinedTraps()
MibModule
getDefinedTraps in class MibModuleMibModule.getMibTrap(java.lang.String)public MibTrap getMibTrap(java.lang.String name)
MibModule
getMibTrap in class MibModulename - the name of the trap
MibOperations.getMibTrap(com.adventnet.snmp.snmp2.SnmpOID, int, int)public java.util.Enumeration getDefinedNodes()
MibModule
getDefinedNodes in class MibModulepublic java.lang.String getFilename()
getFilename in class MibModuleMibModule.getFileName()public java.lang.String getFileName()
MibModule
getFileName in class MibModulepublic java.lang.String translateToNames(java.lang.String oid)
MibModule
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"
translateToNames in class MibModuleoid - numbered OID string(e.g. .1.3.6.1.2.1.1.3.0)
public java.lang.String translateToNumbers(java.lang.String oid)
MibModule
translateToNumbers in class MibModuleoid - OID String( e.g. .iso.org.dod)
public MibNode getMibNodeByName(java.lang.String nodeLabel)
MibModule
getMibNodeByName in class MibModulenodeLabel - the name of the node
public MibNode getMibNode(java.lang.String oid)
MibModule
getMibNode in class MibModuleoid - String OID
MibNode getMibnode(java.lang.String oid)
public LeafSyntax getLeafSyntax(SnmpOID oid)
MibModule
getLeafSyntax in class MibModuleoid - the SnmpOID instance of the node
public MibNode getMibNode(SnmpOID oid)
MibModule
getMibNode in class MibModuleoid - an instance of SnmpOID
MibNode getMibNode(SnmpOID oid,
boolean flag)
public MibNode getMibNode(java.util.Vector oid)
MibModule
getMibNode in class MibModuleoid - Vector of Strings OID
public MibNode getMibNode(int[] oid)
MibModule
getMibNode in class MibModuleoid - Integer array of the OID
public MibNode getNearestNode(int[] oid)
MibModule
getNearestNode in class MibModuleoid - Integer array of the OID
MibNode getnearestnode(SnmpOID oid)
public SnmpOID getSnmpOID(java.lang.String s)
MibModule
getSnmpOID in class MibModules - String OID(e.g. .1.3.6 or .iso.org.dod)
public java.util.Enumeration getDefinedTCs()
MibModule
getDefinedTCs in class MibModuleMibModule.getMibTC(java.lang.String)public MibTC getMibTC(java.lang.String name)
MibModule
getMibTC in class MibModulename - 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()
MibModule
getImports in class MibModulepublic MibNode getAgentCapabilities()
MibModule
getAgentCapabilities in class MibModulepublic java.util.Enumeration getDefinedAgentCapabilities()
MibModule
getDefinedAgentCapabilities in class MibModulepublic AgentCapabilities getAgentCapabilities(java.lang.String acName)
MibModule
getAgentCapabilities in class MibModulepublic java.util.Enumeration getDefinedModuleCompliances()
MibModule
getDefinedModuleCompliances in class MibModulepublic ModuleCompliance getModuleCompliance(java.lang.String mcName)
MibModule
getModuleCompliance in class MibModulepublic java.util.Enumeration getDefinedNotifications()
MibModule
getDefinedNotifications in class MibModuleMibModule.getMibNotification(java.lang.String)public MibNode getMibNotification(java.lang.String name)
MibModule
getMibNotification in class MibModulename - label of the node whose macro-type is NOTIFICATION-TYPE
public boolean getMibVersion()
MibModuleIf the MibModule contains any one of the following Macro constructs, this module will be treated as an SMIv2 MIB.
getMibVersion in class MibModulepublic MibNode getModuleIdentity()
MibModule
getModuleIdentity in class MibModulejava.lang.String getImportsString()
public java.lang.String getImportedModules()
MibModule
getImportedModules in class MibModuleMibModule.getImports()public java.util.Enumeration getDefinedNotificationTypes()
MibModule
getDefinedNotificationTypes in class MibModuleMibModule.getNotificationType(java.lang.String),
MibModule.getDefinedNotifications()public NotificationType getNotificationType(java.lang.String name)
MibModule
getNotificationType in class MibModulename - label of the node whose macro-type is NOTIFICATION-TYPE
MibModule.getMibNotification(java.lang.String)public java.util.Enumeration getDefinedNotificationGroups()
MibModule
getDefinedNotificationGroups in class MibModuleMibModule.getNotificationGroup(java.lang.String)public NotificationGroup getNotificationGroup(java.lang.String name)
MibModule
getNotificationGroup in class MibModulename - label of the node whose macro-type is NOTIFICATION-GROUP
public java.util.Enumeration getDefinedObjectGroups()
MibModule
getDefinedObjectGroups in class MibModuleMibModule.getObjectGroup(java.lang.String)public ObjectGroup getObjectGroup(java.lang.String name)
MibModule
getObjectGroup in class MibModulename - label of the node whose macro-type is OBJECT-GROUP
public ModuleIdentity getMibModuleIdentity()
MibModule
getMibModuleIdentity in class MibModuleboolean isDigit(java.lang.String oid)
isDigit in class MibModule
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||