public interface ElectionContext extends TimeoutsContext, LoggingContext, ConfigurationContext
ElectionState.| Modifier and Type | Interface and Description |
|---|---|
static class |
ElectionContext.VoteRequest |
cancelTimeout, getTimeoutFor, setTimeoutgetLogboundAt, getCoordinator, getIdForUri, getMembers, getMemberURIs, getMyId, getUriForId, isMevoid created()
List<ElectionRole> getPossibleRoles()
void nodeFailed(InstanceId node)
Iterable<String> getRoles(InstanceId server)
boolean isElectionProcessInProgress(String role)
void startElectionProcess(String role)
boolean voted(String role, InstanceId suggestedNode, ElectionCredentials suggestionCredentials, long electionVersion)
InstanceId getElectionWinner(String role)
ElectionCredentials getCredentialsForRole(String role)
int getVoteCount(String role)
int getNeededVoteCount()
void forgetElection(String role)
boolean electionOk()
boolean isInCluster()
Iterable<InstanceId> getAlive()
boolean isElector()
boolean isFailed(InstanceId key)
InstanceId getElected(String roleName)
boolean hasCurrentlyElectedVoted(String role, InstanceId currentElected)
Set<InstanceId> getFailed()
ClusterMessage.VersionedConfigurationStateChange newConfigurationStateChange()
ElectionContext.VoteRequest voteRequestForRole(ElectionRole role)
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.