|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.net.partition.SimpleAssignmentStrategy.BackupStrength
protected static class SimpleAssignmentStrategy.BackupStrength
BackupStrength represents a level of "strength" or "resiliency" between the primary and backup owners of a partition. The BackupStrength is used to determine which backup owners could serve as a "strong" backup for a primary owner.
Field Summary | |
---|---|
protected int |
m_nStrength The strength (one of the *_SAFE constants). |
protected java.util.Set |
m_setMachines The set of machine names. |
protected java.util.Set |
m_setRacks The set of rack names. |
protected java.util.Set |
m_setSites The set of site names. |
protected static int |
MACHINE_SAFE Machine-safety (members are on different machines). |
protected static int |
NODE_SAFE Node-safety (members are different). |
protected static int |
RACK_SAFE Rack-safety (members are on different racks). |
protected static int |
SITE_SAFE Site-safety (members are on different sites). |
Constructor Summary | |
---|---|
protected |
SimpleAssignmentStrategy.BackupStrength(int nStrength, java.util.Set setSites, java.util.Set setRacks, java.util.Set setMachines) Construct a BackupStrength of the specified strength. |
Method Summary | |
---|---|
java.lang.String |
getDescription() Return a human-readable description string of this backup-strength. |
int |
getMachineCount() Return the site count. |
int |
getRackCount() Return the rack count. |
int |
getSiteCount() Return the site count. |
protected SimpleAssignmentStrategy.BackupStrength |
getWeaker() Return the next weakest BackupStrength. |
protected boolean |
isStrong(Member member1, Member member2) Return true iff the specified members are mutually "strong". |
java.lang.String |
toString() |
Field Detail |
---|
protected static final int NODE_SAFE
protected static final int MACHINE_SAFE
protected static final int RACK_SAFE
protected static final int SITE_SAFE
protected int m_nStrength
protected java.util.Set m_setSites
protected java.util.Set m_setRacks
protected java.util.Set m_setMachines
Constructor Detail |
---|
protected SimpleAssignmentStrategy.BackupStrength(int nStrength, java.util.Set setSites, java.util.Set setRacks, java.util.Set setMachines)
nStrength
- one of the BackupStrength.*_SAFE constantssetSites
- the site namessetRacks
- the rack namessetMachines
- the machine namesMethod Detail |
---|
protected SimpleAssignmentStrategy.BackupStrength getWeaker()
protected boolean isStrong(Member member1, Member member2)
member1
- the first member to comparemember2
- the second member to comparepublic int getSiteCount()
public int getRackCount()
public int getMachineCount()
public java.lang.String getDescription()
public java.lang.String toString()
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |