|
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
public abstract class ManagerEvent
Abstract base class for all Events that can be received from the Asterisk server.
Events contain data pertaining to an event generated from within the Asterisk core or an extension module.
There is one conrete subclass of ManagerEvent per each supported Asterisk Event.
| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
ManagerEvent(java.lang.Object source)
|
|
| Method Summary | |
|---|---|
java.util.Date |
getDateReceived()
Returns the point in time this event was received from the Asterisk server. |
java.lang.String |
getPrivilege()
Returns the AMI authorization class of this event. |
java.lang.Double |
getTimestamp()
Returns the timestamp for this event. |
void |
setDateReceived(java.util.Date dateReceived)
Sets the point in time this event was received from the asterisk server. |
void |
setPrivilege(java.lang.String privilege)
Sets the AMI authorization class of this event. |
void |
setTimestamp(java.lang.Double timestamp)
Sets the timestamp for this event. |
java.lang.String |
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 ManagerEvent(java.lang.Object source)
source - | Method Detail |
|---|
public java.util.Date getDateReceived()
Pseudo events that are not directly received from the asterisk server
(for example ConnectEvent and DisconnectEvent) may return
null.
public void setDateReceived(java.util.Date dateReceived)
public java.lang.String getPrivilege()
This is one or more of system, call, log, verbose, command, agent or user. Multiple privileges are separated by comma.
Note: This property is not available from Asterisk 1.0 servers.
public void setPrivilege(java.lang.String privilege)
public final java.lang.Double getTimestamp()
The timestamp property is available in Asterisk since 1.4 if enabled in
manager.conf by setting timestampevents = yes.
In contains the time the event was generated in seconds since the epoch.
Example: 1159310429.569108
public final void setTimestamp(java.lang.Double timestamp)
timestamp - the timestamp to set.public java.lang.String toString()
toString in class java.util.EventObject
|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||