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.
 
Constructor Summary
GroupChangeEvent(ReplicationGroup repGroup, String nodeName, GroupChangeEvent.GroupChangeType opType)
           
 
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
 

Constructor Detail

GroupChangeEvent

GroupChangeEvent(ReplicationGroup repGroup,
                 String nodeName,
                 GroupChangeEvent.GroupChangeType opType)
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.


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