Class NonBlockingCoordinator.CoordinationEvent
- java.lang.Object
-
- org.apache.catalina.tribes.group.interceptors.NonBlockingCoordinator.CoordinationEvent
-
- All Implemented Interfaces:
ChannelInterceptor.InterceptorEvent
- Enclosing class:
- NonBlockingCoordinator
public static class NonBlockingCoordinator.CoordinationEvent extends java.lang.Object implements ChannelInterceptor.InterceptorEvent
Represents a coordination event in the election protocol.
-
-
Field Summary
Fields Modifier and Type Field Description static intEVT_CONF_RXEvent for confirmation received.static intEVT_ELECT_ABANDONEDEvent for election abandoned.static intEVT_MBR_ADDEvent for member add.static intEVT_MBR_DELEvent for member delete.static intEVT_MSG_ARRIVEEvent for message arrival.static intEVT_POST_MERGEEvent for post-merge.static intEVT_PRE_MERGEEvent for pre-merge.static intEVT_PROCESS_ELECTEvent for election processing.static intEVT_SEND_MSGEvent for sending message.static intEVT_STARTEvent for coordinator start.static intEVT_START_ELECTEvent for election start.static intEVT_STOPEvent for coordinator stop.static intEVT_WAIT_FOR_MSGEvent for waiting for message.
-
Constructor Summary
Constructors Constructor Description CoordinationEvent(int type, ChannelInterceptor interceptor, java.lang.String info)Constructs a CoordinationEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEventType()Returns the event type.java.lang.StringgetEventTypeDesc()Returns the event type description.ChannelInterceptorgetInterceptor()Returns the interceptor that fired the event.java.lang.StringtoString()
-
-
-
Field Detail
-
EVT_START
public static final int EVT_START
Event for coordinator start.- See Also:
- Constant Field Values
-
EVT_MBR_ADD
public static final int EVT_MBR_ADD
Event for member add.- See Also:
- Constant Field Values
-
EVT_MBR_DEL
public static final int EVT_MBR_DEL
Event for member delete.- See Also:
- Constant Field Values
-
EVT_START_ELECT
public static final int EVT_START_ELECT
Event for election start.- See Also:
- Constant Field Values
-
EVT_PROCESS_ELECT
public static final int EVT_PROCESS_ELECT
Event for election processing.- See Also:
- Constant Field Values
-
EVT_MSG_ARRIVE
public static final int EVT_MSG_ARRIVE
Event for message arrival.- See Also:
- Constant Field Values
-
EVT_PRE_MERGE
public static final int EVT_PRE_MERGE
Event for pre-merge.- See Also:
- Constant Field Values
-
EVT_POST_MERGE
public static final int EVT_POST_MERGE
Event for post-merge.- See Also:
- Constant Field Values
-
EVT_WAIT_FOR_MSG
public static final int EVT_WAIT_FOR_MSG
Event for waiting for message.- See Also:
- Constant Field Values
-
EVT_SEND_MSG
public static final int EVT_SEND_MSG
Event for sending message.- See Also:
- Constant Field Values
-
EVT_STOP
public static final int EVT_STOP
Event for coordinator stop.- See Also:
- Constant Field Values
-
EVT_CONF_RX
public static final int EVT_CONF_RX
Event for confirmation received.- See Also:
- Constant Field Values
-
EVT_ELECT_ABANDONED
public static final int EVT_ELECT_ABANDONED
Event for election abandoned.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CoordinationEvent
public CoordinationEvent(int type, ChannelInterceptor interceptor, java.lang.String info)Constructs a CoordinationEvent.- Parameters:
type- The event typeinterceptor- The channel interceptorinfo- Additional information about the event
-
-
Method Detail
-
getEventType
public int getEventType()
Description copied from interface:ChannelInterceptor.InterceptorEventReturns the event type.- Specified by:
getEventTypein interfaceChannelInterceptor.InterceptorEvent- Returns:
- the event type
-
getEventTypeDesc
public java.lang.String getEventTypeDesc()
Description copied from interface:ChannelInterceptor.InterceptorEventReturns the event type description.- Specified by:
getEventTypeDescin interfaceChannelInterceptor.InterceptorEvent- Returns:
- the event type description
-
getInterceptor
public ChannelInterceptor getInterceptor()
Description copied from interface:ChannelInterceptor.InterceptorEventReturns the interceptor that fired the event.- Specified by:
getInterceptorin interfaceChannelInterceptor.InterceptorEvent- Returns:
- the interceptor
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-