org.jgroups
Class Event

java.lang.Object
  extended by org.jgroups.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_MSG_DIGEST
           
static int GET_MSG_DIGEST_OK
           
static int GET_MSGS
           
static int GET_MSGS_OK
           
static int GET_MSGS_RECEIVED
           
static int GET_MSGS_RECEIVED_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 SUBVIEW_MERGE
           
static int SUBVIEWSET_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, java.lang.Object arg)
           
 
Method Summary
 java.lang.Object getArg()
           
 int getType()
           
 void setArg(java.lang.Object arg)
           
 void setType(int type)
           
 java.lang.String toString()
           
static java.lang.String type2String(int t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MSG

public static final int MSG
See Also:
Constant Field Values

CONNECT

public static final int CONNECT
See Also:
Constant Field Values

CONNECT_OK

public static final int CONNECT_OK
See Also:
Constant Field Values

DISCONNECT

public static final int DISCONNECT
See Also:
Constant Field Values

DISCONNECT_OK

public static final int DISCONNECT_OK
See Also:
Constant Field Values

VIEW_CHANGE

public static final int VIEW_CHANGE
See Also:
Constant Field Values

GET_LOCAL_ADDRESS

public static final int GET_LOCAL_ADDRESS
See Also:
Constant Field Values

SET_LOCAL_ADDRESS

public static final int SET_LOCAL_ADDRESS
See Also:
Constant Field Values

SUSPECT

public static final int SUSPECT
See Also:
Constant Field Values

BLOCK

public static final int BLOCK
See Also:
Constant Field Values

BLOCK_OK

public static final int BLOCK_OK
See Also:
Constant Field Values

FIND_INITIAL_MBRS

public static final int FIND_INITIAL_MBRS
See Also:
Constant Field Values

FIND_INITIAL_MBRS_OK

public static final int FIND_INITIAL_MBRS_OK
See Also:
Constant Field Values

MERGE

public static final int MERGE
See Also:
Constant Field Values

TMP_VIEW

public static final int TMP_VIEW
See Also:
Constant Field Values

BECOME_SERVER

public static final int BECOME_SERVER
See Also:
Constant Field Values

GET_APPLSTATE

public static final int GET_APPLSTATE
See Also:
Constant Field Values

GET_APPLSTATE_OK

public static final int GET_APPLSTATE_OK
See Also:
Constant Field Values

GET_STATE

public static final int GET_STATE
See Also:
Constant Field Values

GET_STATE_OK

public static final int GET_STATE_OK
See Also:
Constant Field Values

STATE_RECEIVED

public static final int STATE_RECEIVED
See Also:
Constant Field Values

START_QUEUEING

public static final int START_QUEUEING
See Also:
Constant Field Values

STOP_QUEUEING

public static final int STOP_QUEUEING
See Also:
Constant Field Values

SWITCH_NAK

public static final int SWITCH_NAK
See Also:
Constant Field Values

SWITCH_NAK_ACK

public static final int SWITCH_NAK_ACK
See Also:
Constant Field Values

SWITCH_OUT_OF_BAND

public static final int SWITCH_OUT_OF_BAND
See Also:
Constant Field Values

FLUSH

public static final int FLUSH
See Also:
Constant Field Values

FLUSH_OK

public static final int FLUSH_OK
See Also:
Constant Field Values

DROP_NEXT_MSG

public static final int DROP_NEXT_MSG
See Also:
Constant Field Values

STABLE

public static final int STABLE
See Also:
Constant Field Values

GET_MSG_DIGEST

public static final int GET_MSG_DIGEST
See Also:
Constant Field Values

GET_MSG_DIGEST_OK

public static final int GET_MSG_DIGEST_OK
See Also:
Constant Field Values

REBROADCAST_MSGS

public static final int REBROADCAST_MSGS
See Also:
Constant Field Values

REBROADCAST_MSGS_OK

public static final int REBROADCAST_MSGS_OK
See Also:
Constant Field Values

GET_MSGS_RECEIVED

public static final int GET_MSGS_RECEIVED
See Also:
Constant Field Values

GET_MSGS_RECEIVED_OK

public static final int GET_MSGS_RECEIVED_OK
See Also:
Constant Field Values

GET_MSGS

public static final int GET_MSGS
See Also:
Constant Field Values

GET_MSGS_OK

public static final int GET_MSGS_OK
See Also:
Constant Field Values

GET_DIGEST

public static final int GET_DIGEST
See Also:
Constant Field Values

GET_DIGEST_OK

public static final int GET_DIGEST_OK
See Also:
Constant Field Values

SET_DIGEST

public static final int SET_DIGEST
See Also:
Constant Field Values

GET_DIGEST_STATE

public static final int GET_DIGEST_STATE
See Also:
Constant Field Values

GET_DIGEST_STATE_OK

public static final int GET_DIGEST_STATE_OK
See Also:
Constant Field Values

SET_PARTITIONS

public static final int SET_PARTITIONS
See Also:
Constant Field Values

MERGE_DENIED

public static final int MERGE_DENIED
See Also:
Constant Field Values

EXIT

public static final int EXIT
See Also:
Constant Field Values

PERF

public static final int PERF
See Also:
Constant Field Values

SUBVIEW_MERGE

public static final int SUBVIEW_MERGE
See Also:
Constant Field Values

SUBVIEWSET_MERGE

public static final int SUBVIEWSET_MERGE
See Also:
Constant Field Values

HEARD_FROM

public static final int HEARD_FROM
See Also:
Constant Field Values

UNSUSPECT

public static final int UNSUSPECT
See Also:
Constant Field Values

SET_PID

public static final int SET_PID
See Also:
Constant Field Values

MERGE_DIGEST

public static final int MERGE_DIGEST
See Also:
Constant Field Values

BLOCK_SEND

public static final int BLOCK_SEND
See Also:
Constant Field Values

UNBLOCK_SEND

public static final int UNBLOCK_SEND
See Also:
Constant Field Values

CONFIG

public static final int CONFIG
See Also:
Constant Field Values

GET_DIGEST_STABLE

public static final int GET_DIGEST_STABLE
See Also:
Constant Field Values

GET_DIGEST_STABLE_OK

public static final int GET_DIGEST_STABLE_OK
See Also:
Constant Field Values

START

public static final int START
See Also:
Constant Field Values

START_OK

public static final int START_OK
See Also:
Constant Field Values

STOP

public static final int STOP
See Also:
Constant Field Values

STOP_OK

public static final int STOP_OK
See Also:
Constant Field Values

SUSPEND_STABLE

public static final int SUSPEND_STABLE
See Also:
Constant Field Values

RESUME_STABLE

public static final int RESUME_STABLE
See Also:
Constant Field Values

ENABLE_UNICASTS_TO

public static final int ENABLE_UNICASTS_TO
See Also:
Constant Field Values

USER_DEFINED

public static final int USER_DEFINED
See Also:
Constant Field Values

FIND_INITIAL_MBRS_EVT

public static final Event FIND_INITIAL_MBRS_EVT

GET_DIGEST_EVT

public static final Event GET_DIGEST_EVT
Constructor Detail

Event

public Event(int type)

Event

public Event(int type,
             java.lang.Object arg)
Method Detail

getType

public int getType()

setType

public void setType(int type)

getArg

public java.lang.Object getArg()

setArg

public void setArg(java.lang.Object arg)

type2String

public static java.lang.String type2String(int t)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright ? 1998-2005 Bela Ban. All Rights Reserved.