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.
|
IgniteInternalFuture<?> |
initialRebalanceFuture() |
void |
onExchangeFutureAdded()
Callback by exchange manager when new exchange future is added to worker.
|
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(AffinityTopologyVersion topVer)
Handles new topology.
|
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 |
updateLastExchangeFuture(GridDhtPartitionsExchangeFuture lastFut)
Updates last exchange future.
|
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.void onExchangeFutureAdded()
void updateLastExchangeFuture(GridDhtPartitionsExchangeFuture lastFut)
lastFut - Last future.GridDhtPreloaderAssignments assign(GridDhtPartitionsExchangeFuture exchFut)
exchFut - Exchange future to assign.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.IgniteInternalFuture<Object> request(Collection<KeyCacheObject> keys, AffinityTopologyVersion topVer)
keys - Keys to request.topVer - Topology version, -1 if not required.IgniteInternalFuture<?> initialRebalanceFuture()
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(AffinityTopologyVersion topVer)
topVer - Topology version.void dumpDebugInfo()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.0-b1 Release Date : December 1 2015