org.asteriskjava.manager.event.AbstractMonitorEvent Maven / Gradle / Ivy
Show all versions of asterisk-java Show documentation
/*
* 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.event;
/**
* Abstract base class for monitoring events.
* Monitoring events are implemented in res/res_monitor.c
*
* @author srt
* @version $Id$
* @since 1.0.0
*/
public abstract class AbstractMonitorEvent extends ManagerEvent {
private static final long serialVersionUID = 1L;
private String channel;
private String uniqueId;
/**
* @param source
*/
protected AbstractMonitorEvent(Object source) {
super(source);
}
/**
* Returns the name of the channel.
*
* @return the name of the channel.
*/
public String getChannel() {
return channel;
}
public void setChannel(String channel) {
this.channel = channel;
}
/**
* Returns the unique id of the channel.
*
* @return the unique id of the channel.
*/
public String getUniqueId() {
return uniqueId;
}
public void setUniqueId(String uniqueId) {
this.uniqueId = uniqueId;
}
}