|
|||||||||
| 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 | |
(package private) boolean |
end_flag
|
(package private) boolean |
end_flagInd
|
(package private) int |
FROM_INDEX
|
(package private) int |
FROM_ORIGIN
|
int[] |
indeces
|
(package private) boolean |
index_flag
|
(package private) java.util.Vector |
indexMibNodes
|
(package private) java.util.Vector |
indexNames
|
(package private) boolean |
isAugmentedDisplay
|
(package private) int |
modeOfGetting
|
(package private) boolean |
next
|
(package private) boolean |
next_1
|
(package private) int |
numberVisibleRow
|
(package private) boolean |
polling
|
(package private) int |
row_count
|
(package private) java.util.Stack |
stack
|
(package private) java.util.Stack |
stackInd
|
(package private) boolean |
stop
|
(package private) java.lang.String[][] |
stringData
|
(package private) java.lang.String |
stroid
|
(package private) SnmpOID[] |
subOidList
|
(package private) java.lang.String |
tableoid
|
(package private) int |
temp_count
|
| Fields inherited from class com.adventnet.snmp.beans.SnmpTable |
ADDandDELcol,
augmentedTableoid,
cnam,
colOIDs,
columnClass,
columnNames,
columns,
columnsPolled,
DATA_TYPE,
editable,
externalIndices,
holes,
holesCount,
holesGot,
isAugmentedTable,
isEntryStatus,
isNotInSubTree,
noAccessIndex,
nodes,
num_col,
performSets,
pollInterval,
RETRIEVAL_MODE,
rootoid,
rowtry,
shifting,
SNMP_VARIABLE_BINDING_DATA,
SNMP_VARIABLE_DATA,
STRING_DATA,
syntax,
tableData,
tableListeners,
tableOID,
thisThread |
| Fields inherited from class com.adventnet.snmp.beans.SnmpTarget |
ackFlag,
debugListeners,
genericTrap,
genericTraps,
informReqID,
mibModules,
serialize,
SNMPGET,
SNMPGETBULK,
SNMPGETNEXT,
SNMPINFORM,
SNMPREPORT,
SNMPRESPONSE,
SNMPSET,
SNMPTRAP,
snmpTrapEnterprise,
snmpTrapOid,
SNMPV2TRAP,
upTime,
VERSION1,
VERSION2C,
VERSION3 |
| 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. |
(package private) void |
copyIndex()
|
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 java.lang.Object |
|
| Field Detail |
boolean stop
java.util.Stack stack
java.util.Stack stackInd
SnmpOID[] subOidList
java.lang.String[][] stringData
boolean next
int numberVisibleRow
int row_count
int temp_count
public int[] indeces
boolean end_flag
boolean end_flagInd
boolean index_flag
boolean polling
java.util.Vector indexNames
java.util.Vector indexMibNodes
boolean isAugmentedDisplay
java.lang.String tableoid
boolean next_1
java.lang.String stroid
int FROM_ORIGIN
int FROM_INDEX
int modeOfGetting
| 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
tableOID - the Object ID of the table, e.g. ifTable.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.void copyIndex()
public 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()
ErrorMessages,
SnmpTarget.getErrorCode(),
SnmpTarget.getErrorString()public void run1()