net.sf.asterisk.manager.event
Class AlarmEvent
java.lang.Object
java.util.EventObject
net.sf.asterisk.manager.event.ManagerEvent
net.sf.asterisk.manager.event.AlarmEvent
- All Implemented Interfaces:
- java.io.Serializable
public class AlarmEvent
- extends ManagerEvent
An AlarmEvent is triggered when a Zap channel enters or changes alarm state.
It is implemented in channels/chan_zap.c
- Version:
- $Id: AlarmEvent.java,v 1.2 2005/02/23 22:50:58 srt Exp $
- Author:
- srt
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
AlarmEvent(java.lang.Object source)
|
Method Summary |
java.lang.String |
getAlarm()
Returns the kind of alarm that happened.
This may be one of
Red Alarm
Yellow Alarm
Blue Alarm
Recovering
Loopback
Not Open
|
java.lang.Integer |
getChannel()
Returns the number of the channel the alarm occured on. |
void |
setAlarm(java.lang.String alarm)
Sets the kind of alarm that happened. |
void |
setChannel(java.lang.Integer channel)
Sets the number of the channel the alarm occured on. |
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 |
AlarmEvent
public AlarmEvent(java.lang.Object source)
- Parameters:
source
-
getAlarm
public java.lang.String getAlarm()
- Returns the kind of alarm that happened.
This may be one of
- Red Alarm
- Yellow Alarm
- Blue Alarm
- Recovering
- Loopback
- Not Open
setAlarm
public void setAlarm(java.lang.String alarm)
- Sets the kind of alarm that happened.
getChannel
public java.lang.Integer getChannel()
- Returns the number of the channel the alarm occured on.
setChannel
public void setChannel(java.lang.Integer channel)
- Sets the number of the channel the alarm occured on.
Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.