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

java.lang.Object
  extended by org.ow2.jasmine.interfaces.snmp.alarms.SNMPAlarmMIB
All Implemented Interfaces:
org.snmp4j.agent.MOGroup

public class SNMPAlarmMIB
extends Object
implements org.snmp4j.agent.MOGroup

Implementation of the alarm part of the JASMINe MIB.

This MIB only contains a tabular object: the alarms' data.

This class must only be manipulated via its unique instance.

Author:
Laurent RUAUD

Field Summary
static org.snmp4j.smi.OID oidAlarmDataEntry
          The identifier of the branch containing the alarm data entries
static org.snmp4j.smi.OID oidAlarmDataEntryIndex
          The identifier of the branch containing the alarm data entries
static org.snmp4j.smi.OID oidAlarmDataTable
          The identifier of the branch containing the alarm data table
static org.snmp4j.smi.OID oidAlarmRaised
          The identifier of the leaf representing the alarm raised notification
static org.snmp4j.smi.OID oidJASMINe
          The identifier of the JASMINe branch
static org.snmp4j.smi.OID oidJASMINeAlarmNotifications
          The identifier of the Alarm notifications branch
static org.snmp4j.smi.OID oidJASMINeAlarmObjects
          The identifier of the Alarm objects branch
static org.snmp4j.smi.OID oidJASMINeAlarms
          The identifier of the Alarms branch
 
Method Summary
 AlarmLog getAlarm(int id)
          Retrieves information on the specified alarm from the log interface.
static SNMPAlarmMIB getInstance()
          Gets the only instance available.
 void notifyAlarm(int id)
          Sends a notification and adds a reference to the specified alarm in the MIB.
 void registerMOs(org.snmp4j.agent.MOServer server, org.snmp4j.smi.OctetString context)
          Registers the managed objects of this MIB to the specified server with the supplied context.
 void unregisterMOs(org.snmp4j.agent.MOServer server, org.snmp4j.smi.OctetString context)
          Unregisters the managed objects of this group from the supplied server and from the supplied context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oidJASMINe

public static final org.snmp4j.smi.OID oidJASMINe
The identifier of the JASMINe branch


oidJASMINeAlarms

public static final org.snmp4j.smi.OID oidJASMINeAlarms
The identifier of the Alarms branch


oidJASMINeAlarmObjects

public static final org.snmp4j.smi.OID oidJASMINeAlarmObjects
The identifier of the Alarm objects branch


oidAlarmDataTable

public static final org.snmp4j.smi.OID oidAlarmDataTable
The identifier of the branch containing the alarm data table


oidAlarmDataEntry

public static final org.snmp4j.smi.OID oidAlarmDataEntry
The identifier of the branch containing the alarm data entries


oidAlarmDataEntryIndex

public static final org.snmp4j.smi.OID oidAlarmDataEntryIndex
The identifier of the branch containing the alarm data entries


oidJASMINeAlarmNotifications

public static final org.snmp4j.smi.OID oidJASMINeAlarmNotifications
The identifier of the Alarm notifications branch


oidAlarmRaised

public static final org.snmp4j.smi.OID oidAlarmRaised
The identifier of the leaf representing the alarm raised notification

Method Detail

getInstance

public static SNMPAlarmMIB getInstance()
Gets the only instance available.

Returns:
the unique instance.

notifyAlarm

public void notifyAlarm(int id)
Sends a notification and adds a reference to the specified alarm in the MIB. This creates a new row referencing the specified alarm.

Parameters:
id - id of the alarm to be referenced.

getAlarm

public AlarmLog getAlarm(int id)
Retrieves information on the specified alarm from the log interface.

Parameters:
id - id of the alarm.
Returns:
an AlarmLog object containing a copy of alarm's information

registerMOs

public void registerMOs(org.snmp4j.agent.MOServer server,
                        org.snmp4j.smi.OctetString context)
                 throws org.snmp4j.agent.DuplicateRegistrationException
Registers the managed objects of this MIB to the specified server with the supplied context.

Specified by:
registerMOs in interface org.snmp4j.agent.MOGroup
Parameters:
server - the server where to register the managed objects.
context - the context to use.
Throws:
org.snmp4j.agent.DuplicateRegistrationException

unregisterMOs

public void unregisterMOs(org.snmp4j.agent.MOServer server,
                          org.snmp4j.smi.OctetString context)
Unregisters the managed objects of this group from the supplied server and from the supplied context.

Specified by:
unregisterMOs in interface org.snmp4j.agent.MOGroup
Parameters:
server - the server where to unregister the managed objects.
context - the context to use.


Copyright © 2012 OW2 Consortium. All Rights Reserved.