| Package | Description |
|---|---|
| io.atomix.cluster |
Provides classes and interfaces for cluster management.
|
| io.atomix.cluster.messaging |
Provides high-level interfaces for direct and publish-subscribe inter-cluster communication.
|
| io.atomix.core |
Core APIs for managing Atomix clusters and operating on distributed primitives.
|
| io.atomix.primitive.partition |
Provides classes and interfaces for managing primitive partitions, partition groups, and member groups.
|
| io.atomix.primitive.session |
Provides classes and interfaces for managing primitive sessions.
|
| io.atomix.protocols.backup.partition |
Provides
PartitionGroup and Partition
implementations for primary-backup. |
| io.atomix.protocols.gossip | |
| io.atomix.protocols.gossip.map | |
| io.atomix.protocols.raft |
Provides classes and interfaces for managing Raft clients and servers.
|
| io.atomix.protocols.raft.partition |
Provides
PartitionGroup and Partition
implementations for the Raft consensus protocol. |
| io.atomix.protocols.raft.session |
Provides a
Session implementation for the Raft consensus protocol. |
| Modifier and Type | Method and Description |
|---|---|
static MemberId |
MemberId.anonymous()
Creates a new cluster node identifier from the specified string.
|
static MemberId |
MemberId.from(String id)
Creates a new cluster node identifier from the specified string.
|
MemberId |
MemberConfig.getId()
Returns the member identifier.
|
MemberId |
Member.id() |
| Modifier and Type | Method and Description |
|---|---|
static MemberBuilder |
Member.builder(MemberId memberId)
Returns a new member builder.
|
Member |
ClusterMembershipService.getMember(MemberId memberId)
Returns the specified member.
|
static Member |
Member.member(MemberId memberId,
Address address)
Returns a new named cluster member.
|
MemberConfig |
MemberConfig.setId(MemberId id)
Sets the member identifier.
|
MemberBuilder |
MemberBuilder.withId(MemberId id)
Sets the member identifier.
|
AtomixClusterBuilder |
AtomixClusterBuilder.withMemberId(MemberId localMemberId)
Sets the local member identifier.
|
| Modifier and Type | Method and Description |
|---|---|
default <M,R> CompletableFuture<R> |
ClusterCommunicationService.send(String subject,
M message,
Function<M,byte[]> encoder,
Function<byte[],R> decoder,
MemberId toMemberId)
Sends a message and expects a reply.
|
<M,R> CompletableFuture<R> |
ClusterCommunicationService.send(String subject,
M message,
Function<M,byte[]> encoder,
Function<byte[],R> decoder,
MemberId toMemberId,
Duration timeout)
Sends a message and expects a reply.
|
default <M,R> CompletableFuture<R> |
ClusterCommunicationService.send(String subject,
M message,
MemberId toMemberId)
Sends a message and expects a reply.
|
default <M,R> CompletableFuture<R> |
ClusterCommunicationService.send(String subject,
M message,
MemberId toMemberId,
Duration timeout)
Sends a message and expects a reply.
|
<M> CompletableFuture<Void> |
ClusterCommunicationService.unicast(String subject,
M message,
Function<M,byte[]> encoder,
MemberId toMemberId)
Sends a message to the specified controller node.
|
default <M> CompletableFuture<Void> |
ClusterCommunicationService.unicast(String subject,
M message,
MemberId toMemberId)
Sends a message to the specified controller node.
|
| Modifier and Type | Method and Description |
|---|---|
<M> void |
ClusterCommunicationService.multicast(String subject,
M message,
Function<M,byte[]> encoder,
Set<MemberId> memberIds)
Multicasts a message to a set of controller nodes.
|
default <M> void |
ClusterCommunicationService.multicast(String subject,
M message,
Set<MemberId> memberIds)
Multicasts a message to a set of controller nodes.
|
| Modifier and Type | Method and Description |
|---|---|
AtomixBuilder |
AtomixBuilder.withMemberId(MemberId localMemberId) |
| Modifier and Type | Method and Description |
|---|---|
MemberId |
GroupMember.memberId()
Returns the member ID.
|
MemberId |
Partition.primary()
Returns the partition's current primary.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<MemberId> |
Partition.backups()
Returns the partition's backups.
|
Set<MemberId> |
PartitionGroupMembership.members()
Returns the partition group members.
|
Collection<MemberId> |
PartitionMetadata.members()
Returns the controller nodes that are members of this partition.
|
Collection<MemberId> |
Partition.members()
Returns the collection of all members in the partition.
|
| Constructor and Description |
|---|
GroupMember(MemberId memberId,
MemberGroupId groupId) |
| Constructor and Description |
|---|
PartitionGroupMembership(String group,
PartitionGroupConfig config,
Set<MemberId> members,
boolean system) |
PartitionMetadata(PartitionId id,
Collection<MemberId> members) |
| Modifier and Type | Method and Description |
|---|---|
MemberId |
Session.memberId()
Returns the member identifier to which the session belongs.
|
| Modifier and Type | Method and Description |
|---|---|
MemberId |
PrimaryBackupPartition.primary() |
| Modifier and Type | Method and Description |
|---|---|
Collection<MemberId> |
PrimaryBackupPartition.backups() |
Collection<MemberId> |
PrimaryBackupPartition.members() |
| Modifier and Type | Method and Description |
|---|---|
Collection<MemberId> |
PeerSelector.select(E entry,
ClusterMembershipService membership)
Selects the peers to update for the given entry.
|
| Modifier and Type | Method and Description |
|---|---|
MemberId |
AntiEntropyAdvertisement.sender()
Returns the sender's node ID.
|
| Constructor and Description |
|---|
AntiEntropyAdvertisement(MemberId sender,
Map<String,MapValue.Digest> digest)
Creates a new anti entropy advertisement message.
|
| Modifier and Type | Method and Description |
|---|---|
MemberId |
RaftMetadataClient.getLeader()
Returns the current cluster leader.
|
MemberId |
RaftClient.leader()
Returns the current leader.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<MemberId> |
RaftMetadataClient.getMembers()
Returns the set of known members in the cluster.
|
default Collection<MemberId> |
RaftMetadataClient.getServers()
Returns the set of known members in the cluster.
|
| Modifier and Type | Method and Description |
|---|---|
default CompletableFuture<RaftServer> |
RaftServer.bootstrap(MemberId... members)
Bootstraps the cluster using the provided cluster configuration.
|
static RaftClient.Builder |
RaftClient.builder(MemberId... cluster)
Returns a new Raft client builder.
|
static RaftServer.Builder |
RaftServer.builder(MemberId localMemberId)
Returns a new Raft server builder.
|
default CompletableFuture<RaftClient> |
RaftClient.connect(MemberId... members)
Connects the client to Raft cluster via the provided server addresses.
|
default CompletableFuture<RaftServer> |
RaftServer.join(MemberId... members)
Joins the cluster.
|
default CompletableFuture<RaftServer> |
RaftServer.listen(MemberId... cluster)
Joins the cluster as a passive listener.
|
RaftClient.Builder |
RaftClient.Builder.withMemberId(MemberId memberId)
Sets the local node identifier.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<RaftServer> |
RaftServer.bootstrap(Collection<MemberId> cluster)
Bootstraps the cluster using the provided cluster configuration.
|
static RaftClient.Builder |
RaftClient.builder(Collection<MemberId> cluster)
Returns a new Raft client builder.
|
CompletableFuture<RaftClient> |
RaftClient.connect(Collection<MemberId> members)
Connects the client to Raft cluster via the provided server addresses.
|
CompletableFuture<RaftServer> |
RaftServer.join(Collection<MemberId> members)
Joins the cluster.
|
CompletableFuture<RaftServer> |
RaftServer.listen(Collection<MemberId> cluster)
Joins the cluster as a passive listener.
|
| Modifier and Type | Method and Description |
|---|---|
MemberId |
RaftPartition.primary() |
| Modifier and Type | Method and Description |
|---|---|
Collection<MemberId> |
RaftPartition.backups() |
Collection<MemberId> |
RaftPartition.members() |
| Modifier and Type | Method and Description |
|---|---|
RaftPartitionGroup.Builder |
RaftPartitionGroup.Builder.withMembers(MemberId... members)
Sets the Raft partition group members.
|
| Modifier and Type | Method and Description |
|---|---|
abstract List<MemberId> |
CommunicationStrategy.selectConnections(MemberId leader,
List<MemberId> members)
Returns a prioritized list of servers to which the client can connect and submit operations.
|
| Modifier and Type | Method and Description |
|---|---|
abstract List<MemberId> |
CommunicationStrategy.selectConnections(MemberId leader,
List<MemberId> members)
Returns a prioritized list of servers to which the client can connect and submit operations.
|
| Modifier and Type | Method and Description |
|---|---|
abstract List<MemberId> |
CommunicationStrategy.selectConnections(MemberId leader,
List<MemberId> members)
Returns a prioritized list of servers to which the client can connect and submit operations.
|
| Constructor and Description |
|---|
RaftSession(SessionId sessionId,
MemberId member,
String name,
PrimitiveType primitiveType,
ReadConsistency readConsistency,
long minTimeout,
long maxTimeout,
long lastUpdated,
Serializer serializer,
RaftServiceContext context,
io.atomix.protocols.raft.impl.RaftContext server,
io.atomix.utils.concurrent.ThreadContextFactory threadContextFactory) |
Copyright © 2013–2018. All rights reserved.