public class TableEvent extends RetrievalEvent
TableEvent
class reports events in a table retrieval
operation.TableUtils
,
Serialized Formexception, reportPDU, status, STATUS_EXCEPTION, STATUS_OK, STATUS_REPORT, STATUS_TIMEOUT, STATUS_WRONG_ORDER, userObject, vbs
source
Modifier | Constructor and Description |
---|---|
protected |
TableEvent(TableUtils.TableRequest source,
Object userObject) |
|
TableEvent(TableUtils.TableRequest source,
Object userObject,
Exception exception)
Creates a table event with an exception.
|
|
TableEvent(TableUtils.TableRequest source,
Object userObject,
int status)
Creates a table event with a status.
|
|
TableEvent(TableUtils.TableRequest source,
Object userObject,
OID index,
VariableBinding[] cols)
Creates a table event with row data.
|
|
TableEvent(TableUtils.TableRequest source,
Object userObject,
PDU report)
Creates a table event with a report PDU.
|
Modifier and Type | Method and Description |
---|---|
VariableBinding[] |
getColumns()
Gets the columnar objects of the row.
|
OID |
getIndex()
Gets the row index OID.
|
String |
toString() |
getErrorMessage, getException, getReportPDU, getStatus, getUserObject, isError
getSource
protected TableEvent(TableUtils.TableRequest source, Object userObject)
public TableEvent(TableUtils.TableRequest source, 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(TableUtils.TableRequest source, Object userObject, Exception exception)
source
- the source of the event.userObject
- the user object or null
.exception
- an exception instance.public TableEvent(TableUtils.TableRequest source, 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(TableUtils.TableRequest source, 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.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 String toString()
toString
in class RetrievalEvent
Copyright © 2014 SNMP4J.org. All rights reserved.