net.sf.asterisk.manager.event
Class ShutdownEvent
java.lang.Object
java.util.EventObject
net.sf.asterisk.manager.event.ManagerEvent
net.sf.asterisk.manager.event.ShutdownEvent
- All Implemented Interfaces:
- java.io.Serializable
public class ShutdownEvent
- extends ManagerEvent
A ShutdownEvent is triggered when the asterisk server is shut down or restarted.
It is implemented in asterisk.c
- Version:
- $Id: ShutdownEvent.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 |
Method Summary |
java.lang.Boolean |
getRestart()
Returns true if the server has been restarted; false if it has
been halted. |
java.lang.String |
getShutdown()
Returns the kind of shutdown or restart. |
void |
setRestart(java.lang.Boolean restart)
|
void |
setShutdown(java.lang.String shutdown)
|
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 |
ShutdownEvent
public ShutdownEvent(java.lang.Object source)
- Parameters:
source
-
getShutdown
public java.lang.String getShutdown()
- Returns the kind of shutdown or restart. Possible values are "Uncleanly" and "Cleanly". A
shutdown is considered unclean if there are any active channels when the system is shut down.
setShutdown
public void setShutdown(java.lang.String shutdown)
getRestart
public java.lang.Boolean getRestart()
- Returns
true
if the server has been restarted; false
if it has
been halted.
setRestart
public void setRestart(java.lang.Boolean restart)
Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.