com.adventnet.snmp.mibs
Class BasicAgentMibOperations

java.lang.Object
  |
  +--com.adventnet.snmp.mibs.MibOperations
        |
        +--com.adventnet.snmp.mibs.BasicAgentMibOperations
Direct Known Subclasses:
AgentMibOperations

public synchronized class BasicAgentMibOperations
extends MibOperations

See Also:
Serialized Form

Field Summary
(package private)  int a
           
 boolean discardComments
           
(package private)  boolean isRuntime
           
(package private)  MibModule module
           
(package private)  java.util.Vector moduleNameVector
           
(package private)  java.util.Hashtable moduleNodeVecHash
           
(package private)  java.util.Hashtable nodeDataHash
           
(package private)  java.util.Vector nodes
           
(package private)  java.lang.StringBuffer strbuff
           
 
Fields inherited from class com.adventnet.snmp.mibs.MibOperations
ALL_MESSAGES, allowedLevel, applet, calledFromMibModule, canSerialize, cdsFile, cdsFileName, checks, cmiFile, collectedModules, CRITICAL, CRITICAL_MESSAGES, database, dbType, displayHintFlag, endsWithCMI, entryTable, equivName, errAugNotEntryTable, errDiffSizeTable, errDispHintTable, errImpliedTable, errInAppDefvalTable, errIndexTable, errMsg, errNamesTable, errOctetStrSizeTable, errRecrAugEntryTable, errTrapNumTable, extensionName, extensionNames, extFlag, genericTcList, globalImports, impModVect, importsParsingLevel, indxNode, isDescRead, isLoadedFromApplURL, jdbc, jMibOps, justParse, LENIENT, loadDirect, loadedFromJar, loadedModules, loadFromSerializedMibs, loggingFlag, mibFileDir, mibFileName, mibParserConstants, modNameDefnTable, moduleDefinition, moduleFileNameMatch, moduleNameVector, moduleParsed, modules, multipleRevision, multipleRevisionModuleNames, MYSQL, NORMAL, oidNums, ORACLE, overWrite, overWriteCMI, overWriteDataBase, overWriteSer, parsingLevel, readerVer, removedChecks, resolver, revisionFileNames, revisionString, searchPath, searchPathDir, serializedFileName, serializeMibs, SERIOUS, SERIOUS_MESSAGES, sfName, showImportedIndex, standardNodes, starters, stmt, syntax, throwFileNotFound, toBytes, userLabel, WARNING_MESSAGES
 
Constructor Summary
BasicAgentMibOperations()
           
 
Method Summary
(package private)  java.lang.String addTabs(int)
           
 BasicAgentMibNode addToModule(MibModule, java.lang.String, java.lang.String, BasicAgentMibNode)
           
(package private)  java.lang.String alignText(java.lang.String, int)
           
 void appendToImports(MibModule, java.lang.String)
           
 BasicAgentMibNode createBasicAgentMibNode(MibNode)
           
 void deleteChildren(MibNode, MibModule)
           
 boolean deleteNode(BasicAgentMibNode, MibModule)
           
(package private)  void deleteTempFile()
           
static java.lang.String getAccessString(int)
           
 BasicAgentMibNode getBasicAgentMibNode(MibNode)
           
 BasicAgentMibNode getBasicAgentMibNode(SnmpOID)
           
 java.util.Vector getDefinedNodesFor(MibModule)
           
 java.lang.String getImportString(MibModule)
           
 java.lang.String getModuleForSyntaxName(java.lang.String)
           
 java.lang.String getNodeFileString(BasicAgentMibNode, int)
           
 java.lang.String getNodeFileString(BasicAgentMibNode, int, boolean)
           
 java.util.Hashtable getNodeListOf(MibModule)
           
 java.lang.String getPreModuleComments(MibModule)
           
 boolean getRunTime()
           
(package private) static java.lang.String getSubClauseComment(java.lang.String, MibNode)
           
 boolean isImportedNode(MibNode, MibModule)
           
 MibModule loadMibModule(java.lang.String)
          Load a MIB Module from this file.
