| org.snmp4j.util.RetrievalEvent org.snmp4j.util.TableEvent
TableEvent | public class TableEvent extends RetrievalEvent (Code) | | The TableEvent class reports events in a table retrieval
operation.
author: Frank Fock version: 1.8 since: 1.0.2 See Also: TableUtils |
Constructor Summary | |
protected | TableEvent(Object source, Object userObject) | public | TableEvent(Object source, Object userObject, int status) Creates a table event with a status. | public | TableEvent(Object source, Object userObject, Exception exception) Creates a table event with an exception. | public | TableEvent(Object source, Object userObject, PDU report) Creates a table event with a report PDU. | public | TableEvent(Object source, Object userObject, OID index, VariableBinding[] cols) Creates a table event with row data.
Parameters: source - the source of the event. Parameters: userObject - the user object or null . Parameters: index - the index OID of the row. Parameters: cols - an array of VariableBinding instances containing theelements of the row. |
TableEvent | public TableEvent(Object source, Object userObject, int status)(Code) | | Creates a table event with a status.
Parameters: source - the source of the event. Parameters: userObject - the user object or null . Parameters: status - one of the status constants defined for this object. |
TableEvent | public TableEvent(Object source, Object userObject, Exception exception)(Code) | | Creates a table event with an exception.
Parameters: source - the source of the event. Parameters: userObject - the user object or null . Parameters: exception - an exception instance. |
TableEvent | public TableEvent(Object source, Object userObject, PDU report)(Code) | | Creates a table event with a report PDU.
Parameters: source - the source of the event. Parameters: userObject - the user object or null . Parameters: report - a PDU of type PDU.REPORT. |
TableEvent | public TableEvent(Object source, Object userObject, OID index, VariableBinding[] cols)(Code) | | Creates a table event with row data.
Parameters: source - the source of the event. Parameters: userObject - the user object or null . Parameters: index - the index OID of the row. Parameters: cols - an array of VariableBinding instances containing theelements of the row. The array may contain null elementswhich indicates that the agent does not return an instance for thatcolumn and row index. If an element is not null , thenthe OID of the variable binding contains the full instanceOID of the variable. |
getColumns | public VariableBinding[] getColumns()(Code) | | Gets the columnar objects of the row.
an array of VariableBinding instances containing theelements of the row. The array may contain null elementswhich indicates that the agent does not return an instance for thatcolumn and row index. If an element is not null , thenthe OID of the variable binding contains the full instanceOID of the variable.If TableEvent.isError() returns true , null will be returned. |
|
|