|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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.SnmpAugmentTable
The SnmpAugmentTable class is an extension of SnmpTable and
this class provide some additional supports like
Augment Table
External Indices and
NotAccessible Indices .
Field Summary |
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, CBC_3DES, CBC_DES, CFB_AES_128, CFB_AES_192, CFB_AES_256, MD5_AUTH, NO_AUTH, NO_AUTH_NO_PRIV, NO_PRIV, oidList, SHA_AUTH |
Constructor Summary | |
SnmpAugmentTable()
Use this constructor for applications. |
|
SnmpAugmentTable(java.applet.Applet applet)
Use this constructor for applets. |
|
SnmpAugmentTable(int protocol,
ProtocolOptions options)
Use this constructor for applications which uses protocols other than UDP/IP. |
|
SnmpAugmentTable(int port,
java.lang.String session)
Use this constructor for creating a new session for this application. |
|
SnmpAugmentTable(SnmpSession ses,
MibOperations mib)
This constructor is used to create an SnmpAugmentTable instance with a specified SnmpSession and MibOperations. |
Method Summary | |
java.lang.Object |
getCellValue(java.lang.String tableOID,
int rowIndex,
int columnIndex)
To get the value for the cell specified by the row and column index. |
java.lang.String[] |
getRow(java.lang.String tableOID,
java.lang.String index)
Returns the data for a row of the Table specified by the index . |
void |
refreshTable()
Refreshes the table data. |
void |
setAllParams(java.lang.String host,
java.lang.String mib,
java.lang.String tableOID)
To set multiple parameters like TargetHost,MibModule and TableOID. |
void |
setCellValue(java.lang.String tableOID,
java.lang.Object aValue,
int rowIndex,
int columnIndex)
Sets the value for the cell specified by the row and column index. |
void |
setOIDList(java.lang.String[] s)
Sets the column names of the table that needs to be polled. |
void |
setTableObjectID(java.lang.String tableOID)
Sets the table OID to be used with this SnmpAugmentTable instance. |
void |
setTableObjectIDWoStart(java.lang.String tableOID)
To set the table OID without starting polling. |
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 |
Constructor Detail |
public SnmpAugmentTable(SnmpSession ses, MibOperations mib)
ses
- Instance of SnmpSession
but not null and also the created
SnmpSession should be opened before using in this constructor.mib
- Instance of MibOperations
public SnmpAugmentTable()
public SnmpAugmentTable(int protocol, ProtocolOptions options)
public SnmpAugmentTable(int port, java.lang.String session)
public SnmpAugmentTable(java.applet.Applet applet)
Method Detail |
public void setTableObjectID(java.lang.String tableOID) throws DataException
tableOID
- the Object ID of the table, e.g. ifTable
DataException
- is thrown if data is invalid
The following errorcodes can be set MIB_NODE_UNAVAIL,INVALID_TABLE_OIDErrorMessages
,
SnmpTarget.getErrorString()
,
SnmpTarget.getErrorCode()
public void setTableObjectIDWoStart(java.lang.String tableOID) throws DataException
tableOID
- OID of the table as a String
DataException
- is thrown if data is invalid
The following errorcodes can be set MIB_NODE_UNAVAIL,INVALID_TABLE_OIDErrorMessages
,
SnmpTarget.getErrorString()
,
SnmpTarget.getErrorCode()
public void setOIDList(java.lang.String[] s)
s
- a one dimensional array of column namespublic java.lang.Object getCellValue(java.lang.String tableOID, int rowIndex, int columnIndex)
getCellValue
in class SnmpTable
tableOID
- OID of the table to which the cell belongs.rowIndex
- position of the row whose value is to be looked up.columnIndex
- position of the column whose value is to be looked up.
ErrorMessages
,
SnmpTarget.getErrorString()
,
SnmpTarget.getErrorCode()
,
SnmpTable.setDataType(int type)
,
setCellValue(String tableOID,Object aValue, int rowIndex,int columnIndex)
public void setCellValue(java.lang.String tableOID, java.lang.Object aValue, int rowIndex, int columnIndex)
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 and INVALID_CONTEXT_ID are only for V3 ).
setCellValue
in class SnmpTable
tableOID
- OID of the table to which the cell belongs.aValue
- the new value that needs to be set.rowIndex
- position of the row whose value is to be changed.columnIndex
- position of the column whose value is to be changed.getCellValue(String tableOID, int rowIndex, int columnIndex)
,
ErrorMessages
,
SnmpTarget.getErrorCode()
,
SnmpTarget.getErrorString()
public java.lang.String[] getRow(java.lang.String tableOID, java.lang.String index)
getRow
in class SnmpTable
tableOID
- the OID of the table to which the row belongs.index
- instance value of the row in the table.
SnmpTable.getRow(int index)
public void refreshTable()
refreshTable
in class SnmpTable
public void setAllParams(java.lang.String host, java.lang.String mib, java.lang.String tableOID)
host
- target hostmib
- mib filetableOID
- OID of the table
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |