1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 }