View Javadoc

1   /*
2    * Copyright  2004-2005 Stefan Reuter
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   *
16   */
17  package net.sf.asterisk.manager.event;
18  
19  /***
20   * Abstract base class for several queue member related events.
21   * 
22   * @author srt
23   * @version $Id: AbstractQueueMemberEvent.java,v 1.1 2005/08/28 09:45:19 srt Exp $
24   * @since 0.2
25   */
26  public abstract class AbstractQueueMemberEvent extends ManagerEvent
27  {
28      /***
29       * Serializable version identifier
30       */
31      private static final long serialVersionUID = -7437833328723536814L;
32      private String queue;
33      private String location;
34  
35      /***
36       * @param source
37       */
38      public AbstractQueueMemberEvent(Object source)
39      {
40          super(source);
41      }
42  
43      /***
44       * Returns the name of the queue.
45       * 
46       * @return the name of the queue.
47       */
48      public String getQueue()
49      {
50          return queue;
51      }
52  
53      /***
54       * Sets the name of the queue.
55       * 
56       * @param queue the name of the queue.
57       */
58      public void setQueue(String queue)
59      {
60          this.queue = queue;
61      }
62  
63      /***
64       * Returns the name of the member's interface.<br>
65       * E.g. the channel name or agent group.
66       * 
67       * @return the name of the member's interface.
68       */
69      public String getLocation()
70      {
71          return location;
72      }
73  
74      /***
75       * Sets the name of the member's interface.
76       * 
77       * @param member the name of the member's interface.
78       */
79      public void setLocation(String member)
80      {
81          this.location = member;
82      }
83  }