All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.asteriskjava.manager.action.ChangeMonitorAction Maven / Gradle / Ivy

/*
 * Copyright 2004-2006 Stefan Reuter
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package org.asteriskjava.manager.action;

/**
 * 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 * * @author srt * @version $Id$ */ public class ChangeMonitorAction extends AbstractManagerAction { private static final long serialVersionUID = 7577549535238405831L; private String channel; private String file; /** * Creates a new empty ChangeMonitorAction. */ public ChangeMonitorAction() { } /** * Creates a new ChangeMonitorAction that causes monitoring data for the * given channel to be written to the given file(s). * * @param channel * the name of the channel that is monitored * @param file * the (base) name of the file(s) to which the voice data is * written * @since 0.2 */ public ChangeMonitorAction(String channel, String file) { this.channel = channel; this.file = file; } /** * Returns the name of this action, i.e. "ChangeMonitor". */ @Override public String getAction() { return "ChangeMonitor"; } /** * Returns the name of the monitored channel. * * @return the channel */ public String getChannel() { return channel; } /** * Sets the name of the monitored channel. *

* This property is mandatory. * * @param channel * the channel */ public void setChannel(String channel) { this.channel = channel; } /** * Returns the name of the file to which the voice data is written. * * @return the file */ public String getFile() { return file; } /** * Sets the (base) name of the file(s) to which the voice data is written. *

* This property is mandatory. * * @param file * the file */ public void setFile(String file) { this.file = file; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy