public class GridAffinityFunctionContextImpl extends Object implements AffinityFunctionContext
| Constructor and Description |
|---|
GridAffinityFunctionContextImpl(List<ClusterNode> topSnapshot,
List<List<ClusterNode>> prevAssignment,
DiscoveryEvent discoEvt,
AffinityTopologyVersion topVer,
int backups) |
| Modifier and Type | Method and Description |
|---|---|
int |
backups()
Gets number of backups for new assignment.
|
List<ClusterNode> |
currentTopologySnapshot()
Gets current topology snapshot.
|
AffinityTopologyVersion |
currentTopologyVersion()
Gets current topology version number.
|
DiscoveryEvent |
discoveryEvent()
Gets discovery event caused topology change.
|
List<List<ClusterNode>> |
prevAssignment()
Gets the previous assignment.
|
List<ClusterNode> |
previousAssignment(int part)
Gets affinity assignment for given partition on previous topology version.
|
public GridAffinityFunctionContextImpl(List<ClusterNode> topSnapshot, List<List<ClusterNode>> prevAssignment, DiscoveryEvent discoEvt, @NotNull AffinityTopologyVersion topVer, int backups)
topSnapshot - Topology snapshot.topVer - Topology version.@Nullable public List<ClusterNode> previousAssignment(int part)
previousAssignment in interface AffinityFunctionContextpart - Partition to get previous assignment for.null
if this information is not available.public List<ClusterNode> currentTopologySnapshot()
currentTopologySnapshot in interface AffinityFunctionContextpublic AffinityTopologyVersion currentTopologyVersion()
currentTopologyVersion in interface AffinityFunctionContext@Nullable public DiscoveryEvent discoveryEvent()
discoveryEvent in interface AffinityFunctionContextnull if this information is
not available.public int backups()
backups in interface AffinityFunctionContextpublic List<List<ClusterNode>> prevAssignment()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017