com.adventnet.snmp.beans
Class ClippedTable

java.lang.Object
  |
  +--com.adventnet.snmp.beans.SnmpServer
        |
        +--com.adventnet.snmp.beans.SnmpTarget
              |
              +--com.adventnet.snmp.beans.SnmpTable
                    |
                    +--com.adventnet.snmp.beans.ClippedTable
All Implemented Interfaces:
CustomizerTemplate, java.util.EventListener, java.lang.Runnable, java.io.Serializable, java.beans.VetoableChangeListener

public class ClippedTable
extends SnmpTable

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.

See Also:
Serialized Form

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 com.adventnet.snmp.beans.SnmpTarget
addLogClient, addLogClient, addObjectID, addResultListener, addSnmpOID, addSnmpPropertyListener, addV3HandShakeResultListener, genEvent, genTimeoutEvent, getAttemptComplete, getAttemptPartial, getAuthPassword, getAuthProtocol, getCommunity, getCompleteResponse, getContextID, getContextName, getDebug, getErrorCode, getErrorIndex, getErrorString, getExceptionCode, getIgnoreSpecificControlCodes, getMaxNumRows, getMaxRepetitions, getMibModules, getMibOperations, getNonRepeaters, getObjectID, getObjectID, getObjectIDList, getPrincipal, getPrivPassword, getRetries, getSecurityLevel, getSecurityModel, getSendTimeoutEvents, getSnmpOID, getSnmpOIDList, getSnmpVersion, getTargetHost, getTargetPort, getTimeout, getVarBindCount, getWriteCommunity, isInSubTree, isSerialize, loadMibs, releaseResources, removeLogClient, removeResultListener, removeSnmpPropertyListener, removeV3HandShakeListener, setAttemptComplete, setAttemptPartial, setAuthPassword, setAuthProtocol, setCommunity, setContextID, setContextName, setDebug, setIgnoreSpecificControlCodes, setMaxNumRows, setMaxRepetitions, setMibModules, setNonRepeaters, setObjectID, setObjectID, setParams, setParams, setPrincipal, setPrivPassword, setRetries, setSecurityLevel, setSecurityModel, setSendTimeoutEvents, setSnmpOID, setSnmpVersion, setTargetHost, setTargetPort, setTimeout, setVarBindCount, setWriteCommunity, snmpGet, snmpGet, snmpGetAllList, snmpGetAllVariableBindings, snmpGetAllVariables, snmpGetBulkList, snmpGetBulkVariableBindings, snmpGetBulkVariables, snmpGetList, snmpGetList, snmpGetNext, snmpGetNext, snmpGetNextList, snmpGetNextList, snmpGetNextVariable, snmpGetNextVariableBinding, snmpGetNextVariableBindings, snmpGetNextVariables, snmpGetVariable, snmpGetVariableBinding, snmpGetVariableBindings, snmpGetVariables, snmpSendInformAcknowledgement, snmpSendInformRequest, snmpSendInformRequest, snmpSendNotification, snmpSendNotification, snmpSendTrap, snmpSendTrap, snmpSet, snmpSet, snmpSetList, snmpSetVariable, snmpSetVariables, vetoableChange
 
Methods inherited from class com.adventnet.snmp.beans.SnmpServer
async_create_v3_tables, create_v3_tables, genEvent, getCharacterEncoding, getHostAddress, getLocalAddresses, getMibPath, getSecLevelForTimeSync, getSecurityProvider, getSecurityTable, getSnmpEngineID, getSnmpEngineTable, getTimeoutInMilliSec, getTimeToWait, getUSMTable, getV3ConfigTable, initJdbcParams, initSecurityProvider, isLoadMibsFromDatabase, isOverwriteCMI, isOverwriteMibsInDatabase, isSendPDUByGroup, isSetAutoInformResponse, isSupportedSecurityModel, isV3DatabaseFlag, manage_v3_tables, managing_v3_tables, setAutoInformResponse, setCharacterEncoding, setLoadMibsFromDatabase, setMibOperations, setMibPath, setOverwriteMibsInDatabase, setReceiveBufferSize, setSecLevelForTimeSync, setSendPDUByGroup, setSnmpEngineID, setTimeoutInMilliSec, setTimeToWait, setV3ConfigTable, setV3DatabaseFlag
 
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

indeces

public int[] indeces
Constructor Detail

ClippedTable

public ClippedTable()
Use this constructor for Applications

ClippedTable

public ClippedTable(java.applet.Applet applet)
Use this constructor for Applets
Method Detail

isAugmentedTable

public boolean isAugmentedTable()
returns whether the table is augmented one or not

setAugmentedDisplay

