public interface AffinityFunctionContext
AffinityFunction
for
partition reassignment on every topology change event.Modifier and Type | Method and Description |
---|---|
int |
backups()
Gets number of backups for new assignment.
|
List<ClusterNode> |
currentTopologySnapshot()
Gets current topology snapshot.
|
org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion |
currentTopologyVersion()
Gets current topology version number.
|
@Nullable DiscoveryEvent |
discoveryEvent()
Gets discovery event caused topology change.
|
@Nullable List<ClusterNode> |
previousAssignment(int part)
Gets affinity assignment for given partition on previous topology version.
|
@Nullable @Nullable List<ClusterNode> previousAssignment(int part)
part
- Partition to get previous assignment for.null
if this information is not available.int backups()
List<ClusterNode> currentTopologySnapshot()
org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion currentTopologyVersion()
@Nullable @Nullable DiscoveryEvent discoveryEvent()
null
if this information is
not available.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019