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 Object
implements ChannelInterceptor.InterceptorEvent
Represents a coordination event in the election protocol.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intEvent for confirmation received.static final intEvent for election abandoned.static final intEvent for member add.static final intEvent for member delete.static final intEvent for message arrival.static final intEvent for post-merge.static final intEvent for pre-merge.static final intEvent for election processing.static final intEvent for sending message.static final intEvent for coordinator start.static final intEvent for election start.static final intEvent for coordinator stop.static final intEvent for waiting for message. -
Constructor Summary
ConstructorsConstructorDescriptionCoordinationEvent(int type, ChannelInterceptor interceptor, String info) Constructs a CoordinationEvent. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the event type.Returns the event type description.Returns the interceptor that fired the event.toString()
-
Field Details
-
EVT_START
public static final int EVT_STARTEvent for coordinator start.- See Also:
-
EVT_MBR_ADD
public static final int EVT_MBR_ADDEvent for member add.- See Also:
-
EVT_MBR_DEL
public static final int EVT_MBR_DELEvent for member delete.- See Also:
-
EVT_START_ELECT
public static final int EVT_START_ELECTEvent for election start.- See Also:
-
EVT_PROCESS_ELECT
public static final int EVT_PROCESS_ELECTEvent for election processing.- See Also:
-
EVT_MSG_ARRIVE
public static final int EVT_MSG_ARRIVEEvent for message arrival.- See Also:
-
EVT_PRE_MERGE
public static final int EVT_PRE_MERGEEvent for pre-merge.- See Also:
-
EVT_POST_MERGE
public static final int EVT_POST_MERGEEvent for post-merge.- See Also:
-
EVT_WAIT_FOR_MSG
public static final int EVT_WAIT_FOR_MSGEvent for waiting for message.- See Also:
-
EVT_SEND_MSG
public static final int EVT_SEND_MSGEvent for sending message.- See Also:
-
EVT_STOP
public static final int EVT_STOPEvent for coordinator stop.- See Also:
-
EVT_CONF_RX
public static final int EVT_CONF_RXEvent for confirmation received.- See Also:
-
EVT_ELECT_ABANDONED
public static final int EVT_ELECT_ABANDONEDEvent for election abandoned.- See Also:
-
-
Constructor Details
-
CoordinationEvent
Constructs a CoordinationEvent.- Parameters:
type- The event typeinterceptor- The channel interceptorinfo- Additional information about the event
-
-
Method Details
-
getEventType
public int getEventType()Description copied from interface:ChannelInterceptor.InterceptorEventReturns the event type.- Specified by:
getEventTypein interfaceChannelInterceptor.InterceptorEvent- Returns:
- the event type
-
getEventTypeDesc
Description copied from interface:ChannelInterceptor.InterceptorEventReturns the event type description.- Specified by:
getEventTypeDescin interfaceChannelInterceptor.InterceptorEvent- Returns:
- the event type description
-
getInterceptor
Description copied from interface:ChannelInterceptor.InterceptorEventReturns the interceptor that fired the event.- Specified by:
getInterceptorin interfaceChannelInterceptor.InterceptorEvent- Returns:
- the interceptor
-
toString
-