org.jgroups

Class Event


public class Event
extends java.lang.Object

Used for inter-stack and intra-stack communication.
Author:
Bela Ban

Field Summary

static int
BECOME_SERVER
static int
BLOCK
static int
BLOCK_OK
static int
BLOCK_SEND
static int
CONFIG
static int
CONNECT
static int
CONNECT_OK
static int
DISCONNECT
static int
DISCONNECT_OK
static int
DROP_NEXT_MSG
static int
ENABLE_UNICASTS_TO
static int
EXIT
static int
FIND_INITIAL_MBRS
static Event
FIND_INITIAL_MBRS_EVT
static int
FIND_INITIAL_MBRS_OK
static int
FLUSH
static int
FLUSH_OK
static int
GET_APPLSTATE
static int
GET_APPLSTATE_OK
static int
GET_DIGEST
static Event
GET_DIGEST_EVT
static int
GET_DIGEST_OK
static int
GET_DIGEST_STABLE
static int
GET_DIGEST_STABLE_OK
static int
GET_DIGEST_STATE
static int
GET_DIGEST_STATE_OK
static int
GET_LOCAL_ADDRESS
static int
GET_MSGS
static int
GET_MSGS_OK
static int
GET_MSGS_RECEIVED
static int
GET_MSGS_RECEIVED_OK
static int
GET_MSG_DIGEST
static int
GET_MSG_DIGEST_OK
static int
GET_STATE
static int
GET_STATE_OK
static int
HEARD_FROM
static int
MERGE
static int
MERGE_DENIED
static int
MERGE_DIGEST
static int
MSG
static int
PERF
static int
REBROADCAST_MSGS
static int
REBROADCAST_MSGS_OK
static int
RESUME_STABLE
static int
SET_DIGEST
static int
SET_LOCAL_ADDRESS
static int
SET_PARTITIONS
static int
SET_PID
static int
STABLE
static int
START
static int
START_OK
static int
START_QUEUEING
static int
STATE_RECEIVED
static int
STOP
static int
STOP_OK
static int
STOP_QUEUEING
static int
SUBVIEWSET_MERGE
static int
SUBVIEW_MERGE
static int
SUSPECT
static int
SUSPEND_STABLE
static int
SWITCH_NAK
static int
SWITCH_NAK_ACK
static int
SWITCH_OUT_OF_BAND
static int
TMP_VIEW
static int
UNBLOCK_SEND
static int
UNSUSPECT
static int
USER_DEFINED
static int
VIEW_CHANGE

Constructor Summary

Event(int type)
Event(int type, Object arg)

Method Summary

Object
getArg()
int
getType()
void
setArg(Object arg)
void
setType(int type)
String
toString()
static String
type2String(int t)

Field Details

BECOME_SERVER

public static final int BECOME_SERVER
Field Value:
16

BLOCK

public static final int BLOCK
Field Value:
10

BLOCK_OK

public static final int BLOCK_OK
Field Value:
11

BLOCK_SEND

public static final int BLOCK_SEND
Field Value:
54

CONFIG

public static final int CONFIG
Field Value:
56

CONNECT

public static final int CONNECT
Field Value:
2

CONNECT_OK

public static final int CONNECT_OK
Field Value:
3

DISCONNECT

public static final int DISCONNECT
Field Value:
4

DISCONNECT_OK

public static final int DISCONNECT_OK
Field Value:
5

DROP_NEXT_MSG

public static final int DROP_NEXT_MSG
Field Value:
29

ENABLE_UNICASTS_TO

public static final int ENABLE_UNICASTS_TO
Field Value:
67

EXIT

public static final int EXIT
Field Value:
46

FIND_INITIAL_MBRS

public static final int FIND_INITIAL_MBRS
Field Value:
12

FIND_INITIAL_MBRS_EVT

public static final Event FIND_INITIAL_MBRS_EVT

FIND_INITIAL_MBRS_OK

public static final int FIND_INITIAL_MBRS_OK
Field Value:
13

FLUSH

public static final int FLUSH
Field Value:
27

FLUSH_OK

public static final int FLUSH_OK
Field Value:
28

GET_APPLSTATE

public static final int GET_APPLSTATE
Field Value:
17

GET_APPLSTATE_OK

public static final int GET_APPLSTATE_OK
Field Value:
18

GET_DIGEST

public static final int GET_DIGEST
Field Value:
39

