Asterisk-Java

org.asteriskjava.manager.event
Class ReloadEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.asteriskjava.manager.event.ManagerEvent
          extended by org.asteriskjava.manager.event.ReloadEvent
All Implemented Interfaces:
java.io.Serializable

public class ReloadEvent
extends ManagerEvent

A ReloadEvent is triggerd when the reload console command is executed or the Asterisk server is started.

It is implemented in manager.c

Version:
$Id: ReloadEvent.java 973 2008-02-03 16:21:12Z srt $
Author:
srt
See Also:
Serialized Form

Field Summary
static java.lang.String MODULE_CDR
           
static java.lang.String MODULE_DNS_MGR
           
static java.lang.String MODULE_ENUM
           
static java.lang.String MODULE_MANAGER
           
static java.lang.String MODULE_RTP
           
static java.lang.String STATUS_DISABLED
           
static java.lang.String STATUS_ENABLED
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ReloadEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getMessage()
           
 java.lang.String getModule()
          Returns the name of the module that has been reloaded.
 java.lang.String getStatus()
          Returns the new status of the module.
 boolean isDisabled()
          Returns whether the module is now disabled.
 boolean isEnabled()
          Returns whether the module is now enabled.
 void setMessage(java.lang.String message)
           
 void setModule(java.lang.String module)
          Sets the name of the module that has been reloaded.
 void setStatus(java.lang.String status)
          Sets the new status of the module.
 
Methods inherited from class org.asteriskjava.manager.event.ManagerEvent
appendPropertyIfNotNull, getDateReceived, getFile, getFunc, getLine, getPrivilege, getSequenceNumber, getServer, getTimestamp, setDateReceived, setFile, setFunc, setLine, setPrivilege, setSequenceNumber, 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
 

Field Detail

MODULE_MANAGER

public static final java.lang.String MODULE_MANAGER
See Also:
Constant Field Values

MODULE_CDR

public static final java.lang.String MODULE_CDR
See Also:
Constant Field Values

MODULE_DNS_MGR

public static final java.lang.String MODULE_DNS_MGR
See Also:
Constant Field Values

MODULE_RTP

public static final java.lang.String MODULE_RTP
See Also:
Constant Field Values

MODULE_ENUM

public static final java.lang.String MODULE_ENUM
See Also:
Constant Field Values

STATUS_ENABLED

public static final java.lang.String STATUS_ENABLED
See Also:
Constant Field Values

STATUS_DISABLED

public static final java.lang.String STATUS_DISABLED
See Also:
Constant Field Values
Constructor Detail

ReloadEvent

public ReloadEvent(java.lang.Object source)
Method Detail

getModule

public java.lang.String getModule()
Returns the name of the module that has been reloaded.

Available since Asterisk 1.6.

Returns:
the name of the module that has been reloaded.
Since:
1.0.0

setModule

public void setModule(java.lang.String module)
Sets the name of the module that has been reloaded.

Parameters:
module - the name of the module that has been reloaded.
Since:
1.0.0

getStatus

public java.lang.String getStatus()
Returns the new status of the module.

Available since Asterisk 1.6.

Returns:
"Enabled" if the module is endabled, "Disabled" if it is disabled.
Since:
1.0.0
See Also:
STATUS_ENABLED, STATUS_DISABLED, isEnabled(), isDisabled()

setStatus

public void setStatus(java.lang.String status)
Sets the new status of the module.

Parameters:
status - "Enabled" if the module is endabled, "Disabled" if it is disabled.
Since:
1.0.0

getMessage

public java.lang.String getMessage()

setMessage

public void setMessage(java.lang.String message)

isEnabled

public boolean isEnabled()
Returns whether the module is now enabled.

Available since Asterisk 1.6.

Returns:
true the module is now enabled, false if it is disabled. For Asterisk versions up to 1.4 that do not support the "Status" property false is returned.
Since:
1.0.0
See Also:
getStatus()

isDisabled

public boolean isDisabled()
Returns whether the module is now disabled.

Available since Asterisk 1.6.

Returns:
true the module is now disabled, false if it is enabled. For Asterisk versions up to 1.4 that do not support the "Status" property false is returned.
Since:
1.0.0
See Also:
getStatus()

Asterisk-Java

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