Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.net.partition
Class SimpleAssignmentStrategy.AnalysisContext.SafetyFilter

java.lang.Object
  extended by com.tangosol.net.partition.SimpleAssignmentStrategy.AnalysisContext.SafetyFilter

All Implemented Interfaces:
Filter
Enclosing class:
SimpleAssignmentStrategy.AnalysisContext

public class SimpleAssignmentStrategy.AnalysisContext.SafetyFilter
extends java.lang.Object
implements Filter

SafetyFilter is a Filter implementation used to evaluate Member objects, and selects members that are "strong" with respect to the reference ownership, as defined by the backup-strength.


Field Summary
protected  int m_iStore
          The storage index at which to evaluate members for safety.
protected  Ownership m_owners
          The ownership.

 

Constructor Summary
SimpleAssignmentStrategy.AnalysisContext.SafetyFilter(Ownership owners, int iStore)
          Construct a SafetyFilter with the specified ownership.

 

Method Summary
 boolean evaluate(java.lang.Object o)
          Apply the test to the object.
 Ownership getOwnership()
          Return the ownership used to evaluate member safety.
 int getStorageIndex()
          Return the storage index at which to evaluate members for safety.

 

Field Detail

m_owners

protected Ownership m_owners
The ownership.

m_iStore

protected int m_iStore
The storage index at which to evaluate members for safety.

Constructor Detail

SimpleAssignmentStrategy.AnalysisContext.SafetyFilter

public SimpleAssignmentStrategy.AnalysisContext.SafetyFilter(Ownership owners,
                                                             int iStore)
Construct a SafetyFilter with the specified ownership.
Parameters:
owners - the ownership
iStore - the storage index at which to evaluate members for safety

Method Detail

getOwnership

public Ownership getOwnership()
Return the ownership used to evaluate member safety.
Returns:
the ownership

getStorageIndex

public int getStorageIndex()
Return the storage index at which to evaluate members for safety.
Returns:
the storage index at which to evaluate members for safety

evaluate

public boolean evaluate(java.lang.Object o)
Apply the test to the object.
Specified by:
evaluate in interface Filter
Parameters:
o - the object to test
Returns:
true if the test passes, false otherwise

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


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