|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adventnet.snmp.beans.SnmpServer | +--com.adventnet.snmp.beans.SnmpTarget | +--com.adventnet.snmp.beans.SnmpTable | +--com.adventnet.snmp.beans.ClippedTable
The ClippedTable class is an extention of SnmpTable for large SNMP tables. A bean that uses this class is the SnmpTablePanel bean in the com.adventnet.snmp.ui package. Use the SnmpTablePanel bean when you need to display large tables.
See the largetable.java application example in the uiapplications directory.
Field Summary | |
int[] |
indeces
|
Fields inherited from class com.adventnet.snmp.beans.SnmpTable |
SNMP_VARIABLE_BINDING_DATA, SNMP_VARIABLE_DATA, STRING_DATA |
Fields inherited from class com.adventnet.snmp.beans.SnmpTarget |
serialize, SNMPGET, SNMPGETBULK, SNMPGETNEXT, SNMPINFORM, SNMPREPORT, SNMPRESPONSE, SNMPSET, SNMPTRAP, SNMPV2TRAP, VERSION1, VERSION2C, VERSION3 |
Fields inherited from class com.adventnet.snmp.beans.SnmpServer |
AUTH_NO_PRIV, AUTH_PRIV, MD5_AUTH, NO_AUTH, NO_AUTH_NO_PRIV, oidList, SHA_AUTH |
Constructor Summary | |
ClippedTable()
Use this constructor for Applications |
|
ClippedTable(java.applet.Applet applet)
Use this constructor for Applets |
Method Summary | |
void |
addRow(boolean status,
java.lang.String[] s)
To add a row of data into the table .Rows can be added to a table only if, the table is a SMIv1 table with EntryStatus defined or SMIv2 table with RowStatus defined. |
void |
emptyStack()
clear the contents of origin stack |
void |
emptyStackInd()
clear the contents of index stack |
protected void |
finalize()
Cleans up an object when there are no more references to that object. |
java.util.Vector |
getAllColumnNodes()
Gets all the column mib nodes available in the snmpTable. |
int |
getColumnIndex(java.lang.String colName)
Gets the index value of the column name specified. |
java.util.Vector |
getColumnMibNodes()
Gets the mib nodes for the columns in the table. |
java.util.Vector |
getColumns()
Returns vector of names of columns in the table. |
void |
getCurrentPage()
get currentPage |
int[] |
getHoles()
Gets the index of the not-implemented columns.Holes are the columns that are not defined by the agent. |
java.util.Vector |
getIndexMibNodes()
Gets the Mibnodes for the indices in Table |
java.util.Vector |
getIndexNames()
Gets the names of the indices in the table. |
java.lang.String |
getInstanceStr(int index)
used to display the index value of the selected row in table |
java.util.Vector |
getLeafSyntax()
|
int |
getModeOfGettingTable()
Not for API users.Returns the mode of getting table |
boolean |
getNext()
Returns the state of the button "Next" in SnmpTablePanel. |
java.lang.String[][] |
getNotAccessibleIndex()
Gets the values for the not-accessible indices of the snmpTable. |
java.util.Vector |
getNotAccessIndexColumns()
Gets the names of the not-accessible index columns in the table. |
int |
getNumCols()
Gets the total number of columns present in the SnmpTable |
int |
getNumOfVisibleRows()
Gets the number of rows that will be visible in the SnmpTablePanel. |
boolean |
getOverwriteCMI()
Gets the overwrite compiled mibs boolean. |
int |
getPageSize()
Returns the number of pages in table stack, i.e. |
int |
getPolledNumRows()
Gets the number of rows actually polled. |
java.lang.String |
getSerializedMibFileName()
gets the name of the Serialized Mib file |
java.util.Vector |
getSnmpVarVec(int i)
Gets a vector of SnmpVar value of the specified row in the table. |
java.lang.String |
getStringValueAt(int i,
int j)
Gets the string value for the cell specified by the row and column index. |
java.lang.String[] |
getTableColumnNames()
|
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 the boolean state of a cell whether the cell is editable or not. |
boolean |
isEndOfTable()
Returns the boolean state whether the end of table is reached or not. |
boolean |
isLoadFromCompiledMibs()
To check whether the mib will be loaded from CompiledMib files or not. |
boolean |
isLoadFromSerializedMibs()
To check whether the mib will be loaded from Serialized Mib files or not. |
boolean |
isReadDesc()
Retuns the boolean state of the reading descriptions from compiled modules. |
boolean |
isSerializeMibs()
gets the serializeMibs boolean |
protected void |
refresh()
refresh the table |
void |
run()
The run method does polling and updates of the table at specified polling itervals. |
void |
run1()
method added for the purpose of Table Updation.Not for API users. |
void |
setAugmentedDisplay(boolean augmented)
set the status of table whether it is augumented table or of its original table. |
void |
setHeaderName(int index,
java.lang.String name)
Sets the string value as the column header of the column given by the index. |
void |
setIndex()
adjust the oidList in stack for further operation when getting rows from origin. |
void |
setIndexForIndex()
Used to create a oidList from the index box ,push that oidlist into index stack and polling the table. |
void |
setIndexInd()
adjust the oidList in stack for further operation when getting rows starting with given index. |
void |
setLoadFromCompiledMibs(boolean flag)
Defines whether to load mib from compiled MIBs. |
void |
setLoadFromSerializedMibs(boolean flag)
Defines whether to load MIB from serialized file. |
void |
setModeOfGettingTable(int mode)
Not for API users.set the mode of getting table |
void |
setNext_1(boolean bool)
Not for API users. |
void |
setNext(boolean bool)
Not for API users. |
void |
setNumCols(int i)
Sets the number of columns to be visible in the SnmpTable panel. |
void |
setNumOfVisibleRows(int numVisibleRow)
Sets the number rows to be visible in the SnmpTablePanel. |
void |
setObjectIDList(java.lang.String[] s)
Sets the list of object IDs based on the specified string array. |
void |
setOverwriteCMI(boolean overWrite)
Defines whether to overwrite the existing compiled MIB files. |
void |
setReadDesc(boolean readFlag)
Sets the flag to read descriptions from compiled mib modules. |
void |
setSerializedMibFileName(java.lang.String serFileName)
Defines the name of the Serialized MIB File. |
void |
setSerializeMibs(boolean flag)
method defines whether to serialize the MibModule This flag should be set before loading the MIBs. |
void |
setSnmpOIDList(SnmpOID[] list)
Sets the list of object IDs given as an array of SnmpOID instances. |
void |
setStringOID(java.lang.String s)
Not for API users. |
void |
setStringValueAt(java.lang.String data,
int i,
int j)
Sets the value for the cell specified by the row and column index. |
void |
setsubOidList()
Not for API users. |
void |
setTableOID(java.lang.String tableOID)
Specify table to be used with this SnmpTable instance. |
void |
setvalue(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Sets the value for the cell specified by the row and column index. |
protected void |
showErrorMessage(java.lang.String str)
|
void |
stopCurrentThread(boolean st)
Used to stop the thread from reading table data Not for API users. |
void |
stopPolling()
This will stop the polling of table data. |
Methods inherited from class com.adventnet.snmp.beans.SnmpTable |
addRow, addSnmpTableListener, checkDifferences, compareRow, deleteRow, genTableEvent, getCellValue, getColumn, getColumn, getColumnClass, getColumnCount, getColumnMibNode, getColumnName, getDataType, getIndices, getNotAccessibleIndexColumns, getPerformSets, getPerformSets, getPollInterval, getRetrievalMode, getRow, getRow, getRowCount, getTableOID, getValueAt, refreshTable, removeSnmpTableListener, setCellValue, setColumnsPolled, setDataType, setParams, setPollInterval, setRetrievalMode, setTableOIDWoStart, setValueAt, startPollingTable, stopPollingTable |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.adventnet.snmp.beans.CustomizerTemplate |
create_v3_tables, getSnmpEngineTable, getUSMTable, initSecurityProvider, isSupportedSecurityModel, manage_v3_tables |
Field Detail |
public int[] indeces
Constructor Detail |
public ClippedTable()
public ClippedTable(java.applet.Applet applet)
Method Detail |
public boolean isAugmentedTable()
public void setAugmentedDisplay(boolean augmented)
public boolean isAugmentedDisplay()
public void setTableOID(java.lang.String tableOID) throws DataException
setTableOID
in class SnmpTable
tableOID
- the Object ID of the table, e.g. ifTable.DataException
- is thrown on errors.ErrorMessages.
public java.util.Vector getColumnMibNodes()
public java.util.Vector getAllColumnNodes()
public int getColumnIndex(java.lang.String colName)
colName
- column name of the table, e.g. ifTypepublic java.util.Vector getIndexNames()
public void addRow(boolean status, java.lang.String[] s) throws DataException
status
- true if the table has EntryStatus column and false if it has RowStatus column.s
- array of values to be added in the table.DataException
- is thrown on errorspublic void emptyStack()
public void emptyStackInd()
public void setIndexForIndex()
public void getCurrentPage()
public void setIndex()
public void setIndexInd()
public java.lang.String getInstanceStr(int index)
public void stopCurrentThread(boolean st)
public void run()
run
in class SnmpTable
ErrorMessages
,
SnmpTarget.getErrorCode()
,
SnmpTarget.getErrorString()
public void run1()
protected void refresh()
protected void showErrorMessage(java.lang.String str)
showErrorMessage
in class SnmpTable
public int[] getHoles()
getHoles
in class SnmpTable
public java.util.Vector getSnmpVarVec(int i)
i
- Row index for which the SnmpVar value is required.public void setvalue(java.lang.Object aValue, int rowIndex, int columnIndex)
aValue
- the new value to be set at the specified cellrowIndex
- the index of the row whose value is to be changed.columnIndex
- the index of the column whose value is to be changed.protected void finalize() throws java.lang.Throwable
finalize
in class SnmpTable
java.lang.Throwable
- in case of finalization errorspublic void setObjectIDList(java.lang.String[] s)
setObjectIDList
in class SnmpTable
s[]
- an array of column OIDs that need to be set.public void setSnmpOIDList(SnmpOID[] list)
setSnmpOIDList
in class SnmpTarget
list[]
- an array of SnmpOID instances.public int getPageSize()
public java.lang.String getStringValueAt(int i, int j)
i
- row index ( position of the row whose value is to be got )j
- column index ( position of the column whose value is to be got )setStringValueAt(java.lang.String data, int i, int j).
public void setStringValueAt(java.lang.String data, int i, int j)
data
- new value to be set at the specified cell.i
- row index ( position of the row whose value is to be changed )j
- column index ( position of the column whose value is to be changed )public void setsubOidList()
public int getModeOfGettingTable()
public void setModeOfGettingTable(int mode)
mode
- 1 to get the table data from the beginning and
2 to get the table data starting from the index.public boolean isEndOfTable()
public boolean getNext()
public void setNext(boolean bool)
public void setNext_1(boolean bool)
public int getPolledNumRows()
public java.util.Vector getIndexMibNodes()
public void setHeaderName(int index, java.lang.String name)
index
- the index of the column whose header value has to be set.name
- the new name with which the column header has to be changed.public java.util.Vector getColumns()
public java.lang.String[] getTableColumnNames()
public java.util.Vector getLeafSyntax()
public int getNumOfVisibleRows()
public void setNumOfVisibleRows(int numVisibleRow)
numVisibleRow
- the number of rows to be visible.public int getNumCols()
public void setNumCols(int i)
i
- the number of columns to be visible.public void stopPolling()
public void setStringOID(java.lang.String s)
public void setSerializeMibs(boolean flag)
setSerializeMibs
in class SnmpServer
public boolean isSerializeMibs()
isSerializeMibs
in class SnmpServer
public void setLoadFromSerializedMibs(boolean flag)
setLoadFromSerializedMibs
in class SnmpServer
flag
- true or false.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.
setLoadFromCompiledMibs
in class SnmpServer
flag
- true or falsepublic void setOverwriteCMI(boolean overWrite)
setOverwriteCMI
in class SnmpServer
overWrite
- true to overwrite excisting mibfiles and false otherwise.public boolean getOverwriteCMI()
getOverwriteCMI
in class SnmpServer
public void setReadDesc(boolean readFlag)
setReadDesc
in class SnmpServer
readFlag
- - true or false.public boolean isReadDesc()
isReadDesc
in class SnmpServer
public boolean isLoadFromSerializedMibs()
isLoadFromSerializedMibs
in class SnmpServer
public boolean isLoadFromCompiledMibs()
isLoadFromCompiledMibs
in class SnmpServer
public void setSerializedMibFileName(java.lang.String serFileName)
setSerializedMibFileName
in class SnmpServer
serFileName
- Name of the serialized file.public java.lang.String getSerializedMibFileName()
getSerializedMibFileName
in class SnmpServer
public java.lang.String[][] getNotAccessibleIndex()
getNotAccessibleIndex
in class SnmpTable
public java.util.Vector getNotAccessIndexColumns()
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in class SnmpTable
rowIndex
- the index of the row which has to be checked.columnIndex
- the index of the column which has to be checked.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |