net.sf.asterisk.manager.action
Class ChangeMonitorAction

java.lang.Object
  extended by net.sf.asterisk.manager.action.AbstractManagerAction
      extended by net.sf.asterisk.manager.action.ChangeMonitorAction
All Implemented Interfaces:
java.io.Serializable, ManagerAction

public class ChangeMonitorAction
extends AbstractManagerAction

The ChangeMonitorAction changes the monitoring filename of a channel. It has no effect if the channel is not monitored.
It is implemented in res/res_monitor.c

Version:
$Id: ChangeMonitorAction.java,v 1.5 2005/08/07 16:43:29 srt Exp $
Author:
srt
See Also:
Serialized Form

Constructor Summary
ChangeMonitorAction()
          Creates a new empty ChangeMonitorAction.
ChangeMonitorAction(java.lang.String channel, java.lang.String file)
          Creates a new ChangeMonitorAction that causes monitoring data for the given channel to be written to the given file(s).
 
Method Summary
 java.lang.String getAction()
          Returns the name of this action, i.e.
 java.lang.String getChannel()
          Returns the name of the monitored channel.
 java.lang.String getFile()
          Returns the name of the file to which the voice data is written.
 void setChannel(java.lang.String channel)
          Sets the name of the monitored channel.
This property is mandatory.
 void setFile(java.lang.String file)
          Sets the (base) name of the file(s) to which the voice data is written.
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

ChangeMonitorAction

public ChangeMonitorAction()
Creates a new empty ChangeMonitorAction.


ChangeMonitorAction

public ChangeMonitorAction(java.lang.String channel,
                           java.lang.String file)
Creates a new ChangeMonitorAction that causes monitoring data for the given channel to be written to the given file(s).

Parameters:
channel - the name of the channel that is monitored
file - the (base) name of the file(s) to which the voice data is written
Since:
0.2
Method Detail

getAction

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

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

getChannel

public java.lang.String getChannel()
Returns the name of the monitored channel.


setChannel

public void setChannel(java.lang.String channel)
Sets the name of the monitored channel.
This property is mandatory.


getFile

public java.lang.String getFile()
Returns the name of the file to which the voice data is written.


setFile

public void setFile(java.lang.String file)
Sets the (base) name of the file(s) to which the voice data is written.
This property is mandatory.



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