public static class GridDhtPartitionDemander.RebalanceFuture extends GridFutureAdapter<Boolean>
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancels this future.
|
boolean |
compatibleWith(GridDhtPreloaderAssignments otherAssignments) |
boolean |
isInitial() |
boolean |
onDone(@Nullable Boolean res,
@Nullable Throwable err)
Callback to notify that future is finished.
|
boolean |
onDone(@Nullable Boolean res,
@Nullable Throwable err,
boolean cancel) |
void |
requestPartitions()
Asynchronously sends initial demand messages formed from
assignments and initiates supply-demand processes. |
AffinityTopologyVersion |
topologyVersion() |
String |
toString() |
chain, chain, error, get, get, get, getUninterruptibly, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onCancelled, onDone, onDone, onDone, reset, resultpublic void requestPartitions()
assignments and initiates supply-demand processes.
For each node participating in rebalance process method distributes set of partitions for that node to several stripes (topics).
It means that each stripe containing a subset of partitions can be processed in parallel.
The number of stripes are controlled by IgniteConfiguration.getRebalanceThreadPoolSize() property.
Partitions that can be rebalanced using only WAL are called historical, others are called full.
Before sending messages, method awaits partitions clearing for full partitions.public boolean onDone(@Nullable
@Nullable Boolean res,
@Nullable
@Nullable Throwable err)
null exception is passed in
the result value will be ignored.onDone in class GridFutureAdapter<Boolean>res - Optional result.err - Optional error.True if result was set by this call.public AffinityTopologyVersion topologyVersion()
public boolean isInitial()
public boolean cancel()
cancel in interface IgniteInternalFuture<Boolean>cancel in class GridFutureAdapter<Boolean>True.public boolean onDone(@Nullable
@Nullable Boolean res,
@Nullable
@Nullable Throwable err,
boolean cancel)
onDone in class GridFutureAdapter<Boolean>res - Result.err - Error.cancel - True if future is being cancelled.True if result was set by this call.public boolean compatibleWith(GridDhtPreloaderAssignments otherAssignments)
otherAssignments - Newest assigmnets.True when future compared with other, False otherwise.public String toString()
toString in class GridFutureAdapter<Boolean>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020