public class ReloadEvent extends ManagerEvent
reload
console command is executed or the
Asterisk server is started.
It is implemented in manager.c
Modifier and Type | Field and Description |
---|---|
static String |
MODULE_CDR |
static String |
MODULE_DNS_MGR |
static String |
MODULE_ENUM |
static String |
MODULE_MANAGER |
static String |
MODULE_RTP |
static String |
STATUS_DISABLED |
static String |
STATUS_ENABLED |
callerIdName, callerIdNum, channelState, channelStateDesc, connectedLineName, connectedLineNum, context, exten, priority
source
Constructor and Description |
---|
ReloadEvent(Object source) |
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
String |
getModule()
Returns the name of the module that has been reloaded.
|
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(String message) |
void |
setModule(String module)
Sets the name of the module that has been reloaded.
|
void |
setStatus(String status)
Sets the new status of the module.
|
appendPropertyIfNotNull, getCallerIdName, getCallerIdNum, getChannelState, getChannelStateDesc, getConnectedLineName, getConnectedLineNum, getContext, getDateReceived, getExten, getFile, getFunc, getLine, getPriority, getPrivilege, getSequenceNumber, getServer, getSystemName, getTimestamp, setCallerIdName, setCallerIdNum, setChannelState, setChannelStateDesc, setConnectedLineName, setConnectedLineNum, setContext, setDateReceived, setExten, setFile, setFunc, setLine, setPriority, setPrivilege, setSequenceNumber, setServer, setSystemName, setTimestamp, toString
getSource
public static final String MODULE_MANAGER
public static final String MODULE_CDR
public static final String MODULE_DNS_MGR
public static final String MODULE_RTP
public static final String MODULE_ENUM
public static final String STATUS_ENABLED
public static final String STATUS_DISABLED
public ReloadEvent(Object source)
public String getModule()
Available since Asterisk 1.6.
public void setModule(String module)
module
- the name of the module that has been reloaded.public String getStatus()
Available since Asterisk 1.6.
STATUS_ENABLED
,
STATUS_DISABLED
,
isEnabled()
,
isDisabled()
public void setStatus(String status)
status
- "Enabled" if the module is endabled, "Disabled" if it is disabled.public String getMessage()
public void setMessage(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()
Copyright © 2004–2017. All rights reserved.