View Javadoc

1   /*
2    * Copyright (c) 1998-2002 The Jgroup Team.
3    *
4    * This program is free software; you can redistribute it and/or modify
5    * it under the terms of the GNU Lesser General Public License version 2 as
6    * published by the Free Software Foundation.
7    *
8    * This program is distributed in the hope that it will be useful,
9    * but WITHOUT ANY WARRANTY; without even the implied warranty of
10   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11   * GNU Lesser General Public License for more details.
12   *
13   * You should have received a copy of the GNU Lesser General Public License
14   * along with this program; if not, write to the Free Software
15   * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16   *
17   */
18  
19  package jgroup.relacs.events;
20  
21  /**
22   *  The <code>EventTags</code> interface defines symbolic constants for
23   *  the tags used to distinguish events.  Events are used for
24   *  communication between the daemon and group members.
25   *
26   *  @author Alberto Montresor
27   *  @since  Jgroup 1.2
28   */
29  public interface EventTags
30  {
31  
32    /**
33     *  This tag identifies the events generated when a daemon delivers
34     *  a message to a member.
35     */
36    public static final byte DELIVERY_EVENT = 1;
37  
38    /** 
39     *  This tag identifies an event generated by a member to acknowledge
40     *  the delivery of a message.
41     */
42    public static final byte DELIVERY_ACK = 2;
43  
44    /**
45     *  This tag identifies the events generated when a daemon installs
46     *  a view to a member.
47     */
48    public static final byte INSTALL_EVENT = 3;
49  
50    /** 
51     *  This tag identifies an event generated by a member to acknowledge
52     *  the installation of a view.
53     */
54    public static final byte INSTALL_ACK = 4;
55  
56    /** 
57     *  This tag identifies an event generated when a daemon is about to
58     *  install a new view to a member.
59     */
60    public static final byte PREPARE_EVENT = 5;
61  
62    /** 
63     *  This tag identifies the events generated by a member to acknowledge
64     *  the delivery of a prepare event.
65     */
66    public static final byte PREPARE_ACK= 6;
67  
68    /** 
69     *  This tag identifies an event generated by a member when
70     *  multicasting a message.
71     */
72    public static final byte MULTICAST_REQUEST = 7;
73  
74    /** 
75     *  This tag identifies the events generated when a member requests
76     *  to join a group.
77     */
78    public static final byte JOIN_REQUEST = 8;
79  
80    /** 
81     *  This tag identifies the events generated when a member requests to
82     *  leave a group.
83     */
84    public static final byte LEAVE_REQUEST = 9;
85  
86    /** 
87     *  This tag identifies the events generated by a daemon to acknowledge
88     *  that the member has left the group.
89     */
90    public static final byte MEMBER_LEFT_EVENT = 10;
91  
92    /** 
93     *  This tag identifies the events generated by the dispatcher to
94     *  indicate the failure to the daemon.
95     */
96    public static final byte DAEMON_FAILURE_EVENT = 11;
97  
98  } // END EventTags