|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.asteriskjava.manager.event.ManagerEvent
org.asteriskjava.manager.event.ReloadEvent
public class ReloadEvent
A ReloadEvent is triggerd when the reload
console command is executed or the
Asterisk server is started.
It is implemented in manager.c
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 |
---|
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 |
Field Detail |
---|
public static final java.lang.String MODULE_MANAGER
public static final java.lang.String MODULE_CDR
public static final java.lang.String MODULE_DNS_MGR
public static final java.lang.String MODULE_RTP
public static final java.lang.String MODULE_ENUM
public static final java.lang.String STATUS_ENABLED
public static final java.lang.String STATUS_DISABLED
Constructor Detail |
---|
public ReloadEvent(java.lang.Object source)
Method Detail |
---|
public java.lang.String getModule()
Available since Asterisk 1.6.
public void setModule(java.lang.String module)
module
- the name of the module that has been reloaded.public java.lang.String getStatus()
Available since Asterisk 1.6.
STATUS_ENABLED
,
STATUS_DISABLED
,
isEnabled()
,
isDisabled()
public void setStatus(java.lang.String status)
status
- "Enabled" if the module is endabled, "Disabled" if it is disabled.public java.lang.String getMessage()
public void setMessage(java.lang.String message)
public boolean isEnabled()
Available since Asterisk 1.6.
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.getStatus()
public boolean isDisabled()
Available since Asterisk 1.6.
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.getStatus()
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |