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 agent related events.
21 *
22 * @author srt
23 * @version $Id: AbstractAgentEvent.java,v 1.1 2005/08/28 09:45:18 srt Exp $
24 * @since 0.2
25 */
26 public abstract class AbstractAgentEvent extends ManagerEvent
27 {
28 /***
29 * Serializable version identifier
30 */
31 private static final long serialVersionUID = -7437833328723536814L;
32 private String channel;
33 private String uniqueId;
34 private String queue;
35 private String member;
36
37 /***
38 * @param source
39 */
40 public AbstractAgentEvent(Object source)
41 {
42 super(source);
43 }
44
45 /***
46 * Returns the name of the channel.
47 */
48 public String getChannel()
49 {
50 return channel;
51 }
52
53 /***
54 * Sets the name of the channel.
55 */
56 public void setChannel(String channel)
57 {
58 this.channel = channel;
59 }
60
61 /***
62 * Returns the unique id of the channel.
63 *
64 * @return the unique id of the channel.
65 */
66 public String getUniqueId()
67 {
68 return uniqueId;
69 }
70
71 /***
72 * Sets the unique id of the channel.
73 *
74 * @param uniqueId the unique id of the channel.
75 */
76 public void setUniqueId(String uniqueId)
77 {
78 this.uniqueId = uniqueId;
79 }
80
81 /***
82 * Returns the name of the queue.
83 *
84 * @return the name of the queue.
85 */
86 public String getQueue()
87 {
88 return queue;
89 }
90
91 /***
92 * Sets the name of the queue.
93 *
94 * @param queue the name of the queue.
95 */
96 public void setQueue(String queue)
97 {
98 this.queue = queue;
99 }
100
101 /***
102 * Returns the name of the member's interface.
103 *
104 * @return the name of the member's interface.
105 */
106 public String getMember()
107 {
108 return member;
109 }
110
111 /***
112 * Sets the name of the member's interface.
113 *
114 * @param member the name of the member's interface.
115 */
116 public void setMember(String member)
117 {
118 this.member = member;
119 }
120 }