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<K,V> 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<K,V>> |
preloadPredicate() |
void |
preloadPredicate(IgnitePredicate<GridCacheEntryInfo<K,V>> p) |
IgniteInternalFuture<Object> |
request(Collection<? extends K> keys,
long 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<K,V> 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<K,V> lastFut)
lastFut - Last future.GridDhtPreloaderAssignments<K,V> assign(GridDhtPartitionsExchangeFuture<K,V> 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<K,V>> p)
p - Preload predicate.IgnitePredicate<GridCacheEntryInfo<K,V>> 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<? extends K> keys, long topVer)
keys - Keys to request.topVer - Topology version, -1 if not required.void forcePreload()
void unwindUndeploys()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015