public class GridDhtPreloader<K,V> extends GridCachePreloaderAdapter<K,V>
| Modifier and Type | Field and Description |
|---|---|
static long |
DFLT_PRELOAD_RESEND_TIMEOUT
Default preload resend timeout.
|
aff, cctx, log, preloadPred| Constructor and Description |
|---|
GridDhtPreloader(GridCacheContext<K,V> cctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDhtAssignmentFetchFuture(long topVer,
GridDhtAssignmentFetchFuture<K,V> fut) |
List<GridFuture<?>> |
exchangeFutures() |
void |
forcePreload()
Force preload process.
|
void |
onKernalStart()
Kernal start callback.
|
void |
onKernalStop()
Kernal stop callback.
|
void |
onPartitionEvicted(GridDhtLocalPartition<K,V> part,
boolean updateSeq)
Resends partitions on partition evict within configured timeout.
|
void |
preloadPredicate(GridPredicate<GridCacheEntryInfo<K,V>> preloadPred) |
void |
removeDhtAssignmentFetchFuture(long topVer,
GridDhtAssignmentFetchFuture<K,V> fut) |
GridDhtFuture<Object> |
request(Collection<? extends K> keys,
long topVer)
Requests that preloader sends the request for the key.
|
void |
start()
Starts preloading.
|
GridFuture<?> |
startFuture() |
GridFuture<?> |
syncFuture() |
void |
unwindUndeploys()
Unwinds undeploys.
|
preloadPredicate, stoppublic static final long DFLT_PRELOAD_RESEND_TIMEOUT
public GridDhtPreloader(GridCacheContext<K,V> cctx)
cctx - Cache context.public void start()
start in interface GridCachePreloader<K,V>start in class GridCachePreloaderAdapter<K,V>public void onKernalStart()
throws GridException
onKernalStart in interface GridCachePreloader<K,V>onKernalStart in class GridCachePreloaderAdapter<K,V>GridException - If failed.public void preloadPredicate(GridPredicate<GridCacheEntryInfo<K,V>> preloadPred)
preloadPredicate in interface GridCachePreloader<K,V>preloadPredicate in class GridCachePreloaderAdapter<K,V>preloadPred - Preload predicate.public void onKernalStop()
onKernalStop in interface GridCachePreloader<K,V>onKernalStop in class GridCachePreloaderAdapter<K,V>public GridFuture<?> startFuture()
GridCachePreloaderAdapterstartFuture in interface GridCachePreloader<K,V>startFuture in class GridCachePreloaderAdapter<K,V>public GridFuture<?> syncFuture()
syncFuture in interface GridCachePreloader<K,V>syncFuture in class GridCachePreloaderAdapter<K,V>public List<GridFuture<?>> exchangeFutures()
public void addDhtAssignmentFetchFuture(long topVer,
GridDhtAssignmentFetchFuture<K,V> fut)
topVer - Requested topology version.fut - Future to add.public void removeDhtAssignmentFetchFuture(long topVer,
GridDhtAssignmentFetchFuture<K,V> fut)
topVer - Requested topology version.fut - Future to remove.public void onPartitionEvicted(GridDhtLocalPartition<K,V> part, boolean updateSeq)
part - Evicted partition.updateSeq - Update sequence.public GridDhtFuture<Object> request(Collection<? extends K> keys, long topVer)
GridCachePreloaderAdapterrequest in interface GridCachePreloader<K,V>request in class GridCachePreloaderAdapter<K,V>keys - Keys to request.topVer - Topology version, -1 if not required.public void forcePreload()
forcePreload in interface GridCachePreloader<K,V>forcePreload in class GridCachePreloaderAdapter<K,V>public void unwindUndeploys()
unwindUndeploys in interface GridCachePreloader<K,V>unwindUndeploys in class GridCachePreloaderAdapter<K,V>Copyright © 2014. All rights reserved.