|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
interface SnmpTablePanelModel
The SnmpTablePanelModel interface specifies the methods the SnmpTablePanelUI will use to interrogate a tabular data model. The SnmpTablePanelUI can be set up to display any data model which implements the SnmpTablePanelModel interface .
| Field Summary | |
|---|---|
static byte |
GRAPHABLE
|
static byte |
NONGRAPHABLE
|
| Method Summary | |
|---|---|
void |
addRow(boolean entryStatus,
SnmpOID[] oidList,
java.lang.String[] values)
add an row to table with specified objectid list and value and also with the status of table whether it is an entryStatus or rowStatus. |
void |
addTableModelListener(javax.swing.event.TableModelListener l)
Add a listener to the list that's notified each time a change to the data model occurs. |
int |
convertColumnIndexToModel(int column)
|
int |
create_v3_tables()
Create the SNMPv3 tables for authentication and privacy |
void |
deleteRows(int[] rows)
deletes the rows specified with indexes. |
void |
fireColumnMoved(int fromIndex,
int toIndex)
|
void |
fireScrollBarMoved(int value)
notify the scrollbar value to the model to adjust its column value |
java.lang.String |
getAuthPassword()
Get the SNMP V3 AuthPassword |
int |
getAuthProtocol()
Get the SNMP V3 AuthProtocol |
java.lang.String |
getCharacterEncoding()
Get the Character Encoding being used. |
java.lang.Class |
getColumnClass(int columnIndex)
Returns the class to be used as renderer and editor for the column. |
int |
getColumnCount()
return the number of columns. |
int |
getColumnIndex(java.lang.String columnName)
|
java.util.Vector |
getColumnMibNodes()
returns the vector of mibnodes for all columns of this table |
java.lang.String |
getColumnName(int columnIndex)
returns the column name. |
java.util.Vector |
getColumnNames()
ruturns the vector of column names for this table |
int |
getColumnsPerGet()
Get the no of columns per get |
boolean |
getColumnsSplit()
Get the flag ColumnsSplit |
byte |
getColumnType(int columnIndex)
returns whether column at the specified index can be graphable or not |
java.lang.String |
getCommunity()
Get the SNMP target Community |
java.lang.String |
getContextID()
Get the SNMP V3 contextID |
java.lang.String |
getContextName()
Get the SNMP V3 Context name |
java.lang.String |
getDecodedInstanceStr(java.util.Vector values)
returns the decoded instance string for the values of indexes |
void |
getEntriesFromNext()
this will generate the entries of next page |
void |
getEntriesFromPrev()
this will generate the entries of previous page |
void |
getEntriesFromRefresh()
this will refresh the entries of current page |
void |
getEntriesFromStart(java.lang.String index)
this will generate entries from the first row of the SnmpTable. |
java.lang.String |
getIndexField(int rowIndex)
returns the index value for specified row |
java.util.Vector |
getIndexMibNodes()
returns the vector of mibnodes for index columns of this table |
java.util.Vector |
getIndexNames()
returns the vector of index names for this table |
java.lang.String |
getMibModules()
Get the SNMP mibmodules |
MibOperations |
getMibOperations()
To get an instance of MibOperations |
java.lang.String[][] |
getNotAccessibleIndex()
get the Not Accessible Index values |
java.util.Vector |
getNotAccessIndexColumns()
get the Column Names of NotAccessible Index values |
java.lang.String[] |
getObjectIDList()
|
boolean |
getOverwriteCMI()
Gets the overwrite compiled mibs boolean. |
int |
getPageNumber()
returns the current page number. |
java.lang.String |
getPrincipal()
Get the SNMP Principal |
java.lang.String |
getPrivPassword()
Get the SNMP V3 PrivPassword |
int |
getRetries()
Get the SNMP target retries value. |
int |
getRowCount()
returns the number of rows to be displayed |
java.lang.String |
getSerializedMibFileName()
Gets the name of the Serialized Mib file |
SnmpEngineTable |
getSnmpEngineTable()
|
SnmpTable |
getSnmpTable()
|
SnmpTablePanel |
getSnmpTablePanel()
|
java.util.Vector |
getSnmpVarVec(int row)
returns the vector of SnmpVar objects for the spoecified row |
int |
getSnmpVersion()
Get the SNMP target SNMP Version. |
java.lang.String |
getTableOID()
Get the table OID |
int |
getTableViewColumnCount()
get the number of columns to be visibled in Table |
int |
getTableViewRowCount()
get the number of rows to be visibled in Table |
java.lang.String |
getTargetHost()
get the SNMP target hostname |
int |
getTargetPort()
Get the SNMP target port number |
int |
getTimeout()
Get the SNMP target timeout value |
int |
getTotalColumnCount()
returns the number of columns in the SnmpTable |
USMUserTable |
getUSMTable()
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
returns the value for table cell at given row and column. |
java.lang.String |
getWriteCommunity()
Get the SNMP target write Community to be used for set requests |
void |
initJdbcParams(java.lang.String driverName,
java.lang.String URL,
java.lang.String userName,
java.lang.String passWord)
Init Jdbc parameters for mib |
boolean |
isAugmentedDisplay()
returns the status of table whether it is agugmented table or of its original table . |
boolean |
isAugmentedTable()
returns whether the table is augmented one or not |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns true if the cell at specified index is editable. |
boolean |
isEndOfTable()
retuerns the state whether the table is reached end of table |
boolean |
isEntryStatus()
returns whether the table is having entryStatus column or rowStatus column |
boolean |
isGetFromIndex()
returns true if the table values is generated from the index . |
boolean |
isLoadFromCompiledMibs()
Gets the loadFromCompiledMibs boolean |
boolean |
isLoadFromSerializedMibs()
Gets the loadFromSerializedMibs boolean |
boolean |
isLoadMibsFromDatabase()
Gets the loadFromDatabase boolean |
boolean |
isOverwriteMibsInDatabase()
Gets the overwrite mibs in Database boolean. |
boolean |
isReadDesc()
Returns true if reading descriptions from compiled modules is enabled |
boolean |
isRetrievalMode()
returns whether the table should be generated by getnext mode or getbulk mode. |
boolean |
isRowAddAndDel()
returns whether the rows can be added and deleted |
boolean |
isSerializeMibs()
Gets the serializeMibs boolean |
boolean |
isUpdateScrollBar()
|
boolean |
isV3DatabaseFlag()
To check whether v3 database flag is set or not |
void |
loadMibs(java.lang.String mibs)
Load the mibs specified by white-space separated list of mibs. |
void |
prepareEntries()
this will generate entries for table when the custom panel is disabled |
void |
refreshTable()
Refresh the Table |
void |
removeTableModelListener(javax.swing.event.TableModelListener l)
Remove a listener from the list that's notified each time a change to the data model occurs. |
void |
setAugmentedDisplay(boolean isAugmented)
set the status of table whether it is agugmented table or of its original table .set true if the visible table is its augmented table, set returns false if it is a original table what specified in setTableOID |
void |
setAuthPassword(java.lang.String authPasswd)
Set the SNMP V3 AuthPassword |
void |
setAuthProtocol(int authProtocol)
Set the SNMP V3 AuthProtocol |
void |
setCharacterEncoding(java.lang.String enc)
Set the Character Encoding to be used. |
void |
setColumnNameAt(java.lang.String name,
int columnIndex)
set the header name at the given index. |
void |
setColumnOrder(int columnIndex)
it will form the entries in ascending order based on the values at specified column. |
void |
setColumnsPerGet(int columnsPerGet)
Set the no of columns per get |
void |
setColumnsSplit(boolean split)
Enables the Table Columns Splitting if the Split is set to true |
void |
setCommunity(java.lang.String c)
Set the SNMP target Community |
void |
setContextID(java.lang.String contextID)
Set the SNMP V3 contextID |
void |
setContextName(java.lang.String contextName)
Set the SNMP V3 Context name |
void |
setDebug(boolean flag)
Enables the Debug option if the flag is set to true |
void |
setEngineID(byte[] EngineID)
Set the SNMP V3 EngineID |
void |
setGetFromIndex(boolean isFromIndex)
set whether the values filled by the table should be starting with the given index or from first row in the original table. |
void |
setLoadFromCompiledMibs(boolean isloadFromCompiled)
Defines whether to load mib from compiled MIBs. |
void |
setLoadFromSerializedMibs(boolean isloadFromSerialized)
Method defines whether to load MIB from serialized file. |
void |
setLoadMibsFromDatabase(boolean flag)
To set flag for loading mibs from database |
void |
setMaxRepetitions(int i)
Set the MaxRepetitions value. |
void |
setMibModules(java.lang.String mibs)
Set the SNMP mibmodules |
void |
setObjectIDList(java.lang.String[] s)
|
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 principal)
Set the SNMP Principal |
void |
setPrivPassword(java.lang.String privPasswd)
Set the SNMP V3 PrivPassword |
void |
setReadDesc(boolean readFlag)
Sets the flag to read descriptions from compiled mib modules. |
void |
setRetries(int retries)
Set the SNMP target retries value. |
void |
setRetrievalMode(boolean retrievalMode)
set whether the table should be generated by getnext mode or getbulk mode. |
void |
setSerializedMibFileName(java.lang.String serialMibName)
Method defines the name of the Serialized Mib File for saving. |
void |
setSerializeMibs(boolean isSerialize)
Method defines whether to serialize the MibModule. |
void |
setSnmpTablePanel(SnmpTablePanel panel)
|
void |
setSnmpVersion(int version)
Set the SNMP target SNMP Version. |
void |
setTableOID(java.lang.String oid)
Set the table OID |
void |
setTablePanelUI(SnmpTablePanelUI ui)
set the instance of TablePanelUI |
void |
setTableViewColumnCount(int viewColumns)
set the number of columns to be visibled in Table |
void |
setTableViewRowCount(int viewRows)
set the number of rows to be visibled in Table |
void |
setTargetHost(java.lang.String host)
set the SNMP target hostname |
void |
setTargetPort(int port)
Set the SNMP target port number |
void |
setTimeout(int timeout)
Set the SNMP target timeout value |
void |
setupCellEditor(javax.swing.JTable table)
set the table cell editor for table |
void |
setV3DatabaseFlag(boolean v3Flag)
If you need to use database support for V3 , set this flag to true. |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Sets the value at specified index. |
void |
setWriteCommunity(java.lang.String wcommunity)
Set the SNMP target write Community to be used for set requests |
void |
stopCurrentThread(boolean st)
To stop the thread from reading table data Not for API users. |
| Field Detail |
|---|
static final byte GRAPHABLE
static final byte NONGRAPHABLE
| Method Detail |
|---|
void fireScrollBarMoved(int value)
int convertColumnIndexToModel(int column)
void addTableModelListener(javax.swing.event.TableModelListener l)
addTableModelListener in interface javax.swing.table.TableModell - - the TableModelListenervoid removeTableModelListener(javax.swing.event.TableModelListener l)
removeTableModelListener in interface javax.swing.table.TableModell - the TableModelListenerjava.lang.Class getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelint getColumnCount()
getColumnCount in interface javax.swing.table.TableModelint getColumnIndex(java.lang.String columnName)
java.lang.String getColumnName(int columnIndex)
getColumnName in interface javax.swing.table.TableModelint getRowCount()
getRowCount in interface javax.swing.table.TableModel
java.lang.Object getValueAt(int rowIndex,
int columnIndex)
getValueAt in interface javax.swing.table.TableModelrow - index of the rowcol - index of column
boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModel
void setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
setValueAt in interface javax.swing.table.TableModel
void setColumnNameAt(java.lang.String name,
int columnIndex)
name - the value to be set for the headercolumnIndex - the index of the header of table.
void fireColumnMoved(int fromIndex,
int toIndex)
boolean isUpdateScrollBar()
void prepareEntries()
void getEntriesFromStart(java.lang.String index)
index - this be used if GetFromIndex is set. the will start with
this index string.void getEntriesFromNext()
void getEntriesFromPrev()
void getEntriesFromRefresh()
void setColumnOrder(int columnIndex)
boolean isEntryStatus()
void setupCellEditor(javax.swing.JTable table)
java.lang.String getIndexField(int rowIndex)
rowIndex - index of the row in the table.void setGetFromIndex(boolean isFromIndex)
boolean isGetFromIndex()
void setRetrievalMode(boolean retrievalMode)
boolean isRetrievalMode()
byte getColumnType(int columnIndex)
int getTotalColumnCount()
java.util.Vector getIndexNames()
java.util.Vector getIndexMibNodes()
java.util.Vector getColumnNames()
java.util.Vector getColumnMibNodes()
void addRow(boolean entryStatus,
SnmpOID[] oidList,
java.lang.String[] values)
throws DataException
entryStatus - which specifies whether the table is with rowStatus
or entryStatus.oidList - oidlist for the writable columns in this tablevalues - the values to be set to the columns in this table
DataException - if an invalid value or oid was givenboolean isRowAddAndDel()
void deleteRows(int[] rows)
rows - an array of int which are all indexes of rows.int getPageNumber()
boolean isEndOfTable()
java.util.Vector getSnmpVarVec(int row)
java.lang.String getDecodedInstanceStr(java.util.Vector values)
values - elements are all values for index columns for the table
boolean isAugmentedTable()
boolean isAugmentedDisplay()
void setAugmentedDisplay(boolean isAugmented)
void setCharacterEncoding(java.lang.String enc)
enc - The name of a character encoding. All the string encoding
will be done base on this encoding.java.lang.String getCharacterEncoding()
void setTargetHost(java.lang.String host)
java.lang.String getTargetHost()
java.lang.String[] getObjectIDList()
void setObjectIDList(java.lang.String[] s)
void setTableOID(java.lang.String oid)
throws DataException
DataException - is thrown if data is invalidjava.lang.String getTableOID()
void setCommunity(java.lang.String c)
java.lang.String getCommunity()
void loadMibs(java.lang.String mibs)
throws MibException,
java.io.IOException,
java.io.FileNotFoundException
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.int getSnmpVersion()
void setSnmpVersion(int version)
void setMaxRepetitions(int i)
int getTableViewColumnCount()
void setTableViewColumnCount(int viewColumns)
int getTableViewRowCount()
void setTableViewRowCount(int viewRows)
int getTargetPort()
void setTargetPort(int port)
java.lang.String getMibModules()
void setMibModules(java.lang.String mibs)
java.lang.String getWriteCommunity()
void setWriteCommunity(java.lang.String wcommunity)
int getTimeout()
void setTimeout(int timeout)
int getRetries()
void setRetries(int retries)
SnmpTable getSnmpTable()
SnmpEngineTable getSnmpEngineTable()
USMUserTable getUSMTable()
java.lang.String getContextName()
void setContextName(java.lang.String contextName)
void setEngineID(byte[] EngineID)
java.lang.String getContextID()
void setContextID(java.lang.String contextID)
java.lang.String getPrincipal()
void setPrincipal(java.lang.String principal)
int getAuthProtocol()
void setAuthProtocol(int authProtocol)
java.lang.String getAuthPassword()
void setAuthPassword(java.lang.String authPasswd)
java.lang.String getPrivPassword()
void setPrivPassword(java.lang.String privPasswd)
int create_v3_tables()
void setSerializeMibs(boolean isSerialize)
boolean isSerializeMibs()
void setLoadFromSerializedMibs(boolean isloadFromSerialized)
void setLoadFromCompiledMibs(boolean isloadFromCompiled)
If both loadFromSerializedMibs and loadFromCompiledMibs is set to true, it will just try to load the MIB as a serialized file.
void setOverwriteCMI(boolean overWrite)
boolean getOverwriteCMI()
void setReadDesc(boolean readFlag)
boolean isReadDesc()
boolean isLoadFromSerializedMibs()
boolean isLoadFromCompiledMibs()
void setSerializedMibFileName(java.lang.String serialMibName)
java.lang.String getSerializedMibFileName()
void setDebug(boolean flag)
void refreshTable()
void setTablePanelUI(SnmpTablePanelUI ui)
java.lang.String[][] getNotAccessibleIndex()
java.util.Vector getNotAccessIndexColumns()
void setColumnsSplit(boolean split)
boolean getColumnsSplit()
int getColumnsPerGet()
void setColumnsPerGet(int columnsPerGet)
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
java.lang.ClassNotFoundException
java.sql.SQLExceptionMibOperations getMibOperations()
void setLoadMibsFromDatabase(boolean flag)
void setOverwriteMibsInDatabase(boolean overWrite)
boolean isOverwriteMibsInDatabase()
boolean isLoadMibsFromDatabase()
boolean isV3DatabaseFlag()
void setV3DatabaseFlag(boolean v3Flag)
void stopCurrentThread(boolean st)
SnmpTablePanel getSnmpTablePanel()
void setSnmpTablePanel(SnmpTablePanel panel)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||