|
Berkeley DB Java Edition version 5.0.58 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MonitorChangeListener
Applications can register for Monitor event notification through
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 MonitorChangeEvent
. Classes
implementing this interface supply implementations for a notify
associated with each type of event, so they can respond with some
application-specific course of action.
See Replication Guide, Writing Monitor Nodes
Method Summary | |
---|---|
void |
notify(GroupChangeEvent groupChangeEvent)
The method is invoked whenever there is a change in the composition of the replication group. |
void |
notify(JoinGroupEvent joinGroupEvent)
The method is invoked whenever a node joins the group, by successfully opening its first ReplicatedEnvironment handle. |
void |
notify(LeaveGroupEvent leaveGroupEvent)
The method is invoked whenever a node leaves the group by closing its last ReplicatedEnvironment handle. |
void |
notify(NewMasterEvent newMasterEvent)
The method is invoked whenever there is new master associated with the replication group. |
Method Detail |
---|
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)
ReplicatedEnvironment
handle.
joinGroupEvent
- the event that resulted in the notify. It
identifies the node that joined the group.void notify(LeaveGroupEvent leaveGroupEvent)
ReplicatedEnvironment
handle.
leaveGroupEvent
- the event that resulted in the notify. It
identifies the node that left the group.
|
Berkeley DB Java Edition version 5.0.58 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |