public interface GridCachePreloader
void start()
throws IgniteCheckedException
IgniteCheckedException - If start failed.void stop()
void onKernalStart()
throws IgniteCheckedException
IgniteCheckedException - If failed.void onKernalStop()
void onReconnected()
void onInitialExchangeComplete(@Nullable
Throwable err)
err - Error, if any happened on initial exchange.@Nullable GridDhtPreloaderAssignments assign(GridDhtPartitionsExchangeFuture exchFut)
exchFut - Exchange future to assign.null if detected that there are pending exchanges.Callable<Boolean> addAssignments(GridDhtPreloaderAssignments assignments, boolean forcePreload, Collection<String> caches, int cnt)
assignments - Assignments to add.forcePreload - Force preload flag.caches - Rebalancing of these caches will be finished before this started.cnt - Counter.void preloadPredicate(IgnitePredicate<GridCacheEntryInfo> p)
p - Preload predicate.IgnitePredicate<GridCacheEntryInfo> preloadPredicate()
null, will evaluate each preloaded entry during
send and receive, and if predicate evaluates to false, entry will be skipped.IgniteInternalFuture<Object> startFuture()
IgniteInternalFuture<?> syncFuture()
IgniteInternalFuture<Boolean> rebalanceFuture()
true in case rebalancing successfully finished at current topology.
Future result is false in case rebalancing cancelled or finished with missed partitions and will be
restarted at current or pending topology.
Note that topology change creates new futures and finishes previous.boolean needForceKeys()
true if there is no need to force keys preloading
(e.g. rebalancing has been completed).IgniteInternalFuture<Object> request(Collection<KeyCacheObject> keys, AffinityTopologyVersion topVer)
keys - Keys to request.topVer - Topology version, -1 if not required.IgniteInternalFuture<Object> request(GridNearAtomicAbstractUpdateRequest req, AffinityTopologyVersion topVer)
req - Message with keys to request.topVer - Topology version, -1 if not required.void forcePreload()
void unwindUndeploys()
void handleSupplyMessage(int idx,
UUID id,
GridDhtPartitionSupplyMessageV2 s)
idx - Index.id - Node Id.s - Supply message.void handleDemandMessage(int idx,
UUID id,
GridDhtPartitionDemandMessage d)
idx - Index.id - Node Id.d - Demand message.void evictPartitionAsync(GridDhtLocalPartition part)
part - Partition.void onTopologyChanged(GridDhtPartitionsExchangeFuture lastFut)
lastFut - Last future.void dumpDebugInfo()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.8.0 Release Date : December 5 2016