org.ow2.jasmine.interfaces.snmp.alarms
Class SNMPAlarm

java.lang.Object
  extended by org.ow2.jasmine.interfaces.snmp.alarms.SNMPAlarm
All Implemented Interfaces:
org.snmp4j.agent.mo.MOTableRow

public class SNMPAlarm
extends Object
implements org.snmp4j.agent.mo.MOTableRow

MIB implementation for alarms.

Represents an alarm as a table row.

Author:
Laurent RUAUD

Field Summary
static int COLUMN_COUT
          The number of column in each row
 
Constructor Summary
SNMPAlarm(int id)
          Creates a row referencing the specified alarm.
 
Method Summary
 org.snmp4j.agent.mo.MOTableRow getBaseRow()
          Gets the associated base row for this row (if this row is a dependent row).
 org.snmp4j.smi.OID getIndex()
          Gets the row's index OID.
 org.snmp4j.smi.Variable getValue(int column)
          Gets the value at the specified column index.
 void setBaseRow(org.snmp4j.agent.mo.MOTableRow arg0)
          Sets the associated base row.
 int size()
          Returns the number of columns in this row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_COUT

public static int COLUMN_COUT
The number of column in each row

Constructor Detail

SNMPAlarm

public SNMPAlarm(int id)
Creates a row referencing the specified alarm.

Parameters:
index - the object identifier for this row.
id - id of the alarm to be referenced..
Method Detail

getIndex

public org.snmp4j.smi.OID getIndex()
Gets the row's index OID.

Specified by:
getIndex in interface org.snmp4j.agent.mo.MOTableRow
Returns:
the object identifier for this row.

getValue

public org.snmp4j.smi.Variable getValue(int column)
Gets the value at the specified column index.

Specified by:
getValue in interface org.snmp4j.agent.mo.MOTableRow
Returns:
the value at the specified column index.

size

public int size()
Returns the number of columns in this row.

Specified by:
size in interface org.snmp4j.agent.mo.MOTableRow
Returns:
the number of columns in this row.

getBaseRow

public org.snmp4j.agent.mo.MOTableRow getBaseRow()
Gets the associated base row for this row (if this row is a dependent row).

Specified by:
getBaseRow in interface org.snmp4j.agent.mo.MOTableRow
Returns:
null

setBaseRow

public void setBaseRow(org.snmp4j.agent.mo.MOTableRow arg0)
Sets the associated base row. Not used.

Specified by:
setBaseRow in interface org.snmp4j.agent.mo.MOTableRow


Copyright © 2012 OW2 Consortium. All Rights Reserved.