GET_DIGEST_EVT

public static final Event GET_DIGEST_EVT

GET_DIGEST_OK

public static final int GET_DIGEST_OK
Field Value:
40

GET_DIGEST_STABLE

public static final int GET_DIGEST_STABLE
Field Value:
57

GET_DIGEST_STABLE_OK

public static final int GET_DIGEST_STABLE_OK
Field Value:
58

GET_DIGEST_STATE

public static final int GET_DIGEST_STATE
Field Value:
42

GET_DIGEST_STATE_OK

public static final int GET_DIGEST_STATE_OK
Field Value:
43

GET_LOCAL_ADDRESS

public static final int GET_LOCAL_ADDRESS
Field Value:
7

GET_MSGS

public static final int GET_MSGS
Field Value:
37

GET_MSGS_OK

public static final int GET_MSGS_OK
Field Value:
38

GET_MSGS_RECEIVED

public static final int GET_MSGS_RECEIVED
Field Value:
35

GET_MSGS_RECEIVED_OK

public static final int GET_MSGS_RECEIVED_OK
Field Value:
36

GET_MSG_DIGEST

public static final int GET_MSG_DIGEST
Field Value:
31

GET_MSG_DIGEST_OK

public static final int GET_MSG_DIGEST_OK
Field Value:
32

GET_STATE

public static final int GET_STATE
Field Value:
19

GET_STATE_OK

public static final int GET_STATE_OK
Field Value:
20

HEARD_FROM

public static final int HEARD_FROM
Field Value:
50

MERGE

public static final int MERGE
Field Value:
14

MERGE_DENIED

public static final int MERGE_DENIED
Field Value:
45

MERGE_DIGEST

public static final int MERGE_DIGEST
Field Value:
53

MSG

public static final int MSG
Field Value:
1

PERF

public static final int PERF
Field Value:
47

REBROADCAST_MSGS

public static final int REBROADCAST_MSGS
Field Value:
33

REBROADCAST_MSGS_OK

public static final int REBROADCAST_MSGS_OK
Field Value:
34

RESUME_STABLE

public static final int RESUME_STABLE
Field Value:
66

SET_DIGEST

public static final int SET_DIGEST
Field Value:
41

SET_LOCAL_ADDRESS

public static final int SET_LOCAL_ADDRESS
Field Value:
8

SET_PARTITIONS

public static final int SET_PARTITIONS
Field Value:
44

SET_PID

public static final int SET_PID
Field Value:
52

STABLE

public static final int STABLE
Field Value:
30

START

public static final int START
Field Value:
61

START_OK

public static final int START_OK
Field Value:
62

START_QUEUEING

public static final int START_QUEUEING
Field Value:
22

STATE_RECEIVED

public static final int STATE_RECEIVED
Field Value:
21

STOP

public static final int STOP
Field Value:
63

STOP_OK

public static final int STOP_OK
Field Value:
64

STOP_QUEUEING

public static final int STOP_QUEUEING
Field Value:
23

SUBVIEWSET_MERGE

public static final int SUBVIEWSET_MERGE
Field Value:
49

SUBVIEW_MERGE

public static final int SUBVIEW_MERGE
Field Value:
48

SUSPECT

public static final int SUSPECT
Field Value:
9

SUSPEND_STABLE

public static final int SUSPEND_STABLE
Field Value:
65

SWITCH_NAK

public static final int SWITCH_NAK
Field Value:
24

SWITCH_NAK_ACK

public static final int SWITCH_NAK_ACK
Field Value:
25

SWITCH_OUT_OF_BAND

public static final int SWITCH_OUT_OF_BAND
Field Value:
26

TMP_VIEW

public static final int TMP_VIEW
Field Value:
15

UNBLOCK_SEND

public static final int UNBLOCK_SEND
Field Value:
55

UNSUSPECT

public static final int UNSUSPECT
Field Value:
51

USER_DEFINED

public static final int USER_DEFINED
Field Value:
1000

VIEW_CHANGE

public static final int VIEW_CHANGE
Field Value:
6

Constructor Details

Event

public Event(int type)

Event

public Event(int type,
             Object arg)

Method Details

getArg

public Object getArg()

getType

public int getType()

setArg

public void setArg(Object arg)

setType

public void setType(int type)

toString

public String toString()

type2String

public static String type2String(int t)

Copyright B) 1998-2005 Bela Ban. All Rights Reserved.