Search in sources :

Example 1 with HighAvailabilityMemberState

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);
}
Also used : HighAvailabilityMemberState(org.neo4j.kernel.ha.cluster.HighAvailabilityMemberState)

Aggregations

HighAvailabilityMemberState (org.neo4j.kernel.ha.cluster.HighAvailabilityMemberState)1