com.yahoo.gondola.RoleChangeEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Java implementation of Raft
The newest version!
/*
* Copyright 2015, Yahoo Inc.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
package com.yahoo.gondola;
import java.net.InetSocketAddress;
import java.util.List;
public class RoleChangeEvent {
public Cluster cluster;
public Member member;
// Null if the leader is currently unknown
public Member leader;
public Role oldRole;
public Role newRole;
public RoleChangeEvent(Cluster cluster, Member member, Member leader, Role oldRole, Role newRole) {
this.cluster = cluster;
this.member = member;
this.leader = leader;
this.oldRole = oldRole;
this.newRole = newRole;
}
}