|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject net.sf.asterisk.manager.event.ManagerEvent net.sf.asterisk.manager.event.LogChannelEvent
public class LogChannelEvent
A LogChannelEvent is triggered when logging is turned on or off.
It is implemented in logger.c
Available since Asterisk 1.2
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
LogChannelEvent(java.lang.Object source)
|
Method Summary | |
---|---|
java.lang.String |
getChannel()
Returns the name of the log channel. |
java.lang.Boolean |
getEnabled()
Returns if logging has been enabled or disabled. |
java.lang.Integer |
getReason()
Returns the reason code for disabling logging. |
java.lang.String |
getReasonTxt()
Returns the textual representation of the reason for disabling logging. |
void |
setChannel(java.lang.String channel)
Sets the name of the log channel. |
void |
setEnabled(java.lang.Boolean enabled)
Sets if logging has been enabled or disabled. |
void |
setReason(java.lang.String s)
Sets the reason for disabling logging. |
Methods inherited from class net.sf.asterisk.manager.event.ManagerEvent |
---|
getDateReceived, getPrivilege, setDateReceived, setPrivilege, 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 |
Constructor Detail |
---|
public LogChannelEvent(java.lang.Object source)
source
- Method Detail |
---|
public java.lang.String getChannel()
public void setChannel(java.lang.String channel)
channel
- the name of the log channel.public java.lang.Boolean getEnabled()
public void setEnabled(java.lang.Boolean enabled)
enabled
- Boolean.TRUE if logging has been enabled, Boolean.FALSE if
it has been disabled.public java.lang.Integer getReason()
public java.lang.String getReasonTxt()
public void setReason(java.lang.String s)
s
- the reason in the form "%d - %s".
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |