public abstract class ManagerEvent extends EventObject
source
Constructor and Description |
---|
ManagerEvent(Object source) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendPropertyIfNotNull(StringBuilder sb,
String property,
Object value) |
Date |
getDateReceived()
Returns the point in time this event was received from the Asterisk
server.
|
String |
getFile()
Returns the name of the file in Asterisk's source code that triggered this event.
|
String |
getFunc()
Returns the name of the C function in Asterisk's source code that triggered this event.
|
Integer |
getLine()
Returns the line number in Asterisk's source code where this event was triggered.
|
String |
getPrivilege()
Returns the AMI authorization class of this event.
|
Integer |
getSequenceNumber()
Returns the sequence numbers of this event.
|
String |
getServer()
Returns the name of the Asterisk server from which this event has been received.
|
Double |
getTimestamp()
Returns the timestamp for this event.
|
void |
setDateReceived(Date dateReceived)
Sets the point in time this event was received from the asterisk server.
|
void |
setFile(String file) |
void |
setFunc(String func) |
void |
setLine(Integer line) |
void |
setPrivilege(String privilege)
Sets the AMI authorization class of this event.
|
void |
setSequenceNumber(Integer sequenceNumber) |
void |
setServer(String server)
Sets the name of the Asterisk server from which this event has been received.
|
void |
setTimestamp(Double timestamp)
Sets the timestamp for this event.
|
String |
toString() |
getSource
public ManagerEvent(Object source)
public Date getDateReceived()
null
.public void setDateReceived(Date dateReceived)
public String getPrivilege()
public void setPrivilege(String privilege)
public final Double getTimestamp()
manager.conf
by setting timestampevents = yes
.
public final void setTimestamp(Double timestamp)
timestamp
- the timestamp to set.public final String getServer()
null
when directly connected to an Asterisk server
instead of AstManProxy.public final void setServer(String server)
server
- the name of the Asterisk server from which this event has been received.public String getFile()
pbx.c
.
This property is only available if debugging for the Manager API has been turned on in Asterisk. This can be
done by calling manager debug on
on Asterisk's command line interface or by adding
debug=on
to Asterisk's manager.conf
. This feature is availble in Asterisk since 1.6.0.
public void setFile(String file)
public Integer getLine()
This property is only available if debugging for the Manager API has been turned on in Asterisk. This can be
done by calling manager debug on
on Asterisk's command line interface or by adding
debug=on
to Asterisk's manager.conf
. This feature is availble in Asterisk since 1.6.0.
public void setLine(Integer line)
public String getFunc()
pbx_builtin_setvar_helper
This property is only available if debugging for the Manager API has been turned on in Asterisk. This can be
done by calling manager debug on
on Asterisk's command line interface or by adding
debug=on
to Asterisk's manager.conf
. This feature is availble in Asterisk since 1.6.0.
public void setFunc(String func)
public Integer getSequenceNumber()
This property is only available if debugging for the Manager API has been turned on in Asterisk. This can be
done by calling manager debug on
on Asterisk's command line interface or by adding
debug=on
to Asterisk's manager.conf
. This feature is availble in Asterisk since 1.6.0.
public void setSequenceNumber(Integer sequenceNumber)
public String toString()
toString
in class EventObject
protected void appendPropertyIfNotNull(StringBuilder sb, String property, Object value)
Copyright © 2004–2016. All rights reserved.