public void setAugmentedDisplay(boolean augmented)
set the status of table whether it is augumented 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

isAugmentedDisplay

public boolean isAugmentedDisplay()
returns the status of table whether it is agugmented table or of its original table.
Returns:
true if the visible table is its augmented table, returns false if it is a original table what specified in setTableOID.

setTableOID

public void setTableOID(java.lang.String tableOID)
                 throws DataException
Specify table to be used with this SnmpTable instance. MIB containing this table must be loaded in this VM. This will set the following errors codes INVALID_TABLE_OID,MIB_NODE_UNAVAIL,INVALID_TABLE_OID EXT_INDEX_UNAVAIL.
Overrides:
setTableOID in class SnmpTable
Parameters:
tableOID - the Object ID of the table, e.g. ifTable.
Throws:
DataException - is thrown on errors.
See Also:
ErrorMessages.

getColumnMibNodes

public java.util.Vector getColumnMibNodes()
Gets the mib nodes for the columns in the table.
Returns:
vector of MibNodes for columns in table specified by tableOID.

getAllColumnNodes

public java.util.Vector getAllColumnNodes()
Gets all the column mib nodes available in the snmpTable.
Returns:
vector of MibNodes for columns in table specified by tableOID

getColumnIndex

public int getColumnIndex(java.lang.String colName)
Gets the index value of the column name specified.
Parameters:
colName - column name of the table, e.g. ifType
Returns:
the index of the column name as an int value.

getIndexNames

public java.util.Vector getIndexNames()
Gets the names of the indices in the table.
Returns:
vector of names of indexes in the table specified by tableOID

addRow

public void addRow(boolean status,
                   java.lang.String[] s)
            throws DataException
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.
Parameters:
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.
Throws:
DataException - is thrown on errors

emptyStack

public void emptyStack()
clear the contents of origin stack

emptyStackInd

public void emptyStackInd()
clear the contents of index stack

setIndexForIndex

public void setIndexForIndex()
Used to create a oidList from the index box ,push that oidlist into index stack and polling the table. Not for API users.

getCurrentPage

public void getCurrentPage()
get currentPage

setIndex

public void setIndex()
adjust the oidList in stack for further operation when getting rows from origin. Not for API users.

setIndexInd

public void setIndexInd()
adjust the oidList in stack for further operation when getting rows starting with given index. Not for API users.

getInstanceStr

public java.lang.String getInstanceStr(int index)
used to display the index value of the selected row in table

stopCurrentThread

public void stopCurrentThread(boolean st)
Used to stop the thread from reading table data Not for API users.

run

public void run()
The run method does polling and updates of the table at specified polling itervals. The following errorCodes can be set SNMP_NOT_INIT, INVALID_VERSION, OID_NOT_SPECIFIED, REQ_TIMEDOUT, EMPTY_VAR_BIND, IP_ADDR_NOT_SPECIFIED, SESSION_REMOTE_HOST_UNKNOWN, SECURITYEXP_CONNECTING_REMOTE_HOST, UNKNOWN_ERR, SNMP errors defined in ErrorMessages INVALID_CONTEXT_NAME ,INVALID_CONTEXT_ID.
Overrides:
run in class SnmpTable
See Also:
ErrorMessages, SnmpTarget.getErrorCode(), SnmpTarget.getErrorString()

run1

public void run1()
method added for the purpose of Table Updation.Not for API users.

refresh

protected void refresh()
refresh the table

showErrorMessage

protected void showErrorMessage(java.lang.String str)
Overrides:
showErrorMessage in class SnmpTable

getHoles

public int[] getHoles()
Gets the index of the not-implemented columns.Holes are the columns that are not defined by the agent.
Overrides:
getHoles in class SnmpTable
Returns:
int[] int array of indices of columns that are not implemented in agent

getSnmpVarVec

public java.util.Vector getSnmpVarVec(int i)
Gets a vector of SnmpVar value of the specified row in the table.
Parameters:
i - Row index for which the SnmpVar value is required.
Returns:
a vector of SnmpVar value of the specified row in the table.

setvalue

public void setvalue(java.lang.Object aValue,
                     int rowIndex,
                     int columnIndex)
Sets the value for the cell specified by the row and column index. The row and column index represent the position of the row and column in the table, both starting with zero.
Parameters:
aValue - the new value to be set at the specified cell
rowIndex - the index of the row whose value is to be changed.
columnIndex - the index of the column whose value is to be changed.

finalize

protected void finalize()
                 throws java.lang.Throwable
Cleans up an object when there are no more references to that object.
Overrides:
finalize in class SnmpTable
Throws:
java.lang.Throwable - in case of finalization errors

