public class MonitorService extends ServiceDispatcher.ExecutingService
| Modifier and Type | Field and Description |
|---|---|
static TestHook<GroupChangeEvent> |
processGroupChangeHook |
static TestHook<JoinGroupEvent> |
processJoinGroupHook |
static TestHook<LeaveGroupEvent> |
processLeaveGroupHook |
static String |
SERVICE_NAME |
| Constructor and Description |
|---|
MonitorService(Monitor monitor,
ServiceDispatcher dispatcher) |
| Modifier and Type | Method and Description |
|---|---|
Runnable |
getRunnable(DataChannel dataChannel) |
TextProtocol.ResponseMessage |
process(Protocol.GroupChange groupChange)
Notify the monitor about the group change (add/remove a node) event.
|
TextProtocol.ResponseMessage |
process(Protocol.JoinGroup joinGroup)
Notify the monitor about a node has joined the group.
|
TextProtocol.ResponseMessage |
process(Protocol.LeaveGroup leaveGroup)
Notify the monitor about a node has left the group.
|
cancel, ensureChannelBlockingpublic static volatile TestHook<GroupChangeEvent> processGroupChangeHook
public static volatile TestHook<JoinGroupEvent> processJoinGroupHook
public static volatile TestHook<LeaveGroupEvent> processLeaveGroupHook
public static final String SERVICE_NAME
public MonitorService(Monitor monitor, ServiceDispatcher dispatcher)
public TextProtocol.ResponseMessage process(Protocol.GroupChange groupChange)
public TextProtocol.ResponseMessage process(Protocol.JoinGroup joinGroup)
public TextProtocol.ResponseMessage process(Protocol.LeaveGroup leaveGroup)
public Runnable getRunnable(DataChannel dataChannel)
getRunnable in class ServiceDispatcher.ExecutingServiceCopyright © 2024. All rights reserved.