|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.snmp4j.util.RetrievalEvent
org.snmp4j.util.TableEvent
public class TableEvent
The TableEvent
class reports events in a table retrieval
operation.
TableUtils
,
Serialized FormField Summary |
---|
Fields inherited from class org.snmp4j.util.RetrievalEvent |
---|
exception, reportPDU, status, STATUS_EXCEPTION, STATUS_OK, STATUS_REPORT, STATUS_TIMEOUT, STATUS_WRONG_ORDER, userObject, vbs |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
protected |
TableEvent(java.lang.Object source,
java.lang.Object userObject)
|
|
TableEvent(java.lang.Object source,
java.lang.Object userObject,
java.lang.Exception exception)
Creates a table event with an exception. |
|
TableEvent(java.lang.Object source,
java.lang.Object userObject,
int status)
Creates a table event with a status. |
|
TableEvent(java.lang.Object source,
java.lang.Object userObject,
OID index,
VariableBinding[] cols)
Creates a table event with row data. |
|
TableEvent(java.lang.Object source,
java.lang.Object userObject,
PDU report)
Creates a table event with a report PDU. |
Method Summary | |
---|---|
VariableBinding[] |
getColumns()
Gets the columnar objects of the row. |
OID |
getIndex()
Gets the row index OID. |
java.lang.String |
toString()
|
Methods inherited from class org.snmp4j.util.RetrievalEvent |
---|
getErrorMessage, getException, getReportPDU, getStatus, getUserObject, isError |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected TableEvent(java.lang.Object source, java.lang.Object userObject)
public TableEvent(java.lang.Object source, java.lang.Object userObject, int status)
source
- the source of the event.userObject
- the user object or null
.status
- one of the status constants defined for this object.public TableEvent(java.lang.Object source, java.lang.Object userObject, java.lang.Exception exception)
source
- the source of the event.userObject
- the user object or null
.exception
- an exception instance.public TableEvent(java.lang.Object source, java.lang.Object userObject, PDU report)
source
- the source of the event.userObject
- the user object or null
.report
- a PDU of type PDU.REPORT
.public TableEvent(java.lang.Object source, java.lang.Object userObject, OID index, VariableBinding[] cols)
source
- the source of the event.userObject
- the user object or null
.index
- the index OID of the row.cols
- an array of VariableBinding
instances containing the
elements of the row. The array may contain null
elements
which indicates that the agent does not return an instance for that
column and row index. If an element is not null
, then
the OID
of the variable binding contains the full instance
OID
of the variable.Method Detail |
---|
public OID getIndex()
null
if RetrievalEvent.isError()
returns
true
.public VariableBinding[] getColumns()
VariableBinding
instances containing the
elements of the row. The array may contain null
elements
which indicates that the agent does not return an instance for that
column and row index. If an element is not null
, then
the OID
of the variable binding contains the full instance
OID
of the variable.
If RetrievalEvent.isError()
returns true
, null
will be returned.
public java.lang.String toString()
toString
in class RetrievalEvent
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |