|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.adventnet.snmp.ui.MibBrowser
public class 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/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
(package private) java.applet.Applet |
applet
|
(package private) DefaultMibBrowserModel |
browserModel
|
(package private) MibBrowserUI |
browserUi
|
(package private) com.adventnet.utils.LogInterface |
client
|
(package private) MbDisplayPanel |
display
|
(package private) boolean |
hideJdbc
|
(package private) LineGraphBean |
lineGraphBean
|
(package private) MibOperations |
mibOps
|
(package private) MibSettingsModel |
settingsModel
|
(package private) SnmpTasks |
snmptasks
|
(package private) MibTree |
tree
|
| 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(com.adventnet.utils.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 |
(package private) void |
appendDebugText(java.lang.String text)
|
(package private) void |
appendhexArea(java.lang.String text)
|
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 |
(package private) javax.swing.ImageIcon[] |
createImageIcon(java.lang.String[] names)
Creates image buttons |
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 |
(package private) javax.swing.JButton |
getButtonAt(int index)
|
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 |
(package private) javax.swing.JTextArea |
getDebugText()
|
(package private) javax.swing.JMenuItem |
getGetbulkItem()
|
(package private) java.lang.String |
getGraphType()
|
(package private) javax.swing.JTextArea |
gethexArea()
|
java.lang.String |
getHostname()
Deprecated. Replaced by getTargetHost(). |
LineGraphBean |
getLineGraphBean()
returns the LineGraphBean instance of MibBrowser |
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. |
(package private) java.util.Vector |
getMultipleOids()
|
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. |
(package private) java.util.Vector |
getPathInfo()
|
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. |
(package private) java.lang.String[] |
getSetValues()
|
SnmpEngineTable |
getSnmpEngineTable()
Get the SnmpEngineTable reference. |
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() |
(package private) java.lang.String |
getVersionString()
|
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 |
(package private) void |
setGraphType(java.lang.String type)
|
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 |
(package private) void |
setup()
Common init functions |
(package private) ToolBar |
setUpDebugToolBar()
Creates ToolBar buttons with Tooltip |
(package private) ToolBar |
setUpToolBar()
Creates ToolBar buttons with Tooltip |
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) |
(package private) void |
setVersionString(java.lang.String version)
|
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, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, 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, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, 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 |
| Field Detail |
|---|
MbDisplayPanel display
MibBrowserUI browserUi
DefaultMibBrowserModel browserModel
SnmpTasks snmptasks
MibTree tree
MibOperations mibOps
boolean hideJdbc
java.applet.Applet applet
MibSettingsModel settingsModel
com.adventnet.utils.LogInterface client
LineGraphBean lineGraphBean
| 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(com.adventnet.utils.LogInterface client)
client- - LogInterfacepublic void removeLogClient()
public SnmpTasks getSnmpTasks()
void setup()
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 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()
public void setContextName(java.lang.String cName)
public java.lang.String getContextID()
public void setContextID(java.lang.String ctxtID)
public void setEngineID(byte[] eID)
public java.lang.String getPrincipal()
public java.lang.String getAuthPassword()
public java.lang.String getPrivPassword()
public int getAuthProtocol()
public java.lang.String getSecurityLevel()
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()
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()
java.lang.String[] getSetValues()
java.util.Vector getMultipleOids()
public void setSetValue(java.lang.String s)
public java.lang.String getSetValue()
public java.lang.String getNumericObjectID()
public void cleanUp()
ToolBar setUpToolBar()
javax.swing.ImageIcon[] createImageIcon(java.lang.String[] names)
ToolBar setUpDebugToolBar()
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()
public void setV3DatabaseFlag(boolean v3Flag)
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)
setSnmpVersion in interface CustomizerTemplateinteger - to set SNMP version.public 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)
targetHostNames- - vector of host names.public java.util.Vector getTargetHostNames()
public void v3Settings()
public void setPrincipal(java.lang.String userName)
setPrincipal in interface CustomizerTemplatepublic void setSecurityLevel(byte sLevel)
setSecurityLevel in interface CustomizerTemplatepublic void setAuthPassword(java.lang.String password)
setAuthPassword in interface CustomizerTemplatepublic void setPrivPassword(java.lang.String password)
setPrivPassword in interface CustomizerTemplatepublic void setAuthProtocol(int protocol)
setAuthProtocol in interface CustomizerTemplatepublic int create_v3_tables()
create_v3_tables in interface CustomizerTemplatepublic void manage_v3_tables()
manage_v3_tables in interface CustomizerTemplatepublic USMUserTable getUSMTable()
getUSMTable in interface CustomizerTemplate
public void initSecurityProvider()
throws SnmpException
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)
isSupportedSecurityModel in interface CustomizerTemplatem - The secuirty model number which needs to be checked
if it is supported.
public SnmpEngineTable getSnmpEngineTable()
getSnmpEngineTable in interface CustomizerTemplatepublic boolean isSerialize()
isSerialize in interface CustomizerTemplatejava.util.Vector getPathInfo()
java.lang.String getVersionString()
void setVersionString(java.lang.String version)
javax.swing.JButton getButtonAt(int index)
javax.swing.JMenuItem getGetbulkItem()
javax.swing.JTextArea getDebugText()
javax.swing.JTextArea gethexArea()
void appendhexArea(java.lang.String text)
void appendDebugText(java.lang.String text)
java.lang.String getGraphType()
void setGraphType(java.lang.String type)
public void setLoadRecentMibs(boolean mibLoad)
public boolean isLoadRecentMibs()
public boolean isOperationInProgress()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||