|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.asteriskjava.manager.action.AbstractManagerAction
org.asteriskjava.manager.action.QueuePenaltyAction
public class QueuePenaltyAction
The QueuePenaltyAction sets the penalty for a queue member.
It is implemented in apps/app_queue.c
Available since Asterisk 1.6.
| Constructor Summary | |
|---|---|
QueuePenaltyAction()
Creates a new empty QueuePenaltyAction. |
|
QueuePenaltyAction(java.lang.String iface,
int penalty)
Creates a new QueuePenaltyAction that sets the penalty for the given interface on all queues. |
|
QueuePenaltyAction(java.lang.String iface,
int penalty,
java.lang.String queue)
Creates a new QueuePenaltyAction that sets the penalty for the given interface on the given queue. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAction()
Returns the name of this action, i.e. |
java.lang.String |
getInterface()
Returns the interface of the member to set the penalty for. |
java.lang.Integer |
getPenalty()
Returns the new penalty. |
java.lang.String |
getQueue()
Returns the name of the queue. |
void |
setInterface(java.lang.String iface)
Sets the interface of the member to set the penalty for. |
void |
setPenalty(java.lang.Integer penalty)
Sets the new penalty. |
void |
setQueue(java.lang.String queue)
Sets the name of the queue. |
| Methods inherited from class org.asteriskjava.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 QueuePenaltyAction()
public QueuePenaltyAction(java.lang.String iface,
int penalty)
iface - the interface of the member to set the penalty forpenalty - new penalty value.
public QueuePenaltyAction(java.lang.String iface,
int penalty,
java.lang.String queue)
iface - the interface of the member to set the penalty forpenalty - new penalty value.queue - the queue the member is assigned the penalty for| Method Detail |
|---|
public java.lang.String getAction()
getAction in interface ManagerActiongetAction in class AbstractManagerActionpublic java.lang.String getInterface()
public void setInterface(java.lang.String iface)
This property is mandatory.
iface - the interface of the member to to set the penalty for.public java.lang.Integer getPenalty()
public void setPenalty(java.lang.Integer penalty)
This property is mandatory.
penalty - the new penalty.public java.lang.String getQueue()
public void setQueue(java.lang.String queue)
queue - the name of the queue or null for all queues.
|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||