|
||||||||||
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.AbstractQueueMemberEvent net.sf.asterisk.manager.event.QueueMemberAddedEvent
public class QueueMemberAddedEvent
A QueueMemberAddedEvent is triggered when a queue member is added to a queue.
It is implemented in apps/app_queue.c
.
Available since Asterisk 1.2
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
QueueMemberAddedEvent(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 |
getMembership()
Returns if the added member is a dynamic or static queue member. |
java.lang.Boolean |
getPaused()
Returns if this queue member is paused (not accepting calls). |
java.lang.Integer |
getPenalty()
Returns the penalty for the added member. |
java.lang.Integer |
getStatus()
Returns the status of this queue member. 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 |
setMembership(java.lang.String membership)
Sets if the added member is a dynamic or static queue member. |
void |
setPaused(java.lang.Boolean paused)
Sets if this member is paused. |
void |
setPenalty(java.lang.Integer penalty)
Sets the penalty for this member. |
void |
setStatus(java.lang.Integer status)
Sets the status of this queue member. |
Methods inherited from class net.sf.asterisk.manager.event.AbstractQueueMemberEvent |
---|
getLocation, getQueue, setLocation, setQueue |
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 QueueMemberAddedEvent(java.lang.Object source)
Method Detail |
---|
public java.lang.String getMembership()
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()
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 or
Boolean.FALSE
if not.public void setPaused(java.lang.Boolean paused)
paused
- Boolean.TRUE
if this member has been paused
or Boolean.FALSE
if not.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |