| Package | Description |
|---|---|
| io.atomix.primitive.partition |
Provides classes and interfaces for managing primitive partitions, partition groups, and member groups.
|
| io.atomix.primitive.proxy |
Provides interfaces for operating on primitive services via Java proxies.
|
| io.atomix.primitive.session |
Provides classes and interfaces for managing primitive sessions.
|
| io.atomix.protocols.backup |
Provides a
PrimitiveProtocol implementation for multi-primary replication and
classes for managing primary-backup clients/servers. |
| io.atomix.protocols.backup.partition |
Provides
PartitionGroup and Partition
implementations for primary-backup. |
| io.atomix.protocols.backup.session |
Provides a
SessionClient implementation for primary-backup. |
| 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. |
| Modifier and Type | Method and Description |
|---|---|
static PartitionId |
PartitionId.from(String group,
int id)
Creates a partition identifier from an integer.
|
PartitionId |
PartitionMetadata.id()
Returns the partition identifier.
|
PartitionId |
Partition.id()
Returns the partition identifier.
|
PartitionId |
Partitioner.partition(K key,
List<PartitionId> partitions)
Returns the partition ID to which the specified object maps.
|
PartitionId |
Murmur3Partitioner.partition(String key,
List<PartitionId> partitions) |
PartitionId |
PrimaryElectionEvent.partitionId()
Returns the partition ID.
|
| Modifier and Type | Method and Description |
|---|---|
List<PartitionId> |
PartitionGroup.getPartitionIds()
Returns a sorted list of partition IDs.
|
| Modifier and Type | Method and Description |
|---|---|
int |
PartitionId.compareTo(PartitionId that) |
PrimaryElection |
PrimaryElectionService.getElectionFor(PartitionId partitionId)
Returns the primary election for the given partition identifier.
|
Partition |
PartitionGroup.getPartition(PartitionId partitionId)
Returns a partition by ID.
|
| Modifier and Type | Method and Description |
|---|---|
PartitionId |
Partitioner.partition(K key,
List<PartitionId> partitions)
Returns the partition ID to which the specified object maps.
|
PartitionId |
Murmur3Partitioner.partition(String key,
List<PartitionId> partitions) |
| Constructor and Description |
|---|
PartitionMetadata(PartitionId id,
Collection<MemberId> members) |
PrimaryElectionEvent(PrimaryElectionEvent.Type type,
PartitionId partitionId,
PrimaryTerm subject) |
| Modifier and Type | Method and Description |
|---|---|
PartitionId |
ProxyClient.getPartitionId(Object key)
Returns the partition ID for the given key.
|
PartitionId |
ProxyClient.getPartitionId(String key)
Returns the partition ID for the given key.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<PartitionId> |
ProxyClient.getPartitionIds()
Returns the collection of all partition IDs.
|
| Modifier and Type | Method and Description |
|---|---|
default CompletableFuture<Void> |
ProxyClient.acceptOn(PartitionId partitionId,
Consumer<S> operation)
Submits an empty operation to the given partition.
|
default <R> CompletableFuture<R> |
ProxyClient.applyOn(PartitionId partitionId,
Function<S,R> operation)
Submits an empty operation to the given partition.
|
ProxySession<S> |
ProxyClient.getPartition(PartitionId partitionId)
Returns the proxy with the given identifier.
|
| Modifier and Type | Method and Description |
|---|---|
PartitionId |
SessionClient.partitionId()
Returns the partition identifier.
|
| Modifier and Type | Method and Description |
|---|---|
PrimaryBackupClient.Builder |
PrimaryBackupClient.Builder.withPartitionId(PartitionId partitionId)
Sets the client partition ID.
|
| Constructor and Description |
|---|
PrimaryBackupClient(String clientName,
PartitionId partitionId,
ClusterMembershipService clusterMembershipService,
io.atomix.protocols.backup.protocol.PrimaryBackupClientProtocol protocol,
PrimaryElection primaryElection,
SessionIdService sessionIdService,
io.atomix.utils.concurrent.ThreadContextFactory threadContextFactory,
boolean closeOnStop) |
| Modifier and Type | Method and Description |
|---|---|
PartitionId |
PrimaryBackupPartition.id() |
| Modifier and Type | Method and Description |
|---|---|
List<PartitionId> |
PrimaryBackupPartitionGroup.getPartitionIds() |
| Modifier and Type | Method and Description |
|---|---|
PrimaryBackupPartition |
PrimaryBackupPartitionGroup.getPartition(PartitionId partitionId) |
| Constructor and Description |
|---|
PrimaryBackupPartition(PartitionId partitionId,
MemberGroupProvider memberGroupProvider) |
| Modifier and Type | Method and Description |
|---|---|
PartitionId |
PrimaryBackupSessionClient.partitionId() |
| Constructor and Description |
|---|
PrimaryBackupSessionClient(String clientName,
PartitionId partitionId,
SessionId sessionId,
PrimitiveType primitiveType,
io.atomix.protocols.backup.protocol.PrimitiveDescriptor descriptor,
ClusterMembershipService clusterMembershipService,
io.atomix.protocols.backup.protocol.PrimaryBackupClientProtocol protocol,
PrimaryElection primaryElection,
io.atomix.utils.concurrent.ThreadContext threadContext) |
| Modifier and Type | Method and Description |
|---|---|
RaftClient.Builder |
RaftClient.Builder.withPartitionId(PartitionId partitionId)
Sets the partition identifier.
|
| Modifier and Type | Method and Description |
|---|---|
PartitionId |
RaftPartition.id() |
| Modifier and Type | Method and Description |
|---|---|
List<PartitionId> |
RaftPartitionGroup.getPartitionIds() |
| Modifier and Type | Method and Description |
|---|---|
RaftPartition |
RaftPartitionGroup.getPartition(PartitionId partitionId) |
| Constructor and Description |
|---|
RaftPartition(PartitionId partitionId,
StorageLevel storageLevel,
long segmentSize,
boolean flushOnCommit,
File dataDirectory) |
Copyright © 2013–2018. All rights reserved.