use of org.neo4j.kernel.ha.cluster.HighAvailabilityMemberState in project neo4j by neo4j.
the class ClusterMembers method getCurrentMember.
public ClusterMember getCurrentMember() {
ClusterMember currentMember = observedClusterMembers.getCurrentMember();
if (currentMember == null) {
return null;
}
HighAvailabilityMemberState currentState = stateMachine.getCurrentState();
return updateRole(currentMember, currentState);
}
Aggregations