Asterisk-Java

org.asteriskjava.manager.action
Class StopMonitorAction

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

public class StopMonitorAction
extends AbstractManagerAction

The StopMonitorAction ends monitoring (recording) a channel.

It is implemented in res/res_monitor.c

Version:
$Id: StopMonitorAction.java 938 2007-12-31 03:23:38Z srt $
Author:
srt
See Also:
Serialized Form

Constructor Summary
StopMonitorAction()
          Creates a new empty StopMonitorAction.
StopMonitorAction(java.lang.String channel)
          Creates a new StopMonitorAction that ends monitoring of 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 end monitoring.
 void setChannel(java.lang.String channel)
          Sets the name of the channel to end 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

StopMonitorAction

public StopMonitorAction()
Creates a new empty StopMonitorAction.


StopMonitorAction

public StopMonitorAction(java.lang.String channel)
Creates a new StopMonitorAction that ends monitoring of the given channel.

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

getAction

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

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 end monitoring.

Returns:
the name of the channel to end monitoring.

setChannel

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

This property is mandatory.

Parameters:
channel - the name of the channel to end monitoring.

Asterisk-Java

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