(package private)  java.lang.StringBuffer makeStringLengthForty(java.lang.String)
           
 void setModuleFileName(MibModule, java.lang.String)
           
 void setModuleName(MibModule, java.lang.String)
           
 void setRunTime(boolean)
           
protected  void setUpBasicAgentMibNodeObjects()
           
 void unloadAllMibModules()
          Unload all the loaded MibModules.
 boolean unloadMibModule(MibModule)
          Unloads the MibModule from the modules table.
 MibModule unloadMibModule(java.lang.String)
          Unloads the MibModule from the MibModules loaded in this instance.
 java.lang.String wordWrap(java.lang.String, int, java.lang.String, char)
           
 
Methods inherited from class com.adventnet.snmp.mibs.MibOperations
addChecks, addLabel, changeModuleName, checkFileName, checkMultipleRevision, checkSequenceConstruct, createCompiledMibs, createVariableBinding, debugLogging, debugPrint, debugPrint, deregisterImport, enableDisplayHint, encodeInstanceString, findFile, findFileName, findFileNameFromSearchPath, getAugInfo, getAugInfo, getChecks, getDatabaseName, getErrorMessages, getErrorModuleNames, getErrorString, getexistingfilename, getExistingFileName, getFileName, getIgnoreSpecificControlCodes, getImportsParsingLevel, getInstanceString, getInstanceString, getLeafSyntax, getMibModule, getMibModule, getMibModuleNames, getMibModules, getMibNode, getMibNode, getMibNode, getMibNode, getMibPath, getMibTrap, getModuleFromGlobalImports, getmodulenamedefinition, getModuleNameDefinition, getModuleNameDefinition, getModuleNameDefinitions, getModuleSize, getMultipleRevision, getMultipleRevisionModuleNames, getNearestNode, getNodesFromNames, getNodesFromString, getNotificationType, getNumericOID, getOverwriteCMI, getParsingLevel, getRevisionModule, getRevisionModuleName, getSerializedMibFileName, getSnmpOID, getSnmpOid, getStarterNode, getStarterNode, getSyntaxByName, getThrowFileNotFound, initialiseEquivname, initialiseSyntaxes, initJdbcParams, isDBConnected, isDebugLog, isDisplayHintEnabled, isEndsWithCMI, isLoadFromCompiledMibs, isLoadFromDatabase, isLoadFromSerializedMibs, isMultipleRevision, isOverwriteCMI, isOverwriteDatabase, isOverwriteSerializedMibs, isPerformanceLog, isReadDesc, isSerializeMibs, isShowImportedIndex, isStarterNode, isVersionOk, loadFromClasspath, loadFromFile, loadFromJar, loadFromSerializedMibs, loadFromURL, loadImports, loadMibModule, loadMibModule, loadmibmodule, loadMibModules, loadMibModules, loadMibsDirectly, loadMibsFromCMI, loadModule, performanceLogging, printLogMessage, readInitialisers, readMibModuleName, registerImport, registerModule, registerParsingLevel, removeChecks, removeModules, resolveDefOID, resolveImports, revertBack, setDatabaseName, setDebug, setDebugMessageLevel, setFileName, setIgnoreSpecificControlCodes, setImportsParsingLevel, setLoadFromCompiledMibs, setLoadFromDatabase, setLoadFromSerializedMibs, setMibFileExtension, setMibPath, setMultipleRevision, setOverwriteCMI, setOverwriteDatabase, setOverwriteSerializedMibs, setParsingLevel, setReadDesc, setSerializedMibFileName, setSerializeMibs, setShowImportedIndex, setThrowFileNotFound, toByteString, toByteString, toByteString, toShortString, toString, toString, toString, toString, toString, toTagString, toVector, varBindsToString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

MibModule module

moduleNameVector

java.util.Vector moduleNameVector

moduleNodeVecHash

java.util.Hashtable moduleNodeVecHash

nodeDataHash

java.util.Hashtable nodeDataHash

isRuntime

boolean isRuntime

nodes

java.util.Vector nodes

discardComments

public boolean discardComments

