public interface MonitorChangeListener
Monitor.startListener(com.sleepycat.je.rep.monitor.MonitorChangeListener). The interface defines an overloaded notify event for each event supported by the Monitor.
Changes in the composition of the replication group, or in the dynamic state
of a member, are communicated to the listener as events that are represented
as subclasses of
implementing this interface supply implementations for a
associated with each type of event, so they can respond with some
application-specific course of action.
|Modifier and Type||Method and Description|
The method is invoked whenever there is a change in the composition of the replication group.
The method is invoked whenever a node joins the group, by successfully opening its first
The method is invoked whenever a node leaves the group by closing its last
The method is invoked whenever there is new master associated with the replication group.
void notify(NewMasterEvent newMasterEvent)
newMasterEvent- the event that resulted in the notify. It identifies the new master.
void notify(GroupChangeEvent groupChangeEvent)
groupChangeEvent- the event that resulted in the notify. It describes the new group composition and identifies the node that provoked the change.
void notify(JoinGroupEvent joinGroupEvent)
joinGroupEvent- the event that resulted in the notify. It identifies the node that joined the group.
Copyright (c) 2002, 2016 Oracle and/or its affiliates. All rights reserved.