net.sf.asterisk.manager.event
Class AlarmEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sf.asterisk.manager.event.ManagerEvent
          extended by 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

Field Summary
 
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 net.sf.asterisk.manager.event.ManagerEvent
getDateReceived, getPrivilege, setDateReceived, setPrivilege, toString
 
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
 

Constructor Detail

AlarmEvent

public AlarmEvent(java.lang.Object source)
Parameters:
source -
Method Detail

getAlarm

public java.lang.String getAlarm()
Returns the kind of alarm that happened.
This may be one of


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.