|
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.ChannelReloadEvent
public class ChannelReloadEvent
A ChannelReloadEvent is when a channel driver is reloaded, either on startup or by request.
For example,channels/chan_sip.c
triggers the channel reload
event when the SIP configuration is reloaded from sip.conf because the 'sip
reload' command was issued at the Manager interface, the CLI, or for another
reason.
Available since Asterisk 1.4.
It is implemented in channels/chan_sip.c
Field Summary | |
---|---|
static java.lang.String |
REASON_CLI_RELOAD
The channel module has been reloaded from the command line. |
static java.lang.String |
REASON_LOAD
The channel module has been loaded for the first time. |
static java.lang.String |
REASON_MANAGER_RELOAD
The channel module has been reloaded due to a manager action. |
static java.lang.String |
REASON_RELOAD
The channel module has been reloaded. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ChannelReloadEvent(java.lang.Object source)
|
Method Summary | |
---|---|
java.lang.String |
getChannel()
Deprecated. use getChannelType() instead. |
java.lang.String |
getChannelType()
Returns the type of channel that was reloaded. |
java.lang.Integer |
getPeerCount()
Returns the number of peers defined during the configuration of this channel (e.g. |
java.lang.Integer |
getRegistryCount()
|
java.lang.String |
getReloadReason()
Returns the reason that this channel was reloaded as received from Asterisk, for example "CLIRELOAD (Channel module reload by CLI command)". |
java.lang.String |
getReloadReasonCode()
Returns the reason that this channel was reloaded. |
java.lang.String |
getReloadReasonDescription()
Returns the reason that this channel was reloaded as a human readable descriptive string, for example "Channel module reload by CLI command". |
java.lang.Integer |
getUserCount()
|
void |
setChannel(java.lang.String channel)
|
void |
setChannelType(java.lang.String channelType)
|
void |
setPeerCount(java.lang.Integer peerCount)
|
void |
setRegistryCount(java.lang.Integer registryCount)
|
void |
setReloadReason(java.lang.String reloadReason)
Sets the reason that this channel was reloaded, for example "CLIRELOAD (Channel module reload by CLI command)". |
void |
setUserCount(java.lang.Integer userCount)
|
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 REASON_LOAD
public static final java.lang.String REASON_RELOAD
public static final java.lang.String REASON_CLI_RELOAD
public static final java.lang.String REASON_MANAGER_RELOAD
Constructor Detail |
---|
public ChannelReloadEvent(java.lang.Object source)
source
- Method Detail |
---|
public java.lang.String getChannelType()
channels/chan_sip.c
, this would be "SIP".
public void setChannelType(java.lang.String channelType)
public java.lang.String getChannel()
getChannelType()
instead.
channels/chan_sip.c
, this would be "SIP"
public void setChannel(java.lang.String channel)
public java.lang.Integer getPeerCount()
public void setPeerCount(java.lang.Integer peerCount)
peerCount
- the number of peers defined during the configuration of
this channel (e.g. sip peer definitions)public java.lang.Integer getRegistryCount()
public void setRegistryCount(java.lang.Integer registryCount)
registryCount
- the number of registrations with other channels
(e.g. registrations with other sip proxies)public java.lang.String getReloadReason()
getReloadReasonCode()
,
getReloadReasonDescription()
public void setReloadReason(java.lang.String reloadReason)
reloadReason
- the reason that this channel was reloadedpublic java.lang.String getReloadReasonCode()
Only the code part of the reason is returned. This is one of
REASON_CLI_RELOAD
,
REASON_LOAD
,
REASON_RELOAD
,
REASON_MANAGER_RELOAD
public java.lang.String getReloadReasonDescription()
public java.lang.Integer getUserCount()
public void setUserCount(java.lang.Integer userCount)
userCount
- the number of users defined during the configuration of
this channel (e.g. sip user definitions)
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |