Asterisk-Java

org.asteriskjava.manager.event
Class AlarmEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.asteriskjava.manager.event.ManagerEvent
          extended by org.asteriskjava.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 938 2007-12-31 03:23:38Z srt $
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.
 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 org.asteriskjava.manager.event.ManagerEvent
getDateReceived, getPrivilege, getServer, getTimestamp, setDateReceived, setPrivilege, setServer, setTimestamp, 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.


Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.