public class GridDhtPreloader extends GridCachePreloaderAdapter
| 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<?,?> cctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAssignments(GridDhtPreloaderAssignments assignments,
boolean forcePreload)
Adds assignments to preloader.
|
void |
addDhtAssignmentFetchFuture(AffinityTopologyVersion topVer,
GridDhtAssignmentFetchFuture fut) |
GridDhtPreloaderAssignments |
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.
|
void |
onPartitionEvicted(GridDhtLocalPartition part,
boolean updateSeq)
Resends partitions on partition evict within configured timeout.
|
void |
preloadPredicate(IgnitePredicate<GridCacheEntryInfo> preloadPred) |
void |
removeDhtAssignmentFetchFuture(AffinityTopologyVersion topVer,
GridDhtAssignmentFetchFuture fut) |
GridDhtFuture<Object> |
request(Collection<KeyCacheObject> keys,
AffinityTopologyVersion topVer)
Requests that preloader sends the request for the key.
|
void |
start()
Starts preloading.
|
IgniteInternalFuture<Object> |
startFuture() |
IgniteInternalFuture<?> |
syncFuture() |
void |
unwindUndeploys()
Unwinds undeploys.
|
void |
updateLastExchangeFuture(GridDhtPartitionsExchangeFuture lastFut)
Updates last exchange future.
|
preloadPredicate, stoppublic static final long DFLT_PRELOAD_RESEND_TIMEOUT
public GridDhtPreloader(GridCacheContext<?,?> cctx)
cctx - Cache context.public void start()
start in interface GridCachePreloaderstart in class GridCachePreloaderAdapterpublic void onKernalStart()
throws IgniteCheckedException
onKernalStart in interface GridCachePreloaderonKernalStart in class GridCachePreloaderAdapterIgniteCheckedException - If failed.public void preloadPredicate(IgnitePredicate<GridCacheEntryInfo> preloadPred)
preloadPredicate in interface GridCachePreloaderpreloadPredicate in class GridCachePreloaderAdapterpreloadPred - Preload predicate.public void onKernalStop()
onKernalStop in interface GridCachePreloaderonKernalStop in class GridCachePreloaderAdapterpublic void onInitialExchangeComplete(@Nullable Throwable err)
onInitialExchangeComplete in interface GridCachePreloaderonInitialExchangeComplete in class GridCachePreloaderAdaptererr - Error, if any happened on initial exchange.public void onExchangeFutureAdded()
onExchangeFutureAdded in interface GridCachePreloaderonExchangeFutureAdded in class GridCachePreloaderAdapterpublic void updateLastExchangeFuture(GridDhtPartitionsExchangeFuture lastFut)
updateLastExchangeFuture in interface GridCachePreloaderupdateLastExchangeFuture in class GridCachePreloaderAdapterlastFut - Last future.public GridDhtPreloaderAssignments assign(GridDhtPartitionsExchangeFuture exchFut)
assign in interface GridCachePreloaderassign in class GridCachePreloaderAdapterexchFut - Exchange future to assign.public void addAssignments(GridDhtPreloaderAssignments assignments, boolean forcePreload)
addAssignments in interface GridCachePreloaderaddAssignments in class GridCachePreloaderAdapterassignments - Assignments to add.forcePreload - Force preload flag.public IgniteInternalFuture<Object> startFuture()
GridCachePreloaderAdapterstartFuture in interface GridCachePreloaderstartFuture in class GridCachePreloaderAdapterpublic IgniteInternalFuture<?> syncFuture()
syncFuture in interface GridCachePreloadersyncFuture in class GridCachePreloaderAdapterpublic void addDhtAssignmentFetchFuture(AffinityTopologyVersion topVer, GridDhtAssignmentFetchFuture fut)
topVer - Requested topology version.fut - Future to add.public void removeDhtAssignmentFetchFuture(AffinityTopologyVersion topVer, GridDhtAssignmentFetchFuture fut)
topVer - Requested topology version.fut - Future to remove.public void onPartitionEvicted(GridDhtLocalPartition part, boolean updateSeq)
part - Evicted partition.updateSeq - Update sequence.public GridDhtFuture<Object> request(Collection<KeyCacheObject> keys, AffinityTopologyVersion topVer)
GridCachePreloaderAdapterrequest in interface GridCachePreloaderrequest in class GridCachePreloaderAdapterkeys - Keys to request.topVer - Topology version, -1 if not required.public void forcePreload()
forcePreload in interface GridCachePreloaderforcePreload in class GridCachePreloaderAdapterpublic void unwindUndeploys()
unwindUndeploys in interface GridCachePreloaderunwindUndeploys in class GridCachePreloaderAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 1.2.0-incubating Release Date : June 16 2015