|
||||||||||
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.QueueParamsEvent
public class QueueParamsEvent
A QueueParamsEvent is triggered in response to a QueueStatusAction and contains the parameters 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 | |
---|---|
QueueParamsEvent(java.lang.Object source)
|
Method Summary | |
---|---|
java.lang.Integer |
getAbandoned()
Returns the number of abandoned calls. |
java.lang.Integer |
getCalls()
Returns the number of calls currently waiting in the queue. |
java.lang.Integer |
getCompleted()
Returns the number of completed calls. |
java.lang.Integer |
getHoldtime()
Returns the current average holdtime for this queue (in seconds). |
java.lang.Integer |
getMax()
Returns the maximum number of people waiting in the queue or 0 for unlimited. This corresponds to the maxlen setting in queues.conf . |
java.lang.String |
getQueue()
Returns the name of the queue. |
java.lang.Integer |
getServiceLevel()
Returns the service level (in seconds) as defined by the servicelevel setting
in queues.conf . |
java.lang.Double |
getServiceLevelPerf()
Returns the ratio of calls answered within the specified service level per total completed calls (in percent). |
java.lang.Integer |
getWeight()
Returns the weight of this queue. A queues can be assigned a 'weight' to ensure calls waiting in a higher priority queue will deliver its calls first. |
void |
setAbandoned(java.lang.Integer abandoned)
Sets the number of abandoned calls. |
void |
setCalls(java.lang.Integer calls)
Sets the number of calls currently waiting in the queue. |
void |
setCompleted(java.lang.Integer complete)
Sets the number of completed calls. |
void |
setHoldtime(java.lang.Integer holdtime)
Sets the current average holdtime for this queue. |
void |
setMax(java.lang.Integer max)
Sets the maximum number of people waiting in the queue. |
void |
setQueue(java.lang.String queue)
Sets the name of the queue. |
void |
setServiceLevel(java.lang.Integer serviceLevel)
Sets the service level. |
void |
setServiceLevelPerf(java.lang.Double serviceLevelPerf)
Sets the ratio of calls answered within the specified service level per total completed calls. |
void |
setWeight(java.lang.Integer weight)
Sets the weight of this queue. |
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 QueueParamsEvent(java.lang.Object source)
source
- Method Detail |
---|
public java.lang.String getQueue()
public void setQueue(java.lang.String queue)
public java.lang.Integer getMax()
maxlen
setting in queues.conf
.
public void setMax(java.lang.Integer max)
public java.lang.Integer getCalls()
public void setCalls(java.lang.Integer calls)
public java.lang.Integer getHoldtime()
public void setHoldtime(java.lang.Integer holdtime)
public java.lang.Integer getCompleted()
public void setCompleted(java.lang.Integer complete)
public java.lang.Integer getAbandoned()
public void setAbandoned(java.lang.Integer abandoned)
public java.lang.Integer getServiceLevel()
servicelevel
setting
in queues.conf
.
public void setServiceLevel(java.lang.Integer serviceLevel)
public java.lang.Double getServiceLevelPerf()
public void setServiceLevelPerf(java.lang.Double serviceLevelPerf)
public java.lang.Integer getWeight()
null
if not
supported by your version of Asteriskpublic void setWeight(java.lang.Integer weight)
weight
- the weight of this queue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |