/* * 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.<p> * Monitoring events are implemented in <code>res/res_monitor.c</code> * * @author srt * @version $Id: AbstractMonitorEvent.java 1059 2008-05-20 01:09:56Z srt $ * @since 1.0.0 */ public abstract class AbstractMonitorEvent extends ManagerEvent { 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; } }