Package org.jgroups
Class Event
- java.lang.Object
-
- org.jgroups.Event
-
public class Event extends java.lang.ObjectUsed for inter-stack and intra-stack communication.- Author:
- Bela Ban
-
-
Field Summary
Fields Modifier and Type Field Description static intBECOME_SERVERstatic intBLOCKstatic intCLOSE_BARRIERstatic intCONFIGstatic intCONNECTstatic intCONNECT_WITH_STATE_TRANSFERstatic intDISCONNECTstatic intEXITstatic intFIND_INITIAL_MBRSstatic intGET_APPLSTATEstatic intGET_DIGESTstatic EventGET_DIGEST_EVTstatic intGET_STATEstatic intGET_STATE_OKstatic intHEARD_FROMstatic intINFOstatic intMERGEstatic intMERGE_DIGESTstatic intMSGstatic intOPEN_BARRIERstatic intPERFstatic intPREPARE_VIEWstatic intREBROADCASTstatic intRESUMEstatic intRESUME_STABLEstatic intSET_DIGESTstatic intSET_LOCAL_ADDRESSstatic intSHUTDOWNstatic intSTABLEstatic intSTART_PARTITIONstatic intSTATE_RECEIVEDstatic intSTATE_TRANSFER_INPUTSTREAMstatic intSTATE_TRANSFER_INPUTSTREAM_CLOSEDstatic intSTATE_TRANSFER_OUTPUTSTREAMstatic intSTATE_TRANSFER_OUTPUTSTREAM_CLOSEDstatic intSTOP_PARTITIONstatic intSUSPECTstatic intSUSPENDstatic intSUSPEND_STABLEstatic intTMP_VIEWstatic intUNBLOCKstatic intUNSUSPECTstatic intUSER_DEFINEDstatic intVIEW_CHANGE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.ObjectgetArg()intgetType()voidsetArg(java.lang.Object arg)voidsetType(int type)Deprecated.in order to make an Event immutablejava.lang.StringtoString()static java.lang.Stringtype2String(int t)
-
-
-
Field Detail
-
MSG
public static final int MSG
- See Also:
- Constant Field Values
-
CONNECT
public static final int CONNECT
- See Also:
- Constant Field Values
-
DISCONNECT
public static final int DISCONNECT
- See Also:
- Constant Field Values
-
VIEW_CHANGE
public static final int VIEW_CHANGE
- 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
-
FIND_INITIAL_MBRS
public static final int FIND_INITIAL_MBRS
- 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_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
-
STABLE
public static final int STABLE
- See Also:
- Constant Field Values
-
GET_DIGEST
public static final int GET_DIGEST
- See Also:
- Constant Field Values
-
SET_DIGEST
public static final int SET_DIGEST
- 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
-
HEARD_FROM
public static final int HEARD_FROM
- See Also:
- Constant Field Values
-
UNSUSPECT
public static final int UNSUSPECT
- See Also:
- Constant Field Values
-
MERGE_DIGEST
public static final int MERGE_DIGEST
- See Also:
- Constant Field Values
-
CONFIG
public static final int CONFIG
- 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
-
SUSPEND
public static final int SUSPEND
- See Also:
- Constant Field Values
-
RESUME
public static final int RESUME
- See Also:
- Constant Field Values
-
STATE_TRANSFER_INPUTSTREAM
public static final int STATE_TRANSFER_INPUTSTREAM
- See Also:
- Constant Field Values
-
STATE_TRANSFER_OUTPUTSTREAM
public static final int STATE_TRANSFER_OUTPUTSTREAM
- See Also:
- Constant Field Values
-
STATE_TRANSFER_INPUTSTREAM_CLOSED
public static final int STATE_TRANSFER_INPUTSTREAM_CLOSED
- See Also:
- Constant Field Values
-
STATE_TRANSFER_OUTPUTSTREAM_CLOSED
public static final int STATE_TRANSFER_OUTPUTSTREAM_CLOSED
- See Also:
- Constant Field Values
-
UNBLOCK
public static final int UNBLOCK
- See Also:
- Constant Field Values
-
CLOSE_BARRIER
public static final int CLOSE_BARRIER
- See Also:
- Constant Field Values
-
OPEN_BARRIER
public static final int OPEN_BARRIER
- See Also:
- Constant Field Values
-
REBROADCAST
public static final int REBROADCAST
- See Also:
- Constant Field Values
-
SHUTDOWN
public static final int SHUTDOWN
- See Also:
- Constant Field Values
-
CONNECT_WITH_STATE_TRANSFER
public static final int CONNECT_WITH_STATE_TRANSFER
- See Also:
- Constant Field Values
-
START_PARTITION
public static final int START_PARTITION
- See Also:
- Constant Field Values
-
STOP_PARTITION
public static final int STOP_PARTITION
- See Also:
- Constant Field Values
-
INFO
public static final int INFO
- See Also:
- Constant Field Values
-
PREPARE_VIEW
public static final int PREPARE_VIEW
- See Also:
- Constant Field Values
-
USER_DEFINED
public static final int USER_DEFINED
- See Also:
- Constant Field Values
-
GET_DIGEST_EVT
public static final Event GET_DIGEST_EVT
-
-
Method Detail
-
getType
public final int getType()
-
setType
public void setType(int type)
Deprecated.in order to make an Event immutableSets the new type- Parameters:
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:
toStringin classjava.lang.Object
-
-