@GridToStringExclude public interface GridDhtPartitionTopology
void readLock()
void readUnlock()
readLock() method.void updateTopologyVersion(GridDhtPartitionExchangeId exchId, GridDhtPartitionsExchangeFuture exchFut, long updateSeq, boolean stopping)
exchId - Exchange ID.exchFut - Exchange future.AffinityTopologyVersion topologyVersion()
GridDhtTopologyFuture topologyVersionFuture()
boolean stopping()
True if cache is being stopped.void beforeExchange(GridDhtPartitionsExchangeFuture exchFut) throws IgniteCheckedException
exchFut - Exchange future.IgniteCheckedException - If failed.boolean afterExchange(GridDhtPartitionsExchangeFuture exchFut) throws IgniteCheckedException
exchFut - Exchange future.True if mapping was changed.IgniteCheckedException - If failed.@Nullable GridDhtLocalPartition localPartition(int p, AffinityTopologyVersion 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, AffinityTopologyVersion topVer)
p - Partition ID.topVer - Topology version.List<ClusterNode> owners(int p)
p - Partition ID.own this partition.List<ClusterNode> owners(int p, AffinityTopologyVersion 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(AffinityTopologyVersion 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.1.0-incubating Release Date : May 20 2015