public interface GridCachePreloader
| Modifier and Type | Method and Description |
|---|---|
Callable<Boolean> |
addAssignments(GridDhtPreloaderAssignments assignments,
boolean forcePreload,
Collection<String> caches,
int cnt)
Adds assignments to preloader.
|
GridDhtPreloaderAssignments |
assign(GridDhtPartitionsExchangeFuture exchFut) |
void |
dumpDebugInfo()
Dumps debug information.
|
void |
evictPartitionAsync(GridDhtLocalPartition part)
Evicts partition asynchronously.
|
void |
forcePreload()
Force preload process.
|
void |
handleDemandMessage(int idx,
UUID id,
GridDhtPartitionDemandMessage d)
Handles Demand message.
|
void |
handleSupplyMessage(int idx,
UUID id,
GridDhtPartitionSupplyMessageV2 s)
Handles Supply message.
|
boolean |
needForceKeys() |
void |
onInitialExchangeComplete(Throwable err)
Callback by exchange manager when initial partition exchange is complete.
|
void |
onKernalStart()
Kernal start callback.
|
void |
onKernalStop()
Kernal stop callback.
|
void |
onReconnected()
Client reconnected callback.
|
void |
onTopologyChanged(GridDhtPartitionsExchangeFuture lastFut) |
IgnitePredicate<GridCacheEntryInfo> |
preloadPredicate() |
void |
preloadPredicate(IgnitePredicate<GridCacheEntryInfo> p) |
IgniteInternalFuture<Boolean> |
rebalanceFuture() |
IgniteInternalFuture<Object> |
request(Collection<KeyCacheObject> keys,
AffinityTopologyVersion topVer)
Requests that preloader sends the request for the key.
|
void |
start()
Starts preloading.
|
IgniteInternalFuture<Object> |
startFuture() |
void |
stop()
Stops preloading.
|
IgniteInternalFuture<?> |
syncFuture() |
void |
unwindUndeploys()
Unwinds undeploys.
|
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.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.7.0 Release Date : August 1 2016