|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.mibs.MibOperations
com.adventnet.snmp.mibs.JdbcMibOperations
class JdbcMibOperations
| Field Summary | |
|---|---|
(package private) java.util.Hashtable |
accessTable
|
(package private) java.util.Vector |
allMods
|
(package private) java.util.Hashtable |
allModules
|
(package private) java.util.Hashtable |
cache
|
(package private) java.sql.Connection |
con
|
(package private) java.util.Hashtable |
enumTable
|
(package private) java.util.Hashtable |
equivNameTable
|
(package private) java.util.Vector |
fileNameVector
|
(package private) java.lang.String |
importedModules
|
(package private) java.util.Hashtable |
macroTable
|
(package private) int |
maxConnection
|
(package private) MibOperations |
mibOps
|
(package private) java.lang.String |
moduleName
|
(package private) boolean |
moduleNotExist
|
(package private) java.util.Vector |
moduleVector
|
(package private) java.lang.String |
multipleRevision
|
(package private) java.lang.String[] |
OIDTable
|
(package private) java.lang.String |
queryString
|
(package private) java.util.Hashtable |
rangeTable
|
(package private) java.util.Vector |
revisionModuleNames
|
(package private) java.sql.ResultSet |
rs
|
(package private) SASClient |
sas
|
(package private) java.util.Vector |
sequenceObjectNames
|
(package private) java.util.Vector |
sequenceSyntaxNames
|
(package private) java.util.Hashtable |
stdNode
|
(package private) java.util.Hashtable |
stdNodeOID
|
(package private) java.sql.Statement |
stmt
|
(package private) java.util.Vector |
stmts
|
(package private) java.util.Hashtable |
tableHash
|
(package private) java.util.Vector |
tempModuleVector
|
(package private) java.util.Hashtable |
typeHashtable
|
| 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 | |
|---|---|
JdbcMibOperations(MibOperations mibOps)
|
|
JdbcMibOperations(java.lang.String driverName,
java.lang.String URL,
java.lang.String userName,
java.lang.String passWord,
MibOperations mibOperation)
|
|
| Method Summary | |
|---|---|
(package private) boolean |
allModulesResolved(java.lang.String moduleName)
|
(package private) boolean |
checkRootNode(java.lang.String rootNodeName)
|
(package private) void |
deleteMultipleModule()
|
(package private) void |
dropTables(java.lang.String moduleNames)
|
(package private) java.sql.ResultSet |
executeQuery(java.lang.String queryString)
|
(package private) void |
executeUpdate(java.lang.String queryString)
|
(package private) void |
getAllDependents(java.lang.String moduleName)
|
(package private) java.sql.Connection |
getConnection()
|
(package private) java.util.Vector |
getDependentFileNames(java.lang.String moduleName)
|
(package private) java.util.Hashtable |
getEntryTable(java.lang.String moduleName)
|
MibModule |
getMibModule(JdbcMibNode node)
|
MibModule |
getMibModule(java.lang.String name)
Gets the MIB Module from list of already loaded MIBs. |
java.util.Enumeration |
getMibModuleNames()
Gets the names of the Mib modules loaded. |
java.util.Enumeration |
getMibModules()
Gets all the MIB modules loaded in this MibOperations instance. |
MibNode |
getMibNode(SnmpOID oid)
Gets the MibNode for this SnmpOID instance by searching all the MIB modules. |
MibNode |
getMibNode(java.lang.String nodeLabel)
Gets the node corresponding to this label. |
MibNode |
getMibNode(java.lang.String nodeLabel,
java.lang.String mib)
Gets the node correspoding to the label in this mib. |
MibNode |
getMibNode(java.util.Vector oid)
Gives the MibNode per the Vector of Strings OID argument. |
MibTrap |
getMibTrap(SnmpOID enterprise,
int genericType,
int specificType)
Gets the trap definition matching the given enterprise, generic type and specific type values. |
int |
getModuleSize()
Returns the number of modules loaded in this MibOperations instance. |
java.lang.String |
getMultipleRevision()
Gets the multiple revisions availabe for the MIB. |
(package private) java.util.Vector |
getMultipleRevisionModuleNames()
|
MibNode |
getNearestNode(SnmpOID oid)
Gets the node corresponding to the oid which is nearest to this SnmpOID instance. |
java.util.Vector |
getNodesFromNames(java.util.Vector nodes)
Gets the MibNodes corresponding to the names in the Vector. |
java.util.Vector |
getNodesFromString(java.lang.String nodeList)
Gets the MibNodes corresponding to the node names in the nodelist. |
NotificationType |
getNotificationType(SnmpOID oid)
Gets the NotificationType object of the given trap oid |
(package private) void |
getRevisionModule(java.lang.String moduleName)
|
(package private) void |
getSequenceNameAndType(java.lang.String sequenceName,
java.lang.String moduleName)
|
(package private) java.util.Vector |
getSequenceObjectNames()
|
(package private) java.util.Vector |
getSequenceSyntaxNames()
|
SnmpOID |
getSnmpOID(java.lang.String s)
Creates an SnmpOID instance based on the loaded MIBs. |
LeafSyntax |
getSyntaxByName(java.lang.String name)
Gets the syntax for the node represented by the String argument. |
(package private) java.lang.String |
getTableName(java.lang.String moduleName)
|
(package private) void |
initializeStdNodes()
|
(package private) boolean |
isExist(java.lang.String modName)
|
(package private) boolean |
isExists(java.lang.String query)
|
(package private) boolean |
isNeededToImport(java.lang.String modulename)
|
(package private) boolean |
isResolved(java.lang.String moduleName)
|
void |
loadJdbcMibModules(java.lang.String mibs)
|
(package private) java.sql.Statement |
maxConnection()
|
(package private) void |
put(java.lang.String moduleName,
java.lang.String fileName)
|
(package private) void |
resolveRootFromDependencyModule(java.lang.String rootNodename,
int count)
|
(package private) void |
resolveRootNodes(java.lang.String moduleName)
|
void |
setMultipleRevision(java.lang.String moduleName)
Sets the Multiple revision for the MIB. |
(package private) void |
setResolved(java.lang.String moduleName)
|
void |
unloadAllMibModules()
Unload all the loaded MibModules. |
boolean |
unloadMibModule(MibModule module)
Unloads the MibModule from the modules table. |
MibModule |
unloadMibModule(java.lang.String name)
Unloads the MibModule from the MibModules loaded in this instance. |
(package private) void |
updateImportOID(java.lang.String moduleName,
java.lang.String oidValue,
java.lang.String rootNodename)
|
(package private) void |
updateModuleRevisionName(java.lang.String moduleName,
java.lang.String modRevName)
|
(package private) void |
updateOID(java.lang.String moduleName,
java.lang.String val,
java.lang.String Count)
|
(package private) void |
updateOtherRootNodes(java.lang.String moduleName,
java.lang.String name)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
java.sql.Connection con
java.lang.String queryString
java.lang.String moduleName
java.sql.ResultSet rs
java.sql.Statement stmt
java.util.Vector moduleVector
java.util.Vector tempModuleVector
java.util.Vector fileNameVector
java.util.Vector revisionModuleNames
java.util.Vector sequenceObjectNames
java.util.Vector sequenceSyntaxNames
java.util.Hashtable allModules
java.util.Hashtable stdNode
java.util.Hashtable stdNodeOID
java.util.Hashtable macroTable
java.util.Hashtable typeHashtable
java.util.Hashtable accessTable
java.util.Hashtable enumTable
java.util.Hashtable rangeTable
java.util.Hashtable equivNameTable
java.lang.String[] OIDTable
java.util.Hashtable cache
java.util.Hashtable tableHash
SASClient sas
java.lang.String multipleRevision
java.lang.String importedModules
MibOperations mibOps
boolean moduleNotExist
int maxConnection
java.util.Vector stmts
java.util.Vector allMods
| Constructor Detail |
|---|
JdbcMibOperations(java.lang.String driverName,
java.lang.String URL,
java.lang.String userName,
java.lang.String passWord,
MibOperations mibOperation)
throws MibException
MibExceptionJdbcMibOperations(MibOperations mibOps)
| Method Detail |
|---|
public void loadJdbcMibModules(java.lang.String mibs)
throws MibException,
java.io.IOException,
java.io.FileNotFoundException
MibException
java.io.IOException
java.io.FileNotFoundExceptionpublic MibModule getMibModule(java.lang.String name)
MibOperations
getMibModule in class MibOperationsname - the MibModule name defined in the DEFINITIONS clause of the
MIB. The name is not identified by the filename of the MIB.
MibOperations.getMibModules()public java.util.Enumeration getMibModules()
MibOperations
getMibModules in class MibOperationsMibOperations.getMibModule(java.lang.String)
void resolveRootNodes(java.lang.String moduleName)
throws java.sql.SQLException
java.sql.SQLException
void resolveRootFromDependencyModule(java.lang.String rootNodename,
int count)
throws java.sql.SQLException
java.sql.SQLExceptionboolean checkRootNode(java.lang.String rootNodeName)
void updateImportOID(java.lang.String moduleName,
java.lang.String oidValue,
java.lang.String rootNodename)
void updateOID(java.lang.String moduleName,
java.lang.String val,
java.lang.String Count)
void setResolved(java.lang.String moduleName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic MibModule getMibModule(JdbcMibNode node)
public SnmpOID getSnmpOID(java.lang.String s)
MibOperations
getSnmpOID in class MibOperationss - String OID of the form .N.N.N..., or N.N.N..., in which case
the static Standard_Prefix in the SnmpAPI class is used.
N can be a number or a name.
public MibNode getMibNode(java.util.Vector oid)
MibOperations
getMibNode in class MibOperationsoid - Vector of String OIDs
public MibNode getMibNode(SnmpOID oid)
MibOperations
getMibNode in class MibOperationsoid - the SnmpOID instance
public MibNode getNearestNode(SnmpOID oid)
MibOperations
getNearestNode in class MibOperationsoid - the SnmpOID instance
public MibTrap getMibTrap(SnmpOID enterprise,
int genericType,
int specificType)
MibOperations
getMibTrap in class MibOperationsenterprise - the enterprise value of the trap-typegenericType - the integer valuespecificType - the integer value
public NotificationType getNotificationType(SnmpOID oid)
MibOperations
getNotificationType in class MibOperationspublic MibNode getMibNode(java.lang.String nodeLabel)
MibOperations
getMibNode in class MibOperationsnodeLabel - the name of the node
MibModule.getMibNode(String)
public MibNode getMibNode(java.lang.String nodeLabel,
java.lang.String mib)
MibOperations
getMibNode in class MibOperationsnodeLabel - the name of the MibNodemib - the MIB name in which the node is being searched.
public java.util.Vector getNodesFromNames(java.util.Vector nodes)
MibOperations
getNodesFromNames in class MibOperationsnodes - Vector of the node names.
public java.util.Vector getNodesFromString(java.lang.String nodeList)
MibOperations
getNodesFromString in class MibOperationsnodeList - list of the node names separated by space or comma.
public LeafSyntax getSyntaxByName(java.lang.String name)
MibOperations
getSyntaxByName in class MibOperationsname - the name of the syntax or TC
public int getModuleSize()
MibOperations
getModuleSize in class MibOperationspublic boolean unloadMibModule(MibModule module)
MibOperations
unloadMibModule in class MibOperationsmodule - the nstance of the MibModule to be unloaded.
public MibModule unloadMibModule(java.lang.String name)
MibOperations
unloadMibModule in class MibOperationsname - the name of the module to be unloaded.
public void unloadAllMibModules()
MibOperations
unloadAllMibModules in class MibOperationspublic java.util.Enumeration getMibModuleNames()
MibOperations
getMibModuleNames in class MibOperationsvoid initializeStdNodes()
boolean isExist(java.lang.String modName)
boolean isExists(java.lang.String query)
java.util.Vector getDependentFileNames(java.lang.String moduleName)
void getAllDependents(java.lang.String moduleName)
void updateOtherRootNodes(java.lang.String moduleName,
java.lang.String name)
void put(java.lang.String moduleName,
java.lang.String fileName)
java.lang.String getTableName(java.lang.String moduleName)
public void setMultipleRevision(java.lang.String moduleName)
MibOperations
setMultipleRevision in class MibOperationsmoduleName - the name of the files containing different Revisions of the MibModule.
The file names can be seperated by space or pipe(|) symbol.public java.lang.String getMultipleRevision()
MibOperations
getMultipleRevision in class MibOperationsboolean allModulesResolved(java.lang.String moduleName)
void deleteMultipleModule()
void getRevisionModule(java.lang.String moduleName)
void updateModuleRevisionName(java.lang.String moduleName,
java.lang.String modRevName)
boolean isResolved(java.lang.String moduleName)
java.util.Vector getMultipleRevisionModuleNames()
getMultipleRevisionModuleNames in class MibOperations
java.sql.ResultSet executeQuery(java.lang.String queryString)
throws java.sql.SQLException
java.sql.SQLException
void executeUpdate(java.lang.String queryString)
throws java.sql.SQLException
java.sql.SQLExceptionjava.sql.Statement maxConnection()
boolean isNeededToImport(java.lang.String modulename)
java.util.Hashtable getEntryTable(java.lang.String moduleName)
void getSequenceNameAndType(java.lang.String sequenceName,
java.lang.String moduleName)
java.util.Vector getSequenceObjectNames()
java.util.Vector getSequenceSyntaxNames()
void dropTables(java.lang.String moduleNames)
java.sql.Connection getConnection()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||