public interface GridCachePreloader<K,V>
| Modifier and Type | Method and Description |
|---|---|
void |
addAssignments(GridDhtPreloaderAssignments<K,V> assignments,
boolean forcePreload)
Adds assignments to preloader.
|
GridDhtPreloaderAssignments<K,V> |
assign(GridDhtPartitionsExchangeFuture exchFut) |
void |
forcePreload()
Force preload process.
|
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.
|
IgnitePredicate<GridCacheEntryInfo> |
preloadPredicate() |
void |
preloadPredicate(IgnitePredicate<GridCacheEntryInfo> p) |
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 onInitialExchangeComplete(@Nullable Throwable err)
err - Error, if any happened on initial exchange.void onExchangeFutureAdded()
void updateLastExchangeFuture(GridDhtPartitionsExchangeFuture lastFut)
lastFut - Last future.GridDhtPreloaderAssignments<K,V> assign(GridDhtPartitionsExchangeFuture exchFut)
exchFut - Exchange future to assign.void addAssignments(GridDhtPreloaderAssignments<K,V> assignments, boolean forcePreload)
assignments - Assignments to add.forcePreload - Force preload flag.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<Object> request(Collection<KeyCacheObject> keys, AffinityTopologyVersion topVer)
keys - Keys to request.topVer - Topology version, -1 if not required.void forcePreload()
void unwindUndeploys()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0 Release Date : March 31 2015