net.sf.asterisk.manager.event
Class QueueParamsEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sf.asterisk.manager.event.ManagerEvent
          extended by net.sf.asterisk.manager.event.ResponseEvent
              extended by net.sf.asterisk.manager.event.QueueParamsEvent
All Implemented Interfaces:
java.io.Serializable

public class QueueParamsEvent
extends ResponseEvent

A QueueParamsEvent is triggered in response to a QueueStatusAction and contains the parameters of a queue.
It is implemented in apps/app_queue.c

Version:
$Id: QueueParamsEvent.java,v 1.3 2005/07/15 11:44:23 srt Exp $
Author:
srt
See Also:
QueueStatusAction, Serialized Form

Field 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

QueueParamsEvent

public QueueParamsEvent(java.lang.Object source)
Parameters:
source -
Method Detail

getQueue

public java.lang.String getQueue()
Returns the name of the queue.


setQueue

public void setQueue(java.lang.String queue)
Sets the name of the queue.


getMax

public 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.


setMax

public void setMax(java.lang.Integer max)
Sets the maximum number of people waiting in the queue.


getCalls

public java.lang.Integer getCalls()
Returns the number of calls currently waiting in the queue.


setCalls

public void setCalls(java.lang.Integer calls)
Sets the number of calls currently waiting in the queue.


getHoldtime

public java.lang.Integer getHoldtime()
Returns the current average holdtime for this queue (in seconds).


setHoldtime

public void setHoldtime(java.lang.Integer holdtime)
Sets the current average holdtime for this queue.


getCompleted

public java.lang.Integer getCompleted()
Returns the number of completed calls.


setCompleted

public void setCompleted(java.lang.Integer complete)
Sets the number of completed calls.


getAbandoned

public java.lang.Integer getAbandoned()
Returns the number of abandoned calls.


setAbandoned

public void setAbandoned(java.lang.Integer abandoned)
Sets the number of abandoned calls.


getServiceLevel

public java.lang.Integer getServiceLevel()
Returns the service level (in seconds) as defined by the servicelevel setting in queues.conf.


setServiceLevel

public void setServiceLevel(java.lang.Integer serviceLevel)
Sets the service level.


getServiceLevelPerf

public java.lang.Double getServiceLevelPerf()
Returns the ratio of calls answered within the specified service level per total completed calls (in percent).


setServiceLevelPerf

public void setServiceLevelPerf(java.lang.Double serviceLevelPerf)
Sets the ratio of calls answered within the specified service level per total completed calls.


getWeight

public 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. Only delays the lower weight queue's call if the member is also in the higher weight queue.
Available since Asterisk 1.2

Returns:
the weight of this queue or null if not supported by your version of Asterisk
Since:
0.2

setWeight

public void setWeight(java.lang.Integer weight)
Sets the weight of this queue.

Parameters:
weight - the weight of this queue
Since:
0.2


Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.