|
||||||||||
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.ResponseEvent net.sf.asterisk.manager.event.QueueMemberEvent
public class QueueMemberEvent
A QueueMemberEvent is triggered in response to a QueueStatusAction and
contains information about a member of a queue.
It is implemented in apps/app_queue.c
QueueStatusAction
,
Serialized FormField Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
QueueMemberEvent(java.lang.Object source)
|
Method Summary | |
---|---|
java.lang.Integer |
getCallsTaken()
Returns the number of calls answered by the member. |
java.lang.Long |
getLastCall()
Returns the time the last successful call answered by the added member was hungup. |
java.lang.String |
getLocation()
Returns the name of the member's interface. E.g. |
java.lang.String |
getMembership()
Returns if this member has been dynamically added by the QueueAdd command (in the dialplan or via the Manager API) or if this member is has been statically defined in queues.conf . |
java.lang.Boolean |
getPaused()
Is this queue member paused (not accepting calls)? Available since Asterisk 1.2. |
java.lang.Integer |
getPenalty()
Returns the penalty for the added member. |
java.lang.String |
getQueue()
Returns the name of the queue. |
java.lang.Integer |
getStatus()
Returns the status of this queue member. Available since Asterisk 1.2 Valid status codes are: AST_DEVICE_UNKNOWN (0) Queue member is available AST_DEVICE_NOT_INUSE (1) ? AST_DEVICE_INUSE (2) ? AST_DEVICE_BUSY (3) ? AST_DEVICE_INVALID (4) ? AST_DEVICE_UNAVAILABLE (5) ? |
void |
setCallsTaken(java.lang.Integer callsTaken)
Sets the number of calls answered by the added member. |
void |
setLastCall(java.lang.Long lastCall)
Sets the time the last successful call answered by this member was hungup. |
void |
setLocation(java.lang.String location)
Sets the name of the member's interface. |
void |
setMembership(java.lang.String membership)
Sets if this member has been dynamically or statically added. |
void |
setPaused(java.lang.Boolean paused)
Sets if this member has been paused. |
void |
setPenalty(java.lang.Integer penalty)
Sets the penalty for this member. |
void |
setQueue(java.lang.String queue)
Sets the name of the queue. |
void |
setStatus(java.lang.Integer status)
Sets the status of this queue member. |
Methods inherited from class net.sf.asterisk.manager.event.ResponseEvent |
---|
getActionId, getInternalActionId, setActionId, setInternalActionId |
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 QueueMemberEvent(java.lang.Object source)
source
- Method Detail |
---|
public java.lang.String getQueue()
public void setQueue(java.lang.String queue)
queue
- the name of the queue.public java.lang.String getLocation()
public void setLocation(java.lang.String location)
member
- the name of the member's interface.public java.lang.String getMembership()
queues.conf
.
public void setMembership(java.lang.String membership)
membership
- "dynamic" if the added member is a dynamic queue
member, "static" if the added member is a static queue member.public java.lang.Integer getPenalty()
public void setPenalty(java.lang.Integer penalty)
penalty
- the penalty for this member.public java.lang.Integer getCallsTaken()
public void setCallsTaken(java.lang.Integer callsTaken)
callsTaken
- the number of calls answered by the added member.public java.lang.Long getLastCall()
public void setLastCall(java.lang.Long lastCall)
lastCall
- the time (in seconds since 01/01/1970) the last
successful call answered by the added member was hungup.public java.lang.Integer getStatus()
null
if this
attribute is not supported by your version of Asterisk.public void setStatus(java.lang.Integer status)
the
- status of this queue memberpublic java.lang.Boolean getPaused()
Boolean.TRUE
if this member has been paused,
Boolean.FALSE
if not or null
if
pausing is not supported by your version of Asterisk.public void setPaused(java.lang.Boolean paused)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |