Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * See the file LICENSE for redistribution information.
  * Copyright (c) 2002, 2013 Oracle and/or its affiliates.  All rights reserved.

The event used to track changes to the composition and status of the group. An instance of this event is created each time there is any change to the group.
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.
public class GroupChangeEvent extends MonitorChangeEvent {

The kind of GroupChangeEvent.
    public static enum GroupChangeType {
A new node was added to the replication group.

A node was removed from the replication group.

The latest information about the replication group.
    private final ReplicationGroup repGroup;

The type of this change.
    private final GroupChangeType opType;
                     String nodeName
                     GroupChangeType opType) {
        this. = repGroup;
        this. = opType;

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

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.

the group change type.
    public GroupChangeType getChangeType() {
        return ;
New to GrepCode? Check out our FAQ X