@GridToStringExclude public interface GridDhtPartitionTopology
void readLock()
void readUnlock()
readLock() method.void updateTopologyVersion(GridDhtPartitionExchangeId exchId, GridDhtPartitionsExchangeFuture exchFut)
exchId - Exchange ID.exchFut - Exchange future.long topologyVersion()
GridDhtTopologyFuture topologyVersionFuture()
void beforeExchange(GridDhtPartitionExchangeId exchId) throws IgniteCheckedException
exchId - Exchange ID for this pre-initialization.IgniteCheckedException - If failed.boolean afterExchange(GridDhtPartitionExchangeId exchId) throws IgniteCheckedException
exchId - Exchange ID for this post-initialization.True if mapping was changed.IgniteCheckedException - If failed.@Nullable GridDhtLocalPartition localPartition(int p, long topVer, boolean create) throws GridDhtInvalidPartitionException
topVer - Topology version at the time of creation.p - Partition ID.create - If true, then partition will be created if it's not there.GridDhtInvalidPartitionException - If partition is evicted or absent and
does not belong to this node.@Nullable GridDhtLocalPartition localPartition(Object key, boolean create) throws GridDhtInvalidPartitionException
key - Cache key.create - If true, then partition will be created if it's not there.GridDhtInvalidPartitionException - If partition is evicted or absent and
does not belong to this node.List<GridDhtLocalPartition> localPartitions()
Collection<GridDhtLocalPartition> currentLocalPartitions()
GridDhtPartitionMap localPartitionMap()
long updateSequence()
Collection<ClusterNode> nodes(int p, long topVer)
p - Partition ID.topVer - Topology version.List<ClusterNode> owners(int p)
p - Partition ID.own this partition.List<ClusterNode> owners(int p, long topVer)
p - Partition ID.topVer - Topology version.own this partition.List<ClusterNode> moving(int p)
p - Partition ID.are preloading this partition.GridDhtPartitionFullMap partitionMap(boolean onlyActive)
onlyActive - If true, then only active partitions will be returned.GridDhtLocalPartition onAdded(long topVer, GridDhtCacheEntry e)
topVer - Topology version.e - Entry added to cache.void onRemoved(GridDhtCacheEntry e)
e - Entry removed from cache.GridDhtPartitionMap update(@Nullable GridDhtPartitionExchangeId exchId, GridDhtPartitionFullMap partMap)
exchId - Exchange ID.partMap - Update partition map.null otherwise.@Nullable GridDhtPartitionMap update(@Nullable GridDhtPartitionExchangeId exchId, GridDhtPartitionMap parts)
exchId - Exchange ID.parts - Partitions.null otherwise.boolean own(GridDhtLocalPartition part)
part - Partition to own.True if owned.void onEvicted(GridDhtLocalPartition part, boolean updateSeq)
part - Evicted partition.@Nullable GridDhtPartitionMap partitions(UUID nodeId)
nodeId - Node to get partitions for.void printMemoryStats(int threshold)
threshold - Threshold for number of entries.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015