Class PartitionReservationManager
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.twostep.PartitionReservationManager
-
- All Implemented Interfaces:
PartitionsExchangeAware
public class PartitionReservationManager extends Object implements PartitionsExchangeAware
Class responsible for partition reservation for queries executed on local node. Prevents partitions from being evicted from node during query execution.
-
-
Constructor Summary
Constructors Constructor Description PartitionReservationManager(GridKernalContext ctx)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonCacheStop(String cacheName)voidonDoneAfterTopologyUnlock(GridDhtPartitionsExchangeFuture fut)Cleanup group reservations cache on change affinity version.PartitionReservationreservePartitions(@Nullable List<Integer> cacheIds, AffinityTopologyVersion reqTopVer, int[] explicitParts, UUID nodeId, long reqId)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.processors.cache.distributed.dht.preloader.PartitionsExchangeAware
onDoneBeforeTopologyUnlock, onInitAfterTopologyLock, onInitBeforeTopologyLock
-
-
-
-
Constructor Detail
-
PartitionReservationManager
public PartitionReservationManager(GridKernalContext ctx)
Constructor.- Parameters:
ctx- Context.
-
-
Method Detail
-
reservePartitions
public PartitionReservation reservePartitions(@Nullable @Nullable List<Integer> cacheIds, AffinityTopologyVersion reqTopVer, int[] explicitParts, UUID nodeId, long reqId) throws IgniteCheckedException
- Parameters:
cacheIds- Cache IDs.reqTopVer- Topology version from request.explicitParts- Explicit partitions list.nodeId- Node ID.reqId- Request ID.- Returns:
- String which is null in case of success or with causeMessage if failed
- Throws:
IgniteCheckedException- If failed.
-
onCacheStop
public void onCacheStop(String cacheName)
- Parameters:
cacheName- Cache name.
-
onDoneAfterTopologyUnlock
public void onDoneAfterTopologyUnlock(GridDhtPartitionsExchangeFuture fut)
Cleanup group reservations cache on change affinity version.- Specified by:
onDoneAfterTopologyUnlockin interfacePartitionsExchangeAware
-
-