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(int serverId, org.neo4j.kernel.impl.core.LastTxIdGetter lastTxIdGetter, HighAvailabilityMemberInfoProvider masterInfo)
           
 
Method Summary
 DefaultElectionCredentials 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(int serverId,
                                          org.neo4j.kernel.impl.core.LastTxIdGetter lastTxIdGetter,
                                          HighAvailabilityMemberInfoProvider masterInfo)
Method Detail

getCredentials

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


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