Uses of Interface
com.loomcache.server.consensus.RaftNodeApi
Packages that use RaftNodeApi
Package
Description
Multi-Raft sharding infrastructure for LoomCache.
-
Uses of RaftNodeApi in com.loomcache.server
Methods in com.loomcache.server that return RaftNodeApiModifier and TypeMethodDescriptionCacheNode.getRaftNodeApi()Narrow view ofCacheNode.raftNodefor callers that only need the query/submitRaftNodeApi.CacheNode.raftGroupForKey(String key) Resolve theRaftNodethat should propose mutations for the given key. -
Uses of RaftNodeApi in com.loomcache.server.consensus
Classes in com.loomcache.server.consensus that implement RaftNodeApiMethods in com.loomcache.server.consensus that return RaftNodeApiModifier and TypeMethodDescriptionRaftGroupManagerApi.getDefaultGroup()Gets the default group ("raft-0").RaftGroupManagerApi.getGroupForKey(String key) Routes a key to its Raft group via consistent hashing.@Nullable RaftNodeApiRaftGroupManagerApi.getGroupIfExists(String groupName) Gets a specific Raft group by name, ornullif it has not been instantiated yet.RaftGroupManagerApi.getOrCreateGroup(String groupName) Gets or creates a Raft group by name. -
Uses of RaftNodeApi in com.loomcache.server.cp
Methods in com.loomcache.server.cp with parameters of type RaftNodeApiModifier and TypeMethodDescriptionvoidConsistencySubsystem.setExternalLinearizableReadRaftNode(@Nullable RaftNodeApi raftNode) voidLinearizableAtomicLong.setRaftNode(@Nullable RaftNodeApi raftNode) Sets the Raft node for cluster-mode consensus replication.voidLinearizableAtomicReference.setRaftNode(@Nullable RaftNodeApi raftNode) Sets the Raft node for cluster-mode consensus replication.voidLinearizableLock.setRaftNode(@Nullable RaftNodeApi raftNode) Sets the RaftNode associated with this lock.voidLinearizableAtomicLong.setReadRaftNode(@Nullable RaftNodeApi readRaftNode) voidLinearizableAtomicReference.setReadRaftNode(@Nullable RaftNodeApi readRaftNode) -
Uses of RaftNodeApi in com.loomcache.server.metrics
Methods in com.loomcache.server.metrics with parameters of type RaftNodeApiModifier and TypeMethodDescriptionvoidLoomMetrics.registerRaftMetrics(RaftNodeApi raftNode) Register all Raft consensus metrics.voidLoomMetrics.updateFollowerLagMetrics(RaftNodeApi raftNode) Update per-follower replication lag metrics from RaftNode.voidLoomMetrics.updateFollowerMatchIndexMetrics(RaftNodeApi raftNode) Update per-follower match index metrics from RaftNode.voidLoomMetrics.updateRaftMetrics(RaftNodeApi raftNode) Update Raft election metrics from the RaftNode. -
Uses of RaftNodeApi in com.loomcache.server.sharding
Methods in com.loomcache.server.sharding that return RaftNodeApiModifier and TypeMethodDescriptionPartitionRouter.getRaftNodeForKey(Object key) Returns the RaftNode for the group that owns the given key object.PartitionRouter.getRaftNodeForKey(String key) Returns the RaftNode for the group that owns the given key. -
Uses of RaftNodeApi in com.loomcache.server.tracing
Constructors in com.loomcache.server.tracing with parameters of type RaftNodeApiModifierConstructorDescriptionRaftTracer(String nodeId, RaftNodeApi raftNode) Create a new RaftTracer for the given Raft node.