setObjectIDList

public void setObjectIDList(java.lang.String[] s)
Sets the list of object IDs based on the specified string array.
Overrides:
setObjectIDList in class SnmpTable
Parameters:
s[] - an array of column OIDs that need to be set.

setSnmpOIDList

public void setSnmpOIDList(SnmpOID[] list)
Sets the list of object IDs given as an array of SnmpOID instances.
Overrides:
setSnmpOIDList in class SnmpTarget
Parameters:
list[] - an array of SnmpOID instances.

getPageSize

public int getPageSize()
Returns the number of pages in table stack, i.e. the number of pages that are done with this table.
Returns:
the number of pages in the table stack.

getStringValueAt

public java.lang.String getStringValueAt(int i,
                                         int j)
Gets the string value for the cell specified by the row and column index. The row and column index represent the position of the row and column in the table,both starting with zero.
Parameters:
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 )
Returns:
the String value at the specified row and column index.Null if the table OID is invalid.
See Also:
setStringValueAt(java.lang.String data, int i, int j).

setStringValueAt

public void setStringValueAt(java.lang.String data,
                             int i,
                             int j)
Sets the value for the cell specified by the row and column index. The row and column index represent the position of the row and column in the table,both starting with zero.
Parameters:
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 )

setsubOidList

public void setsubOidList()
Not for API users.

getModeOfGettingTable

public int getModeOfGettingTable()
Not for API users.Returns the mode of getting table
Returns:
1 if the table will be retrieved from the first row and 2 if the table will be retrieved from a particular index.

setModeOfGettingTable

public void setModeOfGettingTable(int mode)
Not for API users.set the mode of getting table
Parameters:
mode - 1 to get the table data from the beginning and 2 to get the table data starting from the index.

isEndOfTable

public boolean isEndOfTable()
Returns the boolean state whether the end of table is reached or not.
Returns:
true if the end of table is reached and false otherwise.

getNext

public boolean getNext()
Returns the state of the button "Next" in SnmpTablePanel.
Returns:
the true if the "Next" button is enabled and false otherwise.

setNext

public void setNext(boolean bool)
Not for API users. Used to set the state of the Button "Next" in SnmpTablePanel.

setNext_1

public void setNext_1(boolean bool)
Not for API users. Used to set the state of button "Next" within the Operation of "Next".

getPolledNumRows

public int getPolledNumRows()
Gets the number of rows actually polled.
Returns:
the number of rows actually polled.

getIndexMibNodes

public java.util.Vector getIndexMibNodes()
Gets the Mibnodes for the indices in Table
Returns:
the vector of mibnodes for indices.

setHeaderName

public void setHeaderName(int index,
                          java.lang.String name)
Sets the string value as the column header of the column given by the index.
Parameters:
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.

getColumns

public java.util.Vector getColumns()
Returns vector of names of columns in the table.
Returns:
vector of names of the columns.

getTableColumnNames

public java.lang.String[] getTableColumnNames()

getLeafSyntax

public java.util.Vector getLeafSyntax()

getNumOfVisibleRows

public int getNumOfVisibleRows()
Gets the number of rows that will be visible in the SnmpTablePanel.
Returns:
the number of rows to be visible in the SnmpTablePanel

setNumOfVisibleRows

public void setNumOfVisibleRows(int numVisibleRow)
Sets the number rows to be visible in the SnmpTablePanel.
Parameters:
numVisibleRow - the number of rows to be visible.

getNumCols

public int getNumCols()
Gets the total number of columns present in the SnmpTable
Returns:
the number of columns present in the snmpTable.

setNumCols

public void setNumCols(int i)
Sets the number of columns to be visible in the SnmpTable panel.
Parameters:
i - the number of columns to be visible.

stopPolling

public void stopPolling()
This will stop the polling of table data.

setStringOID

public void setStringOID(java.lang.String s)
Not for API users.

setSerializeMibs

public void setSerializeMibs(boolean flag)
method defines whether to serialize the MibModule This flag should be set before loading the MIBs. If this is set to true it will serialize the loaded MIBs. For ex: if RMON2-MIB is loaded, it will serialize this module along with the Imported Modules viz ., RFC1271-MIB,RFC1213-MIB,TOKEN-RING-RMON and saves it in a single file.The name of the serialized file can be set using the setSerializedMibFileName() method. In case,if serialized file name is not set,it will save the serialized file with the MIB file name along with ".ser" extension.Here, it will save it as RMON2-MIB.ser. Serialization is not supported in applets.
Overrides:
setSerializeMibs in class SnmpServer

isSerializeMibs

