|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--com.adventnet.snmp.ui.MibBrowser
This class is the MIB Browser bean. It can be embedded in applications and applets. Only minimal configuration has been enabled in this version - soon much more configurability will be provided in this bean.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
MibBrowser()
Create a MIB browser bean instance. |
|
MibBrowser(java.applet.Applet applet)
Create a MIB browser bean instance. |
|
MibBrowser(java.applet.Applet applet,
boolean hidejdbc)
Create a MibBrowser bean instance for Applet and for the avoiding the Jdbc params being initialized for V3 |
|
MibBrowser(java.applet.Applet applet,
MibTree tree)
Create a MIB browser bean instance with MibTree . |
|
MibBrowser(int protocol,
ProtocolOptions opts)
Create a Mib Browser instance with ProtocolOptions as the parameter. |
|
MibBrowser(MibTree tree)
Create a MIB browser bean instance with mibTree . |
|
| Method Summary | |
void |
addLogClient(LogInterface client)
Add the Log client for which the target has to redirect the log messages |
void |
addSnmpPropertyListener(SnmpPropertyListener l)
add SnmpPropertyListener object into listener vector |
void |
cleanUp()
Destroys this components resources. |
int |
create_v3_tables()
This needs to be implemented to set add v3 user entry.Thil will set v3
user information by creating SnmpEngineTable and USMUserTable |
boolean |
findNext(java.lang.String nodeName,
boolean findAll,
boolean matchCase,
boolean matchWord)
This method is used for searching next Node in the Mib using previous node |
java.lang.String |
getAgentPort()
Deprecated. Replaced by getTargetPort(). |
java.lang.String |
getAuthPassword()
Get AuthPassword |
int |
getAuthProtocol()
Get AuthProtocol |
java.lang.String |
getCharacterEncoding()
Get the Character Encoding being used. |
java.lang.String |
getCommunity()
Get community in MIB Browser. |
static java.lang.String |
getConfDir()
Returns the conf directory set on this MibBrowser instance. |
java.lang.String |
getContextID()
Get the SNMP V3 contextID |
java.lang.String |
getContextName()
Get the SNMP V3 Context name |
java.lang.String |
getHostname()
Deprecated. Replaced by getTargetHost(). |
LineGraphBean |
getLineGraphBean()
returns the LineGraphBean instance of MibBrowser |
com.adventnet.snmp.ui.MbDisplayPanel |
getMbDisplayPanel()
returns the MbDisplayPanel instance |
javax.swing.JMenuBar |
getMenuBar()
returns the MibBrowser MenuBar instance. |
java.awt.Font |
getMenuFont()
returns the menu font |
int |
getMibBrowserDisplayView()
returns Display view |
java.lang.String |
getMibModules()
Return a list of loaded MIB Modules |
MibOperations |
getMibOperations()
Returns MibOperations instance |
MibTree |
getMibTree()
Get the MibTree instance used in the MIB browser |
java.awt.Dimension |
getMinimumSize()
Returns the minimum size of this component. |
java.lang.String |
getMultipleObjectID()
Get Object ID in MIB Browser. |
java.lang.String |
getNumericObjectID()
Get the numeric OID of selected Mib Node. |
java.lang.String |
getObjectID()
Get Object ID in MIB Browser. |
boolean |
getOverwriteCMI()
Gets the overwrite compiled mibs boolean. |
java.awt.Dimension |
getPreferredSize()
Returns the preferred size of this component. |
java.lang.String |
getPrincipal()
Get Principal |
java.lang.String |
getPrivPassword()
Get PrivPassword |
java.lang.String |
getRetries()
Get Retries |
java.lang.String |
getSecurityLevel()
Get SecurityLevel |
MibModule |
getSelectedModule()
Returns the Selected MIB Module |
java.lang.String |
getSerializedMibFileName()
Gets the name of the Serialized Mib file |
java.lang.String |
getSetValue()
Get Set Value in MIB Browser. |
SnmpEngineTable |
getSnmpEngineTable()
Get the SnmpEngineTable reference. |
com.adventnet.snmp.ui.SnmpTasks |
getSnmpTasks()
returns SnmpTasks of MibBrowser |
int |
getSnmpVersion()
Get the SNMP target SNMP Version. |
java.lang.String |
getTargetHost()
Get hostname in MIB Browser. |
java.util.Vector |
getTargetHostNames()
Get the Vector of HostNames in MibBrowser. |
int |
getTargetPort()
Get Port |
java.lang.String |
getTimeout()
Get Timeout |
ToolBar |
getToolBar()
returns the MibBrowser ToolBar instance. |
int |
getTrapPort()
Get Trap Port |
TrapViewer |
getTrapViewer()
Returns the last TrapViewer instance. |
USMUserTable |
getUSMTable()
Get the reference to the USMUserTable. |
int |
getVersion()
Deprecated. replaced by getSnmpVersion() |
java.lang.String |
getWriteCommunity()
Get write community in MIB Browser. |
void |
hideJdbc(boolean hide)
Hides the Jdbc connection establishing panels. |
void |
initJdbcParams(java.lang.String driverName,
java.lang.String URL,
java.lang.String userName,
java.lang.String passWord)
If you need to use database support, this method should be invoked to initialize the Jdbc Parameters. |
void |
initSecurityProvider()
This method initializes the SecurityProvider by reading from the
file securityProvider.confg . |
static void |
internationalize(java.util.Locale locale,
java.awt.Font font)
The method to implement the internationlization in MibBrowser. |
boolean |
isLoadFromCompiledMibs()
Gets the loadFromCompiledMibs boolean |
boolean |
isLoadFromSerializedMibs()
Gets the loadFromSerializedMibs boolean |
boolean |
isLoadMibsFromDatabase()
Gets the loadFromDatabase boolean |
boolean |
isLoadRecentMibs()
Returns the value corresponding to load recently loaded mibs at startup option on this instance. |
boolean |
isMenuBarVisible()
returns whether the menu bar is visible or not |
boolean |
isOperationInProgress()
Returns whether any of the SNMP Operations like GET, GETNEXT, GETBULK,SET are currently in progress. |
boolean |
isOverwriteMibsInDatabase()
Gets the overwrite mibs in Database boolean. |
boolean |
isReadDesc()
Returns true if reading descriptions from compiled modules is enabled |
boolean |
isSerialize()
Returns the status of serialization of USMUserTable
and SnmpEngineTable. |
boolean |
isSerializeMibs()
Gets the serializeMibs boolean |
boolean |
isSupportedSecurityModel(int m)
Specifies if a particular security model is supported or not. |
boolean |
isToolBarVisible()
returns whether the tool bar is visible or not |
boolean |
isV3DatabaseFlag()
To check whether v3 database flag is set or not. |
void |
loadMib(java.lang.String mib)
Add another MIB file after startup |
void |
manage_v3_tables()
This needs to be imlemented to update the current information about
v3 user |
void |
releaseResources()
Though the resources will be cleaned up by the garbage collector, if the application is no more using the MibBrowser bean instance, this method can be used to immediately release the resources. |
void |
removeLogClient()
Removes the Log client for which the target has been registered to redirect the log Messages. |
void |
removeSnmpPropertyListener(SnmpPropertyListener l)
remove SnmpPropertyListener object from listener vector |
void |
setAgentPort(java.lang.String port)
Deprecated. Replaced by setTargetPort(int). |
void |
setAuthPassword(java.lang.String password)
Set AuthPassword |
void |
setAuthProtocol(int protocol)
Set AuthProtocol |
void |
setCharacterEncoding(java.lang.String enc)
Set the Character Encoding to be used. |
void |
setCommunity(java.lang.String s)
Set community in MIB Browser. |
static void |
setConfDir(java.lang.String dir)
The method to customize the conf directory |
void |
setContextID(java.lang.String ctxtID)
Set the SNMP V3 contextID |
void |
setContextName(java.lang.String cName)
Set the SNMP V3 Context name |
void |
setDebug(boolean debug)
Set whether to print debug information |
void |
setEngineID(byte[] eID)
Set the SNMP V3 EngineID |
void |
setHelpURL(java.net.URL helpurl)
The method to customize the help URL. |
void |
setHostname(java.lang.String s)
Deprecated. Replaced by setTargetHost(String). |
void |
setLineGraphBean(LineGraphBean graph)
sets the LineGraphBean instance of MibBrowser |
void |
setLoadFromCompiledMibs(boolean flag)
Defines whether to load mib from compiled MIBs. |
void |
setLoadFromSerializedMibs(boolean flag)
Method defines whether to load MIB from serialized file. |
void |
setLoadMibsFromDatabase(boolean flag)
Defines whether to load mib from DataBase. |
void |
setLoadRecentMibs(boolean mibLoad)
Used to enable/disable load recently loaded mibs at startup option. |
void |
setMenuBarVisible(boolean flag)
set whether the menu bar is visible or not |
void |
setMenuFont(java.awt.Font menuFont)
sets the menu font. |
void |
setMibBrowserDisplayView(int view)
Sets MibBrowser display view to show the MibDescription panel or ResultDisplay panel alone or MultiVarbind panel. |
void |
setMibModules(java.lang.String mibs)
Add MIB files at startup time |
void |
setMibOperations(MibOperations mibOps)
Set the MibOperations.This can be used when the API user wants the MibBrowser to use the localinstance of MibOperations instead of the Static MibOperations shared by all the other beans. |
void |
setMibPath(java.lang.String searchPath)
Sets the search path from where the Mib should be loaded. |
void |
setMibTreeExpandable(boolean flag)
Set whether to expand the MibTree based on the result oid node. |
void |
setMultipleObjectID(java.lang.String s)
Set Object ID in MIB Browser. |
void |
setObjectID(java.lang.String s)
Set Object ID in MIB Browser. |
void |
setOverwriteCMI(boolean overWrite)
Defines whether to overwrite the existing compiled MIB files. |
void |
setOverwriteMibsInDatabase(boolean overWrite)
Defines whether to overwrite the MIB in the DataBase. |
void |
setPrincipal(java.lang.String userName)
Set Principal |
void |
setPrivPassword(java.lang.String password)
Set PrivPassword |
void |
setReadDesc(boolean readFlag)
Sets the flag to read descriptions from compiled mib modules. |
void |
setRetries(java.lang.String retries)
Set Retries |
void |
setSecurityLevel(byte sLevel)
Set SecurityLevel |
void |
setSerializedMibFileName(java.lang.String serFileName)
Method defines the name of the Serialized MIB File. |
void |
setSerializeMibs(boolean flag)
Method defines whether to serialize the MibModule. |
void |
setSettingsTitle(java.lang.String title)
sets the title of Settings Frame. |
void |
setSetValue(java.lang.String s)
Set Set Value in MIB Browser. |
void |
setSnmpVersion(int i)
Set the SNMP target SNMP Version. |
void |
setTargetHost(java.lang.String s)
Set hostname in MIB Browser. |
void |
setTargetHostNames(java.util.Vector targetHostNames)
Set a Vector of HostNames in MIB Browser. |
void |
setTargetPort(int port)
Set the remote Port |
void |
setTimeout(java.lang.String timeout)
Set Timeout |
void |
setToolBarVisible(boolean flag)
Shows or hides the MibBrowser ToolBar depending on the value of parameter |
void |
setTrapPort(int port)
Set Trap Port |
void |
setV3DatabaseFlag(boolean v3Flag)
If you need to use database support for V3 , set this flag to true. |
void |
setVersion(int i)
Deprecated. replaced by setSnmpVersion(int) |
void |
setWriteCommunity(java.lang.String s)
Set write community in MIB Browser. |
void |
unloadMib(java.lang.String mib)
Unload the mib |
void |
v3Settings()
This method is used for deSerializing the USMUserTable in MibBrowser. |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MibBrowser()
public MibBrowser(MibTree tree)
public MibBrowser(int protocol,
ProtocolOptions opts)
public MibBrowser(java.applet.Applet applet,
boolean hidejdbc)
public MibBrowser(java.applet.Applet applet)
public MibBrowser(java.applet.Applet applet,
MibTree tree)
| Method Detail |
public void addLogClient(LogInterface client)
public void removeLogClient()
public com.adventnet.snmp.ui.SnmpTasks getSnmpTasks()
public static void internationalize(java.util.Locale locale,
java.awt.Font font)
The Locale for which internationlization has to be done.,
The specific font that was supported by the Locale.public void releaseResources()
public void addSnmpPropertyListener(SnmpPropertyListener l)
public void removeSnmpPropertyListener(SnmpPropertyListener l)
public int getMibBrowserDisplayView()
public void setHelpURL(java.net.URL helpurl)
helpurl - the url to be shown as help.public static void setConfDir(java.lang.String dir)
dir - the conf directory path where the conf files are present.public static java.lang.String getConfDir()
public void setMibBrowserDisplayView(int view)
public boolean isMenuBarVisible()
public void setMenuBarVisible(boolean flag)
public boolean isToolBarVisible()
public void setToolBarVisible(boolean flag)
public ToolBar getToolBar()
public javax.swing.JMenuBar getMenuBar()
public void setSettingsTitle(java.lang.String title)
public void setMenuFont(java.awt.Font menuFont)
public java.awt.Font getMenuFont()
public TrapViewer getTrapViewer()
public com.adventnet.snmp.ui.MbDisplayPanel getMbDisplayPanel()
public LineGraphBean getLineGraphBean()
public void setLineGraphBean(LineGraphBean graph)
public java.awt.Dimension getMinimumSize()
getMinimumSize in class javax.swing.JComponentpublic java.awt.Dimension getPreferredSize()
getPreferredSize in class javax.swing.JComponentpublic void setCharacterEncoding(java.lang.String enc)
enc - The name of a character encoding. All the string encoding
will be done base on this encoding.public java.lang.String getCharacterEncoding()
public MibOperations getMibOperations()
public void setMibOperations(MibOperations mibOps)
public void setMibModules(java.lang.String mibs)
public java.lang.String getMibModules()
public MibModule getSelectedModule()
public void loadMib(java.lang.String mib)
public void unloadMib(java.lang.String mib)
public MibTree getMibTree()
public void setMibTreeExpandable(boolean flag)
public void setDebug(boolean debug)
public void setRetries(java.lang.String retries)
throws java.lang.NumberFormatException
java.lang.NumberFormatException - is thrown on error
public java.lang.String getRetries()
throws java.lang.NumberFormatException
java.lang.NumberFormatException - is thrown on error
public void setTimeout(java.lang.String timeout)
throws java.lang.NumberFormatException
java.lang.NumberFormatException - is thrown on errorpublic java.lang.String getTimeout()
public void hideJdbc(boolean hide)
hide - boolean.public java.lang.String getContextName()
Get the SNMP V3 Context name
public void setContextName(java.lang.String cName)
Set the SNMP V3 Context name
public java.lang.String getContextID()
Get the SNMP V3 contextID
public void setContextID(java.lang.String ctxtID)
Set the SNMP V3 contextID
public void setEngineID(byte[] eID)
Set the SNMP V3 EngineID
public java.lang.String getPrincipal()
Get Principal
public java.lang.String getAuthPassword()
Get AuthPassword
public java.lang.String getPrivPassword()
Get PrivPassword
public int getAuthProtocol()
Get AuthProtocol
public java.lang.String getSecurityLevel()
Get SecurityLevel
public void setAgentPort(java.lang.String port)
throws java.lang.NumberFormatException
java.lang.NumberFormatException - is thrown on errorpublic java.lang.String getAgentPort()
public int getTrapPort()
public void setTrapPort(int port)
public int getSnmpVersion()
Get the SNMP target SNMP Version. 0 is Version 1 (default),
1 is Version V2C
and 3 is Version V3.
public int getVersion()
getSnmpVersion()public void setVersion(int i)
setSnmpVersion(int)public void setHostname(java.lang.String s)
public java.lang.String getHostname()
public void setCommunity(java.lang.String s)
public java.lang.String getCommunity()
public void setWriteCommunity(java.lang.String s)
public java.lang.String getWriteCommunity()
public void setObjectID(java.lang.String s)
public java.lang.String getObjectID()
public void setMultipleObjectID(java.lang.String s)
public java.lang.String getMultipleObjectID()
public void setSetValue(java.lang.String s)
public java.lang.String getSetValue()
public java.lang.String getNumericObjectID()
public void cleanUp()
public void setSerializeMibs(boolean flag)
public boolean isSerializeMibs()
public void setLoadFromSerializedMibs(boolean flag)
public void initJdbcParams(java.lang.String driverName,
java.lang.String URL,
java.lang.String userName,
java.lang.String passWord)
throws java.lang.ClassNotFoundException,
java.sql.SQLException
driverName - Name of the DataBase driver.URL - URL pointing to the DataBase file nameuserName - userNamepassWord - password
java.lang.ClassNotFoundException
java.sql.SQLExceptionpublic void setLoadMibsFromDatabase(boolean flag)
flag - booleaninitJdbcParams(java.lang.String, java.lang.String, java.lang.String, java.lang.String)public void setOverwriteMibsInDatabase(boolean overWrite)
public void setMibPath(java.lang.String searchPath)
for example,
If the primary MIB file IF-MIB is in the directory "../mibs" and
if the imported MIB file is in the directory "../examples"
then the SearchPath can be set as follows
MibBrowser.setMibPath("../mibs | ../examples");
If the SearchPath is not set, then the MIB files are searched in the current working directory, or in the directory from where the MIB file is loaded.
If the search path is set, the MIB file will be searched in the directories specified using this method in addition to the current directory and the directory from where the MIB file is loaded. The MIB files will be searched in the order specified using this method.
searchPath - String specifying the search path.public boolean isOverwriteMibsInDatabase()
public boolean isLoadMibsFromDatabase()
public boolean isV3DatabaseFlag()
To check whether v3 database flag is set or not.
public void setV3DatabaseFlag(boolean v3Flag)
you need to use database support for V3 , set this flag to true.
v3Flag - flag to be set.public void setLoadFromCompiledMibs(boolean flag)
If both loadFromSerializedMibs and loadFromCompiledMibs is set to true, it will just try to load the MIB as a serialized file.
public void setOverwriteCMI(boolean overWrite)
public boolean getOverwriteCMI()
public void setReadDesc(boolean readFlag)
public boolean isReadDesc()
public boolean isLoadFromSerializedMibs()
public boolean isLoadFromCompiledMibs()
public void setSerializedMibFileName(java.lang.String serFileName)
public java.lang.String getSerializedMibFileName()
public boolean findNext(java.lang.String nodeName,
boolean findAll,
boolean matchCase,
boolean matchWord)
public void setSnmpVersion(int i)
Set the SNMP target SNMP Version. 0 is Version 1 (default),
1 is Version V2C
and 3 is Version V3.
setSnmpVersion in interface CustomizerTemplatepublic void setTargetPort(int port)
setTargetPort in interface CustomizerTemplatepublic void setTargetHost(java.lang.String s)
setTargetHost in interface CustomizerTemplatepublic int getTargetPort()
getTargetPort in interface CustomizerTemplatepublic java.lang.String getTargetHost()
getTargetHost in interface CustomizerTemplatepublic void setTargetHostNames(java.util.Vector targetHostNames)
public java.util.Vector getTargetHostNames()
public void v3Settings()
This method is used for deSerializing the USMUserTable in MibBrowser.
public void setPrincipal(java.lang.String userName)
Set Principal
setPrincipal in interface CustomizerTemplatepublic void setSecurityLevel(byte sLevel)
Set SecurityLevel
setSecurityLevel in interface CustomizerTemplatepublic void setAuthPassword(java.lang.String password)
Set AuthPassword
setAuthPassword in interface CustomizerTemplatepublic void setPrivPassword(java.lang.String password)
Set PrivPassword
setPrivPassword in interface CustomizerTemplatepublic void setAuthProtocol(int protocol)
Set AuthProtocol
setAuthProtocol in interface CustomizerTemplatepublic int create_v3_tables()
This needs to be implemented to set add v3 user entry.Thil will set v3
user information by creating SnmpEngineTable and USMUserTable
create_v3_tables in interface CustomizerTemplatepublic void manage_v3_tables()
This needs to be imlemented to update the current information about
v3 user
manage_v3_tables in interface CustomizerTemplatepublic USMUserTable getUSMTable()
Get the reference to the USMUserTable.
getUSMTable in interface CustomizerTemplate
public void initSecurityProvider()
throws SnmpException
This method initializes the SecurityProvider by reading from the
file securityProvider.confg . It will register all the security
models specified in the securityProvider.config file.
Before you make any requests using any of the beans, this method
has to be called so that the security provider is initialized.
initSecurityProvider in interface CustomizerTemplateSnmpException - if the file could not be found or if the
security model could not be registered.public boolean isSupportedSecurityModel(int m)
Specifies if a particular security model is supported or not.
Returns true if the security model is supported. False otherwise.
isSupportedSecurityModel in interface CustomizerTemplatem - The secuirty model number which needs to be checked
if it is supported.
public SnmpEngineTable getSnmpEngineTable()
Get the SnmpEngineTable reference.
getSnmpEngineTable in interface CustomizerTemplatepublic boolean isSerialize()
Returns the status of serialization of USMUserTable
and SnmpEngineTable.
isSerialize in interface CustomizerTemplatepublic void setLoadRecentMibs(boolean mibLoad)
public boolean isLoadRecentMibs()
public boolean isOperationInProgress()
| ||||