Package | Description |
---|---|
com.tangosol.net.partition |
Contains interfaces and classes related to partitioned services.
|
Modifier and Type | Field and Description |
---|---|
protected SimpleAssignmentStrategy.AnalysisContext |
SimpleAssignmentStrategy.m_ctxLast
The last analysis context.
|
Modifier and Type | Method and Description |
---|---|
SimpleAssignmentStrategy.AnalysisContext |
SimpleAssignmentStrategy.getLastAnalysisContext()
Return the last AnalysisContext.
|
SimpleAssignmentStrategy.AnalysisContext |
SimpleAssignmentStrategy.instantiateAnalysisContext()
Factory method.
|
Modifier and Type | Method and Description |
---|---|
protected long |
MirroringAssignmentStrategy.analyzeDistribution(SimpleAssignmentStrategy.AnalysisContext ctx)
Analyze the distribution using the specified analysis context.
|
protected long |
SimpleAssignmentStrategy.analyzeDistribution(SimpleAssignmentStrategy.AnalysisContext ctx)
Analyze the distribution using the specified analysis context.
|
protected int |
SimpleAssignmentStrategy.checkBackupBalance(SimpleAssignmentStrategy.AnalysisContext ctx)
Check that the distribution of backup partitions is balanced.
|
protected int |
SimpleAssignmentStrategy.checkBackupStrong(SimpleAssignmentStrategy.AnalysisContext ctx)
Check that the backups are strong.
|
protected void |
SimpleAssignmentStrategy.checkEndangered(SimpleAssignmentStrategy.AnalysisContext ctx)
Check the distribution to ensure that backups are created for any "endangered" partitions.
|
protected void |
SimpleAssignmentStrategy.checkLeaving(SimpleAssignmentStrategy.AnalysisContext ctx)
Check for any service members that are leaving, and adjust the distribution plan accordingly.
|
protected void |
SimpleAssignmentStrategy.checkPrimaryBalance(SimpleAssignmentStrategy.AnalysisContext ctx)
Check the distribution to ensure that primary the partition load is balanced.
|
protected void |
SimpleAssignmentStrategy.AnalysisContext.copyTransients(SimpleAssignmentStrategy.AnalysisContext ctxLast)
Copy transient values from another, generally the previous, AnalysisContext to this AnalysisContext.
|
protected int |
SimpleAssignmentStrategy.doBalancePrimary(SimpleAssignmentStrategy.AnalysisContext ctx, Member memberFrom, PartitionSet parts, Member[] aMembersTarget)
Do balancing transfers for primary distribution.
|
protected int |
SimpleAssignmentStrategy.getVariance(SimpleAssignmentStrategy.AnalysisContext ctx, boolean fPrimary)
Return the maximum load variance in the partition assignments represented by the analysis context.
|
protected boolean |
MirroringAssignmentStrategy.isRefinementNeeded(SimpleAssignmentStrategy.AnalysisContext ctx, PartitionedService serviceThis, PartitionedService serviceThat)
Return true iff the partition assignments sync'd from the specified associated service should be further refined/balanced by the local assignment strategy.
|
void |
SimpleAssignmentStrategy.setLastAnalysisContext(SimpleAssignmentStrategy.AnalysisContext ctx)
Set the last AnalysisContext.
|
protected void |
MirroringAssignmentStrategy.syncAssignments(SimpleAssignmentStrategy.AnalysisContext ctx, PartitionedService serviceThat)
Update the analysis context to reflect the partition assignments of the specified associated service.
|
protected void |
SimpleAssignmentStrategy.validateBackups(SimpleAssignmentStrategy.AnalysisContext ctx)
Check if there are enough ownership members to maintain the configured backup count, reducing the number of backups otherwise.
|