org.neo4j.kernel.ha.cluster
Class DefaultElectionCredentialsProvider

java.lang.Object
  extended by org.neo4j.kernel.ha.cluster.DefaultElectionCredentialsProvider
All Implemented Interfaces:
org.neo4j.cluster.protocol.election.ElectionCredentialsProvider

public class DefaultElectionCredentialsProvider
extends Object
implements org.neo4j.cluster.protocol.election.ElectionCredentialsProvider

ElectionCredentialsProvider that provides the server id, latest txId and current role status as credentials for elections.


Constructor Summary
DefaultElectionCredentialsProvider(org.neo4j.cluster.InstanceId serverId, org.neo4j.kernel.impl.core.LastTxIdGetter lastTxIdGetter, HighAvailabilityMemberInfoProvider masterInfo)
           
 
Method Summary
 org.neo4j.cluster.protocol.election.ElectionCredentials getCredentials(String role)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultElectionCredentialsProvider

public DefaultElectionCredentialsProvider(org.neo4j.cluster.InstanceId serverId,
                                          org.neo4j.kernel.impl.core.LastTxIdGetter lastTxIdGetter,
                                          HighAvailabilityMemberInfoProvider masterInfo)
Method Detail

getCredentials

public org.neo4j.cluster.protocol.election.ElectionCredentials getCredentials(String role)
Specified by:
getCredentials in interface org.neo4j.cluster.protocol.election.ElectionCredentialsProvider


Copyright © 2002-2014 The Neo4j Graph Database Project. All Rights Reserved.