|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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 |
public static final byte GRAPHABLE
public static final byte NONGRAPHABLE
| Method Detail |
public void fireScrollBarMoved(int value)
public int convertColumnIndexToModel(int column)
public void addTableModelListener(javax.swing.event.TableModelListener l)
l - - the TableModelListenerpublic void removeTableModelListener(javax.swing.event.TableModelListener l)
l - the TableModelListenerpublic java.lang.Class getColumnClass(int columnIndex)
public int getColumnCount()
public int getColumnIndex(java.lang.String columnName)
public java.lang.String getColumnName(int columnIndex)
public int getRowCount()
public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
row - index of the rowcol - index of column
public boolean isCellEditable(int rowIndex,
int columnIndex)
public void setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
public void setColumnNameAt(java.lang.String name,
int columnIndex)
name - the value to be set for the headercolumnIndex - the index of the header of table.
public void fireColumnMoved(int fromIndex,
int toIndex)
public boolean isUpdateScrollBar()
public void prepareEntries()
public void getEntriesFromStart(java.lang.String index)
index - this be used if GetFromIndex is set. the will start with
this index string.public void getEntriesFromNext()
public void getEntriesFromPrev()
public void getEntriesFromRefresh()
public void setColumnOrder(int columnIndex)
public boolean isEntryStatus()
public void setupCellEditor(javax.swing.JTable table)
public java.lang.String getIndexField(int rowIndex)
rowIndex - index of the row in the table.public void setGetFromIndex(boolean isFromIndex)
public boolean isGetFromIndex()
public void setRetrievalMode(boolean retrievalMode)
public boolean isRetrievalMode()
public byte getColumnType(int columnIndex)
public int getTotalColumnCount()
public java.util.Vector getIndexNames()
public java.util.Vector getIndexMibNodes()
public java.util.Vector getColumnNames()
public java.util.Vector getColumnMibNodes()
public 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 tablepublic boolean isRowAddAndDel()
public void deleteRows(int[] rows)
rows - an array of int which are all indexes of rows.public int getPageNumber()
public boolean isEndOfTable()
public java.util.Vector getSnmpVarVec(int row)
public java.lang.String getDecodedInstanceStr(java.util.Vector values)
values - elements are all values for index columns for the tablepublic boolean isAugmentedTable()
public boolean isAugmentedDisplay()
public void setAugmentedDisplay(boolean isAugmented)
public 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 void setTargetHost(java.lang.String host)
public java.lang.String getTargetHost()
public java.lang.String[] getObjectIDList()
public void setObjectIDList(java.lang.String[] s)
public void setTableOID(java.lang.String oid)
throws DataException
public java.lang.String getTableOID()
public void setCommunity(java.lang.String c)
public java.lang.String getCommunity()
public void loadMibs(java.lang.String mibs)
throws MibException,
java.io.IOException,
java.io.FileNotFoundException
public int getSnmpVersion()
public void setSnmpVersion(int version)
public void setMaxRepetitions(int i)
public int getTableViewColumnCount()
public void setTableViewColumnCount(int viewColumns)
public int getTableViewRowCount()
public void setTableViewRowCount(int viewRows)
public int getTargetPort()
public void setTargetPort(int port)
public java.lang.String getMibModules()
public void setMibModules(java.lang.String mibs)
public java.lang.String getWriteCommunity()
public void setWriteCommunity(java.lang.String wcommunity)
public int getTimeout()
public void setTimeout(int timeout)
public int getRetries()
public void setRetries(int retries)
public SnmpTable getSnmpTable()
public SnmpEngineTable getSnmpEngineTable()
public USMUserTable getUSMTable()
public java.lang.String getContextName()
public void setContextName(java.lang.String contextName)
public void setEngineID(byte[] EngineID)
public java.lang.String getContextID()
public void setContextID(java.lang.String contextID)
public java.lang.String getPrincipal()
public void setPrincipal(java.lang.String principal)
public int getAuthProtocol()
public void setAuthProtocol(int authProtocol)
public java.lang.String getAuthPassword()
public void setAuthPassword(java.lang.String authPasswd)
public java.lang.String getPrivPassword()
public void setPrivPassword(java.lang.String privPasswd)
public int create_v3_tables()
public void setSerializeMibs(boolean isSerialize)
public boolean isSerializeMibs()
public void setLoadFromSerializedMibs(boolean isloadFromSerialized)
public 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.
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 serialMibName)
public java.lang.String getSerializedMibFileName()
public void setDebug(boolean flag)
public void refreshTable()
public void setTablePanelUI(SnmpTablePanelUI ui)
public java.lang.String[][] getNotAccessibleIndex()
public java.util.Vector getNotAccessIndexColumns()
public void setColumnsSplit(boolean split)
public boolean getColumnsSplit()
public int getColumnsPerGet()
public void setColumnsPerGet(int columnsPerGet)
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
public MibOperations getMibOperations()
public void setLoadMibsFromDatabase(boolean flag)
public void setOverwriteMibsInDatabase(boolean overWrite)
public boolean isOverwriteMibsInDatabase()
public boolean isLoadMibsFromDatabase()
public boolean isV3DatabaseFlag()
public void setV3DatabaseFlag(boolean v3Flag)
public void stopCurrentThread(boolean st)
public SnmpTablePanel getSnmpTablePanel()
public void setSnmpTablePanel(SnmpTablePanel panel)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||