Asterisk-Java

org.asteriskjava.manager.action
Class QueueResetAction

java.lang.Object
  extended by org.asteriskjava.manager.action.AbstractManagerAction
      extended by org.asteriskjava.manager.action.QueueResetAction
All Implemented Interfaces:
java.io.Serializable, ManagerAction

public class QueueResetAction
extends AbstractManagerAction

The QueueResetAction resets all statistical data of a given queue or all queues.

It is implemented in apps/app_queue.c

Available since Asterisk 1.6.

Since:
1.0.0
Author:
Sebastian
See Also:
Serialized Form

Constructor Summary
QueueResetAction()
          Creates a new QueueResetAction that resets statistical data of all queues.
QueueResetAction(java.lang.String queue)
          Creates a new QueueResetAction that resets statistical data of the given queue.
 
Method Summary
 java.lang.String getAction()
          Returns the name of the action for example "Hangup".
 java.lang.String getQueue()
          Returns the name of the queue to reset.
 void setQueue(java.lang.String queue)
          Sets the name of the queue to reset.
 
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

QueueResetAction

public QueueResetAction()
Creates a new QueueResetAction that resets statistical data of all queues.


QueueResetAction

public QueueResetAction(java.lang.String queue)
Creates a new QueueResetAction that resets statistical data of the given queue.

Parameters:
queue - the name of the queue to reset.
Method Detail

getAction

public java.lang.String getAction()
Description copied from interface: ManagerAction
Returns the name of the action for example "Hangup".

Specified by:
getAction in interface ManagerAction
Specified by:
getAction in class AbstractManagerAction

getQueue

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

Returns:
the name of the queue to reset or null for all queues.

setQueue

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

Parameters:
queue - the name of the queue to reset or null for all queues.

Asterisk-Java

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