public class GridCacheAffinityFunctionContextImpl extends Object implements GridCacheAffinityFunctionContext
| Constructor and Description |
|---|
GridCacheAffinityFunctionContextImpl(List<GridNode> topSnapshot,
List<List<GridNode>> prevAssignment,
GridDiscoveryEvent discoEvt,
long topVer,
int backups) |
| Modifier and Type | Method and Description |
|---|---|
int |
backups()
Gets number of backups for new assignment.
|
List<GridNode> |
currentTopologySnapshot()
Gets current topology snapshot.
|
long |
currentTopologyVersion()
Gets current topology version number.
|
GridDiscoveryEvent |
discoveryEvent()
Gets discovery event caused topology change.
|
List<GridNode> |
previousAssignment(int part)
Gets affinity assignment for given partition on previous topology version.
|
@Nullable public List<GridNode> previousAssignment(int part)
previousAssignment in interface GridCacheAffinityFunctionContextpart - Partition to get previous assignment for.null
if this information is not available.public List<GridNode> currentTopologySnapshot()
currentTopologySnapshot in interface GridCacheAffinityFunctionContextpublic long currentTopologyVersion()
currentTopologyVersion in interface GridCacheAffinityFunctionContext@Nullable public GridDiscoveryEvent discoveryEvent()
discoveryEvent in interface GridCacheAffinityFunctionContextnull if this information is
not available.public int backups()
backups in interface GridCacheAffinityFunctionContextCopyright © 2014. All rights reserved.