Class IgniteDhtPartitionHistorySuppliersMap
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.distributed.dht.preloader.IgniteDhtPartitionHistorySuppliersMap
-
- All Implemented Interfaces:
Serializable
public class IgniteDhtPartitionHistorySuppliersMap extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IgniteDhtPartitionHistorySuppliersMap()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IgniteDhtPartitionHistorySuppliersMapempty()@Nullable Map<T2<Integer,Integer>,Long>getReservations(UUID nodeId)List<UUID>getSupplier(int grpId, int partId, long cntrSince)booleanisEmpty()voidput(UUID nodeId, int grpId, int partId, long cntr)voidputAll(IgniteDhtPartitionHistorySuppliersMap that)StringtoString()
-
-
-
Method Detail
-
empty
public static IgniteDhtPartitionHistorySuppliersMap empty()
- Returns:
- Empty map.
-
getSupplier
public List<UUID> getSupplier(int grpId, int partId, long cntrSince)
- Parameters:
grpId- Group ID.partId- Partition ID.cntrSince- Partition update counter since history supplying is requested.- Returns:
- List of supplier UUIDs or empty list if haven't these.
-
getReservations
@Nullable public @Nullable Map<T2<Integer,Integer>,Long> getReservations(UUID nodeId)
- Parameters:
nodeId- Node ID to check.- Returns:
- Reservations for the given node.
-
put
public void put(UUID nodeId, int grpId, int partId, long cntr)
- Parameters:
nodeId- Node ID.grpId- Cache group ID.partId- Partition ID.cntr- Partition counter.
-
isEmpty
public boolean isEmpty()
- Returns:
Trueif empty.
-
putAll
public void putAll(IgniteDhtPartitionHistorySuppliersMap that)
- Parameters:
that- Other map to put.
-
-