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 |
SimpleAssignmentStrategy.analyze(SimpleAssignmentStrategy.AnalysisContext ctx)
Analyze the distribution using the specified analysis context.
|
protected long |
MirroringAssignmentStrategy.analyzeDistribution(SimpleAssignmentStrategy.AnalysisContext ctx)
Analyze the distribution and suggest the resulting distribution to distribution manager.
|
protected long |
SimpleAssignmentStrategy.analyzeDistribution(SimpleAssignmentStrategy.AnalysisContext ctx)
Analyze the distribution and suggest the resulting distribution to distribution manager.
|
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 boolean |
SimpleAssignmentStrategy.checkSimpleDistribution(SimpleAssignmentStrategy.AnalysisContext ctx)
Analyze the distribution for the special two-server case using the specified analysis context.
|
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.
|
protected void |
SimpleAssignmentStrategy.primeDistribution(SimpleAssignmentStrategy.AnalysisContext ctx)
Optimize the distribution with minimum backup fan-out by distributing the partitions among first two strong members.
|
protected 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.
|