strbuff

java.lang.StringBuffer strbuff

a

int a
Constructor Detail

BasicAgentMibOperations

public BasicAgentMibOperations()
Method Detail

setRunTime

public void setRunTime(boolean)

getRunTime

public boolean getRunTime()

loadMibModule

public MibModule loadMibModule(java.lang.String)
                        throws MibException,
                               java.io.IOException,
                               java.io.FileNotFoundException
Description copied from class: MibOperations
Load a MIB Module from this file.
Overrides:
loadMibModule in class MibOperations
Tags copied from class: MibOperations
Parameters:
fileName - the name of the mib file to be loaded.
Throws:
MibException - is thrown upon parse errors.
java.io.IOException - is thrown upon IO errors.
java.io.FileNotFoundException - is thrown if the file is not found.

setUpBasicAgentMibNodeObjects

protected void setUpBasicAgentMibNodeObjects()

getBasicAgentMibNode

public BasicAgentMibNode getBasicAgentMibNode(MibNode)

getBasicAgentMibNode

public BasicAgentMibNode getBasicAgentMibNode(SnmpOID)

getDefinedNodesFor

public java.util.Vector getDefinedNodesFor(MibModule)

unloadAllMibModules

public void unloadAllMibModules()
Description copied from class: MibOperations
Unload all the loaded MibModules.
Overrides:
unloadAllMibModules in class MibOperations

unloadMibModule

public boolean unloadMibModule(MibModule)
Description copied from class: MibOperations
Unloads the MibModule from the modules table.
Overrides:
unloadMibModule in class MibOperations
Tags copied from class: MibOperations
Parameters:
module - the nstance of the MibModule to be unloaded.
Returns:
true if module is unloaded, false otherwise.

unloadMibModule

public MibModule unloadMibModule(java.lang.String)
Description copied from class: MibOperations
Unloads the MibModule from the MibModules loaded in this instance.
Overrides:
unloadMibModule in class MibOperations
Tags copied from class: MibOperations
Parameters:
name - the name of the module to be unloaded.
Returns:
the MibModule instance, if the module is unloaded.

createBasicAgentMibNode

public BasicAgentMibNode createBasicAgentMibNode(MibNode)

addTabs

java.lang.String addTabs(int)

alignText

java.lang.String alignText(java.lang.String,
                           int)

makeStringLengthForty

java.lang.StringBuffer makeStringLengthForty(java.lang.String)

addToModule

public BasicAgentMibNode addToModule(MibModule,
                                     java.lang.String,
                                     java.lang.String,
                                     BasicAgentMibNode)
                              throws MibException,
                                     ParseException,
                                     java.io.IOException,
                                     java.io.FileNotFoundException

deleteTempFile

void deleteTempFile()

getImportString

public java.lang.String getImportString(MibModule)

getPreModuleComments

public java.lang.String getPreModuleComments(MibModule)

getNodeListOf

public java.util.Hashtable getNodeListOf(MibModule)

deleteNode

public boolean deleteNode(BasicAgentMibNode,
                          MibModule)

deleteChildren

public void deleteChildren(MibNode,
                           MibModule)

getNodeFileString

public java.lang.String getNodeFileString(BasicAgentMibNode,
                                          int)

getNodeFileString

public java.lang.String getNodeFileString(BasicAgentMibNode,
                                          int,
                                          boolean)

getSubClauseComment

static java.lang.String getSubClauseComment(java.lang.String,
                                            MibNode)

getAccessString

public static java.lang.String getAccessString(int)

isImportedNode

public boolean isImportedNode(MibNode,
                              MibModule)

appendToImports

public void appendToImports(MibModule,
                            java.lang.String)

getModuleForSyntaxName

public java.lang.String getModuleForSyntaxName(java.lang.String)

setModuleFileName

public void setModuleFileName(MibModule,
                              java.lang.String)

setModuleName

public void setModuleName(MibModule,
                          java.lang.String)

wordWrap

public java.lang.String wordWrap(java.lang.String,
                                 int,
                                 java.lang.String,
                                 char)