Berkeley DB Java Edition
version 5.0.34

com.sleepycat.je.rep.monitor
Class GroupChangeEvent

java.lang.Object
  extended by com.sleepycat.je.rep.monitor.MonitorChangeEvent
      extended by com.sleepycat.je.rep.monitor.GroupChangeEvent

public class GroupChangeEvent
extends MonitorChangeEvent

The event generated when the group composition changes. A new instance of this event is generated each time a node is added or removed from the group.


Nested Class Summary
static class GroupChangeEvent.GroupChangeType
          The kind of GroupChangeEvent.
 
Method Summary
 GroupChangeEvent.GroupChangeType getChangeType()
          Returns the type of the change (the addition of a new member or the removal of an existing member) made to the group.
 ReplicationGroup getRepGroup()
          Returns the current description of the replication group.
 
Methods inherited from class com.sleepycat.je.rep.monitor.MonitorChangeEvent
getNodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRepGroup

public ReplicationGroup getRepGroup()
Returns the current description of the replication group.


getChangeType

public GroupChangeEvent.GroupChangeType getChangeType()
Returns the type of the change (the addition of a new member or the removal of an existing member) made to the group. The method MonitorChangeEvent.getNodeName can be used to identify the node that triggered the event.

Returns:
the group change type.

Berkeley DB Java Edition
version 5.0.34

Copyright (c) 2004-2011 Oracle. All rights reserved.