public boolean isSerializeMibs()
gets the serializeMibs boolean
Overrides:
isSerializeMibs in class SnmpServer

setLoadFromSerializedMibs

public void setLoadFromSerializedMibs(boolean flag)
Defines whether to load MIB from serialized file. This flag should be set before loading the MIBs. If both serializeMibs and loadFromSerializedMibs is set to true, it will just try to load the MIB as a serialized file.
Overrides:
setLoadFromSerializedMibs in class SnmpServer
Parameters:
flag - true or false.

setLoadFromCompiledMibs

public void setLoadFromCompiledMibs(boolean flag)
Defines whether to load mib from compiled MIBs. This flag should be set before loading the MIBs (By default it is set to false). If this flag is set to true, it will load from compiled file( i.e; .cmi and .cds files). For ex: RMON2-MIB is loaded, it will automatically load RMON2-MIB.cmi if it exists.otherwise it creates compiled files by parsing and then loads from it. If this flag is set to false, the mib is loaded without creating .cmi and .cds files. This is recommended in case of applets where you have security restrictions for file creation. This is slightly slower than loading from precompiled mibs. In Applets, precompiled mibs can be loaded but it cannot create/write compiled files.

If both loadFromSerializedMibs and loadFromCompiledMibs is set to true, it will just try to load the MIB as a serialized file.

Overrides:
setLoadFromCompiledMibs in class SnmpServer
Parameters:
flag - true or false

setOverwriteCMI

public void setOverwriteCMI(boolean overWrite)
Defines whether to overwrite the existing compiled MIB files. NOTE: This applies only when the setLoadFromCompiledMibs is set to true.
Overrides:
setOverwriteCMI in class SnmpServer
Parameters:
overWrite - true to overwrite excisting mibfiles and false otherwise.

getOverwriteCMI

public boolean getOverwriteCMI()
Gets the overwrite compiled mibs boolean. NOTE: This applies only when the setLoadFromCompiledMibs is set to true.
Overrides:
getOverwriteCMI in class SnmpServer

setReadDesc

public void setReadDesc(boolean readFlag)
Sets the flag to read descriptions from compiled mib modules. Default is true. Set it to false if you don't need the descriptions. NOTE: This applies only when the setLoadFromCompiledMibs is set to true.
Overrides:
setReadDesc in class SnmpServer
Parameters:
readFlag - - true or false.

isReadDesc

public boolean isReadDesc()
Retuns the boolean state of the reading descriptions from compiled modules.
Overrides:
isReadDesc in class SnmpServer
Returns:
true if reading descriptions from compiled modules is enabled and false otherwise.

isLoadFromSerializedMibs

public boolean isLoadFromSerializedMibs()
To check whether the mib will be loaded from Serialized Mib files or not.
Overrides:
isLoadFromSerializedMibs in class SnmpServer
Returns:
true if the mib will be loaded from serialized mib files and false otherwise.

isLoadFromCompiledMibs

public boolean isLoadFromCompiledMibs()
To check whether the mib will be loaded from CompiledMib files or not.
Overrides:
isLoadFromCompiledMibs in class SnmpServer
Returns:
true if the mib will be loaded from compiled mib files and false otherwise.

setSerializedMibFileName

public void setSerializedMibFileName(java.lang.String serFileName)
Defines the name of the Serialized MIB File. The Serialized File will be saved with this filename in the directory from which the mib is loaded.
Overrides:
setSerializedMibFileName in class SnmpServer
Parameters:
serFileName - Name of the serialized file.

getSerializedMibFileName

public java.lang.String getSerializedMibFileName()
gets the name of the Serialized Mib file
Overrides:
getSerializedMibFileName in class SnmpServer

getNotAccessibleIndex

public java.lang.String[][] getNotAccessibleIndex()
Gets the values for the not-accessible indices of the snmpTable.
Overrides:
getNotAccessibleIndex in class SnmpTable
Returns:
a two dimesional String array of the values of not-accessible indices of the snmpTable.Null if the table does not have any not-accessible index.

getNotAccessIndexColumns

public java.util.Vector getNotAccessIndexColumns()
Gets the names of the not-accessible index columns in the table.
Returns:
a vector of names of the not-accessible index columns.Null if the table does not have any not-accessible index column.

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Returns the boolean state of a cell whether the cell is editable or not. The cell is specified by the corresponding row index and column index.
Overrides:
isCellEditable in class SnmpTable
Parameters:
rowIndex - the index of the row which has to be checked.
columnIndex - the index of the column which has to be checked.
Returns:
true if the cell is editable and false if the cell is not-editable.


Copyright (c)AdventNet Inc., 1996-2004