Asterisk-Java

org.asteriskjava.manager.action
Class PauseMonitorAction

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

public class PauseMonitorAction
extends AbstractManagerAction

The PauseMonitorAction temporarily stop monitoring (recording) a channel.

It is implemented in res/res_monitor.c

Available since Asterisk 1.4.

Since:
0.3
Version:
$Id: PauseMonitorAction.java 938 2007-12-31 03:23:38Z srt $
Author:
srt
See Also:
UnpauseMonitorAction, Serialized Form

Constructor Summary
PauseMonitorAction()
          Creates a new empty PauseMonitorAction.
PauseMonitorAction(java.lang.String channel)
          Creates a new PauseMonitorAction that temporarily stops monitoring the given channel.
 
Method Summary
 java.lang.String getAction()
          Returns the name of this action, i.e.
 java.lang.String getChannel()
          Returns the name of the channel to temporarily stop monitoring.
 void setChannel(java.lang.String channel)
          Sets the name of the channel to temporarily stop monitoring.
 
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

PauseMonitorAction

public PauseMonitorAction()
Creates a new empty PauseMonitorAction.


PauseMonitorAction

public PauseMonitorAction(java.lang.String channel)
Creates a new PauseMonitorAction that temporarily stops monitoring the given channel.

Parameters:
channel - the name of the channel to temporarily stop monitoring.
Method Detail

getAction

public java.lang.String getAction()
Returns the name of this action, i.e. "PauseMonitor".

Specified by:
getAction in interface ManagerAction
Specified by:
getAction in class AbstractManagerAction
Returns:
the name of this action.

getChannel

public java.lang.String getChannel()
Returns the name of the channel to temporarily stop monitoring.

Returns:
the name of the channel to temporarily stop monitoring.

setChannel

public void setChannel(java.lang.String channel)
Sets the name of the channel to temporarily stop monitoring.

This property is mandatory.

Parameters:
channel - the name of the channel to temporarily stop monitoring.

Asterisk-Java

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