com.agentpp.explorer.script.external
Interface TableRow


public interface TableRow

A TableRow instance represents a row of a SNMP table. It may also indicate certain error conditions that may occur during table retrival.

Since:
2.0
Version:
2.0
See Also:
Snmp.getTable(java.util.List, java.lang.String, java.lang.String)

Field Summary
static int STATUS_EXCEPTION
           
static int STATUS_OK
           
static int STATUS_REPORT
           
static int STATUS_TIMEOUT
           
static int STATUS_WRONG_ORDER
           
 
Method Summary
 org.snmp4j.smi.Variable get(int index)
           
 VariableBinding[] getColumns()
          Returns the column instances of this row.
 IObjectID getIndex()
          Returns the index OID of the row.
 java.util.List getIndexValues()
          Returns the index objects building up the row's index.
 int getStatus()
          Returns the (error) status of this row.
 

Field Detail

STATUS_OK

static final int STATUS_OK
See Also:
Constant Field Values

STATUS_EXCEPTION

static final int STATUS_EXCEPTION
See Also:
Constant Field Values

STATUS_REPORT

static final int STATUS_REPORT
See Also:
Constant Field Values

STATUS_TIMEOUT

static final int STATUS_TIMEOUT
See Also:
Constant Field Values

STATUS_WRONG_ORDER

static final int STATUS_WRONG_ORDER
See Also:
Constant Field Values
Method Detail

getStatus

int getStatus()
Returns the (error) status of this row.

Returns:
0 if no error occured or a value <0 if an error occured during row retrieval.

getColumns

VariableBinding[] getColumns()
Returns the column instances of this row.

Returns:
an array of VariableBinding instances or null if an error condition is associated with this row.

get

org.snmp4j.smi.Variable get(int index)

getIndex

IObjectID getIndex()
Returns the index OID of the row.

Returns:
the index OID (e.g. "6.112.117.98.108.105.99")

getIndexValues

java.util.List getIndexValues()
Returns the index objects building up the row's index.

Returns:
a List of sub-index objects.

Copyright 2003-2011, Frank Fock, All Rights Reserved. http://www.mibexplorer.com