public class GridCacheAffinityFunctionContextImpl extends Object implements CacheAffinityFunctionContext
| Constructor and Description |
|---|
GridCacheAffinityFunctionContextImpl(List<ClusterNode> topSnapshot,
List<List<ClusterNode>> prevAssignment,
DiscoveryEvent discoEvt,
long 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.
|
long |
currentTopologyVersion()
Gets current topology version number.
|
DiscoveryEvent |
discoveryEvent()
Gets discovery event caused topology change.
|
List<ClusterNode> |
previousAssignment(int part)
Gets affinity assignment for given partition on previous topology version.
|
public GridCacheAffinityFunctionContextImpl(List<ClusterNode> topSnapshot, List<List<ClusterNode>> prevAssignment, DiscoveryEvent discoEvt, long topVer, int backups)
topSnapshot - Topology snapshot.topVer - Topology version.@Nullable public List<ClusterNode> previousAssignment(int part)
previousAssignment in interface CacheAffinityFunctionContextpart - Partition to get previous assignment for.null
if this information is not available.public List<ClusterNode> currentTopologySnapshot()
currentTopologySnapshot in interface CacheAffinityFunctionContextpublic long currentTopologyVersion()
currentTopologyVersion in interface CacheAffinityFunctionContext@Nullable public DiscoveryEvent discoveryEvent()
discoveryEvent in interface CacheAffinityFunctionContextnull if this information is
not available.public int backups()
backups in interface CacheAffinityFunctionContext
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015