Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.net.partition
Class SimpleAssignmentStrategy.BackupStrength

java.lang.Object
  extended by com.tangosol.net.partition.SimpleAssignmentStrategy.BackupStrength

Enclosing class:
SimpleAssignmentStrategy

protected static class SimpleAssignmentStrategy.BackupStrength
extends java.lang.Object

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 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)
          Construct a BackupStrength of the specified strength.

 

Method Summary
 java.lang.String getDescription()
          Return a human-readable description string of this backup-strength.
protected  boolean isStrong(Member member1, Member member2)
          Return true iff the specified members are mutually "strong".
 java.lang.String toString()
          

 

Field Detail

NODE_SAFE

protected static final int NODE_SAFE
Node-safety (members are different).
See Also:
Constant Field Values

MACHINE_SAFE

protected static final int MACHINE_SAFE
Machine-safety (members are on different machines).
See Also:
Constant Field Values

RACK_SAFE

protected static final int RACK_SAFE
Rack-safety (members are on different racks).
See Also:
Constant Field Values

SITE_SAFE

protected static final int SITE_SAFE
Site-safety (members are on different sites).
See Also:
Constant Field Values

m_nStrength

protected int m_nStrength
The strength (one of the *_SAFE constants).

Constructor Detail

SimpleAssignmentStrategy.BackupStrength

protected SimpleAssignmentStrategy.BackupStrength(int nStrength)
Construct a BackupStrength of the specified strength.
Parameters:
nStrength - one of the BackupStrength.*_SAFE constants

Method Detail

isStrong

protected boolean isStrong(Member member1,
                           Member member2)
Return true iff the specified members are mutually "strong".
Parameters:
member1 - the first member to compare
member2 - the second member to compare
Returns:
true iff the specified members are mutually "strong"

getDescription

public java.lang.String getDescription()
Return a human-readable description string of this backup-strength.
Returns:
a human-readable description string of this backup-strength

toString

public java.lang.String toString()

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.