|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.manager.action.AbstractManagerAction net.sf.asterisk.manager.action.QueueAddAction
public class QueueAddAction
The QueueAddAction adds a new member to a queue.
It is implemented in apps/app_queue.c
Constructor Summary | |
---|---|
QueueAddAction()
Creates a new empty QueueAddAction. |
|
QueueAddAction(java.lang.String queue,
java.lang.String iface)
Creates a new QueueAddAction that adds a new member on the given interface to the given queue. |
|
QueueAddAction(java.lang.String queue,
java.lang.String iface,
java.lang.Integer penalty)
Creates a new QueueAddAction that adds a new member on the given interface to the given queue with the given penalty. |
Method Summary | |
---|---|
java.lang.String |
getAction()
Returns the name of this action, i.e. |
java.lang.String |
getInterface()
Returns the interface to add. |
java.lang.Boolean |
getPaused()
Returns if the queue member should be paused when added. |
java.lang.Integer |
getPenalty()
Returns the penalty for this member. |
java.lang.String |
getQueue()
Returns the name of the queue the new member will be added to. |
void |
setInterface(java.lang.String iface)
Sets the interface to add. To add a specific channel just use the channel name, e.g. |
void |
setPaused(java.lang.Boolean paused)
Sets if the queue member should be paused when added. |
void |
setPenalty(java.lang.Integer penalty)
Sets the penalty for this member. The penalty must be a positive integer or 0 for no penalty. |
void |
setQueue(java.lang.String queue)
Sets the name of the queue the new member will be added to. This property is mandatory. |
Methods inherited from class net.sf.asterisk.manager.action.AbstractManagerAction |
---|
getActionId, setActionId, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueueAddAction()
public QueueAddAction(java.lang.String queue, java.lang.String iface)
queue
- the name of the queue the new member will be added toiface
- Sets the interface to add. To add a specific channel just
use the channel name, e.g. "SIP/1234".public QueueAddAction(java.lang.String queue, java.lang.String iface, java.lang.Integer penalty)
queue
- the name of the queue the new member will be added toiface
- Sets the interface to add. To add a specific channel just
use the channel name, e.g. "SIP/1234".penalty
- the penalty for this member. The penalty must be a
positive integer or 0 for no penalty. When calls are
distributed members with higher penalties are considered last.Method Detail |
---|
public java.lang.String getAction()
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public java.lang.String getQueue()
public void setQueue(java.lang.String queue)
public java.lang.String getInterface()
public void setInterface(java.lang.String iface)
public java.lang.Integer getPenalty()
public void setPenalty(java.lang.Integer penalty)
public java.lang.Boolean getPaused()
public void setPaused(java.lang.Boolean paused)
paused
- Boolean.TRUE if the queue member should be paused when
added.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |